Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased
v1.1.7 - 2022-09-26
Fixed
- [#358] Typo in generator template name
v1.1.6 - 2022-04-25
Changed
- [#344] Bump activemodel and activesupport to v7.0.2.3
v1.1.4 - 2022-03-07
Changed
- [#340] Bump activemodel and activesupport to 6.1.4.6
v1.1.3 - 2022-02-16
Changed
- [#338] Bump activemodel and activesupport to 6.1.4.4
v1.1.2 - 2020-11-10
Changed
- #300
ActiveModelandActiveSupportv6.1 will be the highest supported version forActiveInteractorv1.1.x
Fixed
- #300
ActiveInteractor::Context::Errorcompatibility withActiveModelv6.1
v1.1.1 - 2020-10-21
Fixed
- #267 Allow default attributes to propagate to sibling/child interactors
v1.1.0 - 2020-10-04
Added
- #247 Support in place callbacks
Fixed
v1.0.5 - 2020-09-15
Fixed
- #200 Context attributes assigned in interactor not accessible as element within interactor
v1.0.4 - 2020-02-11
Fixed
- #184
ActiveInteractor::Context::Base#fail!error
v1.0.3 - 2020-02-10
Added
ActiveInteractor::Context::ErrorsActiveInteractor::Context::Status#resolve
Fixed
- #168
#classifyis called on const arguments - #169 If some of the interactors of the organizer fail error message is not persisted.
v1.0.2 - 2020-02-04
Added
- Support for
DynamoidORM - Support for
MongoidORM
Changed
ActiveInteractor::Models#acts_as_contextno longer includesActiveModel::ValidationsActiveInteractor::Models#acts_as_contextnow includesActiveInteractor::Context::Attributes
Removed
ActiveInteractor::Models::InstanceMethods#merge!
v1.0.1 - 2020-01-28
Added
ActiveInteractor::Context::Attributes#attribute?ActiveInteractor::Context::Attributes#has_attribute?ActiveInteractor::Context::Base.attributeActiveInteractor::Context::Base.attribute_missingActiveInteractor::Context::Base.attribute_namesActiveInteractor::Context::Base.method_missingActiveInteractor::Context::Base.respond_to?ActiveInteractor::Context::Base.respond_to_without_attributes?ActiveInteractor::Context::Base#attribute_missingActiveInteractor::Context::Base#attribute_namesActiveInteractor::Context::Base#method_missingActiveInteractor::Context::Base#respond_to?ActiveInteractor::Context::Base#respond_to_without_attributes?ActiveInteractor::Interactor::Context#context_attribute_missingActiveInteractor::Interactor::Context#context_attribute_namesActiveInteractor::Interactor::Context#context_respond_to_without_attributes?ActiveInteractor::Interactor::Context::ClassMethods#context_attributeActiveInteractor::Interactor::Context::ClassMethods#context_attribute_missingActiveInteractor::Interactor::Context::ClassMethods#context_attribute_namesActiveInteractor::Interactor::Context::ClassMethods#context_respond_to_without_attributes?
v1.0.0 - 2020-01-26
Added
ActiveInteractor::ConfigActiveInteractor::ConfigurableActiveInteractor::Context::Attributes#merge!ActiveInteractor::Context::Base#mergeActiveInteractor::Context::LoaderActiveInteractor::Context::StatusActiveInteractor::Error::InvalidContextClassActiveInteractor::ModelsActiveInteractor::Organizer::CallbacksActiveInteractor::Organizer::InteractorInterfaceActiveInteractor::Organizer::InteractorInterfaceCollectionActiveInteractor::Organizer::OrganizeActiveInteractor::Organizer::PerformActiveInteractor::Interactor::Context.contextualize_withActiveInteractor::Interactor::Context#context_fail!ActiveInteractor::Interactor::Context#context_rollback!ActiveInteractor::Interactor::Context#finalize_context!ActiveInteractor::Interactor::PerformActiveInteractor::Interactor::Perform::OptionsActiveInteractor::RailsActiveInteractor::Rails::Railtie
Changed
ActiveInteractor::Basenow calls anActiveSupport.on_loadhook with:active_interactorandActiveInteractor::BaseActiveInteractor::Context::Attributes.attributesnow excepts arguments for attributesActiveInteractor::Interactor.performnow takes optionsActiveInteractor::Interactor::Context.context_classwill now first attempt to find an existing context class, and only create a new context class if a context is not found.- Moved
ActiveInteractor::OrganizertoActiveInteractor::Organizer::Base - interactor, organizer, and context generators now accept
context_attributesas arguments.
Fixed
- various rails generator fixes
Removed
ActiveInteractor::ConfigurationuseActiveInteractor::ConfigActiveInteractor::Context::Attributes.attributes=useActiveInteractor::Context#attributesActiveInteractor::Context::Attributes.attribute_aliasesActiveInteractor::Context::Attributes.alias_attributesActiveInteractor::Context::Attributes#clean!ActiveInteractor::Context::Attributes#keysActiveInteractor::Interactor#fail_on_invalid_context?ActiveInteractor::Interactor#execute_rollbackActiveInteractor::Interactor#should_clean_context?ActiveInteractor::Interactor#skip_clean_context!ActiveInteractor::Interactor::Callbacks.allow_context_to_be_invalidActiveInteractor::Interactor::Callbacks.clean_context_on_completionActiveInteractor::Interactor::Context.context_attribute_aliasesActiveInteractor::Interactor::ExecutionActiveInteractor::Interactor::Worker#run_callbacks
v0.1.7 - 2019-09-10
Fixed
- Ensure
Organizeraccurately reports context success
v0.1.6 - 2019-07-24
Changed
- Lowered method complexity and enforced single responsibility
Security
- Update simplecov: 0.16.1 → 0.17.0 (major)
- Update rake: 12.3.2 → 12.3.3 (patch)
v0.1.5 - 2019-06-30
Added
ActiveInteractor::Errormodule
Deprecated
ActiveInteractor::Context::Failurein favor ofActiveInteractor::Error::ContextFailure
Security
- Update rubocop: 0.67.2 → 0.72.0 (major)
- Various dependency updates
- Update yard: 0.9.19 → 0.9.20 (minor)
v0.1.4 - 2019-04-12
Added
- The ability to alias attributes on interactor contexts.
v0.1.3 - 2019-04-01
Added
- Implement
each_performcallbacks on organizers
v0.1.2 - 2019-04-01
Added
- Allow the directory interactors are generated in to be configurable
v0.1.1 - 2019-03-30
Fixed
NameError(uninitialized constantActiveInteractor::Organizer)NoMethodError(undefined methodmergeforActiveInteractor::Context::Base)
v0.1.0 - 2019-03-30
- Initial gem release