Skip to content

Releases: AaronLasseigne/active_interaction

v0.6.0: Version 0.6.0 - Yanked

14 Nov 17:02
Compare
Choose a tag to compare

Added

  • Add ability to introspect interactions with filters.
  • #57: Allow getting all of the user-supplied inputs in an interaction with
    inputs.
  • #61: Add a symbol filter.
  • #58: Allow adding symbolic errors with errors.add_sym and retrieving them with
    errors.symbolic.

Changed

  • Error class now end with Error.
  • By default, strip unlisted keys from hashes. To retain the old behavior,
    set strip: false on a hash filter.
  • #49: Prevent specifying defaults (other than nil or {}) on hash filters. Set
    defaults on the nested filters instead.
  • #66: Replace allow_nil: true with default: nil.

Fixed

  • Fix bug that prevented listing multiple attributes in a hash filter.
  • Fix bug that prevented hash filters from being nested in array filters.

v0.5.0

16 Oct 14:07
Compare
Choose a tag to compare

Added

  • #34: Allow adding errors in execute method with errors.add.

Fixed

  • #56: Prevent manually setting the outcome's result.

v0.4.0

15 Aug 14:43
Compare
Choose a tag to compare

Added

  • Support i18n translations.

v0.3.0

07 Aug 20:41
Compare
Choose a tag to compare

Added

  • #30: Allow nested default values.

Changed

  • #36: Give better error messages for nested attributes.
  • #39: Add a more useful invalid interaction error message.
  • #38: Use default value when given an explicit nil.

v0.2.2

07 Aug 19:59
Compare
Choose a tag to compare

Fixed

  • #40: Fix support for ActiveSupport::TimeWithZone.

v0.2.1

07 Aug 16:31
Compare
Choose a tag to compare

Fixed

  • #37: Fix setting a default value on more than one attribute at a time.

v0.2.0

24 Jul 13:02
Compare
Choose a tag to compare

Added

  • #23: Add support for strptime format strings on Date, DateTime, and Time filters.

Changed

  • #20: Wrap interactions in ActiveRecord transactions if they're available.
  • #24: Add option to strip string values, which is enabled by default.

v0.1.3

24 Jul 13:03
Compare
Choose a tag to compare

Fixed

  • Fix bug that prevented attr_accessors from working.
  • Handle unconfigured timezones.
  • #27: Use RDoc as YARD's Markdown provider instead of kramdown.

v0.1.2

24 Jul 13:04
Compare
Choose a tag to compare

Fixed

  • #29: execute will now have the filtered version of the values passed
    to run or run! as was intended.

v0.1.1

24 Jul 13:04
Compare
Choose a tag to compare

Fixed

  • #28: Correct gemspec dependencies on activemodel.