Skip to content

Latest commit

 

History

History
87 lines (51 loc) · 2.22 KB

CHANGELOG.md

File metadata and controls

87 lines (51 loc) · 2.22 KB

3.0.0

Breaking Changes

  • Increase minimum ruby version from 2.5.0 to 3.2.0
  • Tron.success and Tron.failure return an instance of Data rather than an instance of Struct
  • The returned class has no collection getters such as [] or to_a, so Tron.success(:hi)[:success] and Tron.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 to LICENSE.txt and remove the date (recently not legally needed any more).

2.0.0

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 and Tron::Failure (use Tron.success and Tron.failure instead)

1.2.0

Changes

  • Metadata is no longer frozen. When objects are returned from a method they are usually not frozen either.

1.1.1

Changes

  • Added #code again for compatibility with Tron below version 1.0.0 This will make the upgrade path easier. In essence, you can use 1.0.0 but you won't have to change your code at all.
  • Show caller stack when deprecated methods are called.

1.0.1

Features

  • on_success and on_failure now yield the result-struct to their block

1.0.0

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 and Tron.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 use include Tron.

Deprecations

  • Deprecated Tron::Success and Tron::Failure classes altogether

0.7.1

Improvements

  • Lower ruby requirement from 2.2.3 to 2.1.5

0.7.0

Breaking changes

  • Renamed train gem to tron, because Chef can make good use of train

0.1.0

Breaking changes

  • The code param is not not optional anymore
  • Introduced Failure.call and Success.call shortcuts

0.0.2

  • Version bump only to avoid a yank conflict on Rubygems

0.0.1

  • Initial functionality