Skip to content

Releases: aaronmallen/activeinteractor

v1.0.5

16 Sep 02:18
963a427
Compare
Choose a tag to compare

Fixed

  • #200 Context attributes assigned in interactor not accessible as element within interactor

v1.0.4

11 Feb 16:45
992561d
Compare
Choose a tag to compare

Fixed

  • #184 ActiveInteractor::Context::Base#fail! error message gets pupulated 3 times with the same message.

v1.0.3

11 Feb 00:48
e69c573
Compare
Choose a tag to compare

Added

  • ActiveInteractor::Context::Errors
  • ActiveInteractor::Context::Status#resolve

Fixed

  • #168 #classify is called on const arguments
  • #169 If some of the interactors of the organizer fail error message is not persisted.

v1.0.2

04 Feb 06:24
6312646
Compare
Choose a tag to compare

Added

  • Support for Dynamoid ORM
  • Support for Mongoid ORM

Changed

  • ActiveInteractor::Models#acts_as_context no longer includes ActiveModel::Validations
  • ActiveInteractor::Models#acts_as_context now includes ActiveInteractor::Context::Attributes

Removed

  • ActiveInteractor::Models::InstanceMethods#merge!

v1.0.1

28 Jan 16:39
38d38ee
Compare
Choose a tag to compare

Added

  • ActiveInteractor::Context::Attributes#attribute?
  • ActiveInteractor::Context::Attributes#has_attribute?
  • ActiveInteractor::Context::Base.attribute
  • ActiveInteractor::Context::Base.attribute_missing
  • ActiveInteractor::Context::Base.attribute_names
  • ActiveInteractor::Context::Base.method_missing
  • ActiveInteractor::Context::Base.respond_to?
  • ActiveInteractor::Context::Base.respond_to_without_attributes?
  • ActiveInteractor::Context::Base#attribute_missing
  • ActiveInteractor::Context::Base#attribute_names
  • ActiveInteractor::Context::Base#method_missing
  • ActiveInteractor::Context::Base#respond_to?
  • ActiveInteractor::Context::Base#respond_to_without_attributes?
  • ActiveInteractor::Interactor::Context#context_attribute_missing
  • ActiveInteractor::Interactor::Context#context_attribute_names
  • ActiveInteractor::Interactor::Context#context_respond_to_without_attributes?
  • ActiveInteractor::Interactor::Context::ClassMethods#context_attribute
  • ActiveInteractor::Interactor::Context::ClassMethods#context_attribute_missing
  • ActiveInteractor::Interactor::Context::ClassMethods#context_attribute_names
  • ActiveInteractor::Interactor::Context::ClassMethods#context_respond_to_without_attributes?

v1.0.0

26 Jan 09:56
dbc1b79
Compare
Choose a tag to compare

Added

  • ActiveInteractor::Config
  • ActiveInteractor::Configurable
  • ActiveInteractor::Context::Attributes#merge!
  • ActiveInteractor::Context::Base#merge
  • ActiveInteractor::Context::Loader
  • ActiveInteractor::Context::Status
  • ActiveInteractor::Error::InvalidContextClass
  • ActiveInteractor::Models
  • ActiveInteractor::Organizer::Callbacks
  • ActiveInteractor::Organizer::InteractorInterface
  • ActiveInteractor::Organizer::InteractorInterfaceCollection
  • ActiveInteractor::Organizer::Organize
  • ActiveInteractor::Organizer::Perform
  • ActiveInteractor::Interactor::Context.contextualize_with
  • ActiveInteractor::Interactor::Context#context_fail!
  • ActiveInteractor::Interactor::Context#context_rollback!
  • ActiveInteractor::Interactor::Context#finalize_context!
  • ActiveInteractor::Interactor::Perform
  • ActiveInteractor::Interactor::Perform::Options
  • ActiveInteractor::Rails
  • ActiveInteractor::Rails::Railtie

Changed

  • ActiveInteractor::Base now calls an ActiveSupport.on_load hook with :active_interactor and
    ActiveInteractor::Base
  • ActiveInteractor::Context::Attributes.attributes now excepts arguments for attributes
  • ActiveInteractor::Interactor.perform now takes options
  • ActiveInteractor::Interactor::Context.context_class will now first attempt to find an
    existing context class, and only create a new context class if a context is not found.
  • Moved ActiveInteractor::Organizer to ActiveInteractor::Organizer::Base
  • interactor, organizer, and context generators now accept context_attributes
    as arguments.

Fixed

  • various rails generator fixes

Removed

  • ActiveInteractor::Configuration use ActiveInteractor::Config
  • ActiveInteractor::Context::Attributes.attributes= use ActiveInteractor::Context#attributes
  • ActiveInteractor::Context::Attributes.attribute_aliases
  • ActiveInteractor::Context::Attributes.alias_attributes
  • ActiveInteractor::Context::Attributes#clean!
  • ActiveInteractor::Context::Attributes#keys
  • ActiveInteractor::Interactor#fail_on_invalid_context?
  • ActiveInteractor::Interactor#execute_rollback
  • ActiveInteractor::Interactor#should_clean_context?
  • ActiveInteractor::Interactor#skip_clean_context!
  • ActiveInteractor::Interactor::Callbacks.allow_context_to_be_invalid
  • ActiveInteractor::Interactor::Callbacks.clean_context_on_completion
  • ActiveInteractor::Interactor::Context.context_attribute_aliases
  • ActiveInteractor::Interactor::Execution
  • ActiveInteractor::Interactor::Worker#run_callbacks

v1.0.0-beta.7

21 Jan 13:21
Compare
Choose a tag to compare
v1.0.0-beta.7 Pre-release
Pre-release

Added

  • #127 ActiveInteractor::Rails::Models

Fixed

Removed

  • #127 ActiveInteractor::Rails::ActiveRecord

v1.0.0-beta.6

21 Jan 10:40
Compare
Choose a tag to compare
v1.0.0-beta.6 Pre-release
Pre-release

Added

  • #124 ActiveInteractor::Context::Status
  • #124 ActiveInteractor::Rails::ActiveRecord

Changed

  • #124 Abstracted status methods from ActiveInteractor::Context::Base into ActiveInteractor::Context::Status

v1.0.0-beta.5

21 Jan 06:05
Compare
Choose a tag to compare
v1.0.0-beta.5 Pre-release
Pre-release

Added

  • #122 ActiveInteractor::Rails::Railtie
  • #122 ActiveInteractor::Rails.config
  • #122 ActiveInteractor::Rails.configure

Removed

  • #122 ActiveInteractor::Railtie use ActiveInteractor::Rails::Railtie instead
  • #122 ActiveInteractor::Config#rails use ActiveInteractor::Rails.configure instead

v1.0.0-beta.4

14 Jan 15:28
28f01ff
Compare
Choose a tag to compare
v1.0.0-beta.4 Pre-release
Pre-release

Added

  • #114 ActiveInteractor::Organizer::InteractorInterface
  • #114 ActiveInteractor::Organizer::InteractorInterfaceCollection
  • #115 ActiveInteractor::Interactor#options
  • #115 ActiveInteractor::Interactor#with_options
  • #115 ActiveInteractor::Interactor::PerformOptions#skip_each_perform_callbacks

Changed

  • #115 ActiveInteractor::Interactor::Worker#execute_perform and #execute_perform! no longer accept arguments,
    use ActiveInteractor::Interactor#with_options instead.
  • #115 ActiveInteractor::Organizer can now skip each_perform callbacks with
    the option skip_each_perform_callbacks

Removed

  • #115 ActiveInteractor::Interactor#execute_rollback
  • #115 ActiveInteractor::Interactor::Worker#run_callbacks