Breaking Changes
- Increase minimum ruby version from 2.5.0 to 3.2.0
Tron.success
andTron.failure
return an instance ofData
rather than an instance ofStruct
- The returned class has no collection getters such as
[]
orto_a
, soTron.success(:hi)[:success]
andTron.success(:hi).to_a
is not possible any more. That was never really intended to work, though.
Minor Changes
- Remove
hashie
gem from development dependencies. It remained there by accident in an earlier refactor. - Rename
LICENSE.md
toLICENSE.txt
and remove the date (recently not legally needed any more).
Breaking Changes
- Increase minimum ruby version from 2.3.0 to 2.5.0
- Remove
#code
(it was deprecated for a long time) - Remove
Tron::Success
andTron::Failure
(useTron.success
andTron.failure
instead)
Changes
- Metadata is no longer frozen. When objects are returned from a method they are usually not frozen either.
Changes
- Added
#code
again for compatibility with Tron below version 1.0.0 This will make the upgrade path easier. In essence, you can use1.0.0
but you won't have to change your code at all. - Show caller stack when deprecated methods are called.
Features
on_success
andon_failure
now yield the result-struct to their block
Breaking changes
- Raises minimum ruby version from 2.1.5 to 2.3.0
- Removed #>> alias methods because it was ambiguously defined anyway (on_failure and on_success)
Features
- Introduce
Tron.success
andTron.failure
, returning an (immutable) Struct. This Api make it clearer where the method is defined - in the tron gem. Also, less overhead and more robust by not depending on class checking. Also makes it obsolete to useinclude Tron
.
Deprecations
- Deprecated
Tron::Success
andTron::Failure
classes altogether
Improvements
- Lower ruby requirement from 2.2.3 to 2.1.5
Breaking changes
- Renamed
train
gem totron
, because Chef can make good use oftrain
Breaking changes
- The code param is not not optional anymore
- Introduced
Failure.call
andSuccess.call
shortcuts
- Version bump only to avoid a yank conflict on Rubygems
- Initial functionality