activeinteractor

An implementation of the command pattern for Ruby with ActiveModel::Validations inspired by the interactor gem. Rich support for attributes, callbacks, and validations, and thread safe performance methods.

MIT License

Downloads
158.9K
Stars
176
Committers
10

Bot releases are visible (Hide)

activeinteractor - v1.0.0-beta.3

Published by aaronmallen almost 5 years ago

Added

  • #109 ActiveInteractor::Organizer.parallel
  • #109 ActiveInteractor::Organizer.perform_in_parallel
  • #109 ActiveInteractor::Context::Base#merge
  • #110 ActiveInteractor::Interactor::PerformOptions

Changed

  • #110 ActiveInteractor::Interactor.perform now takes options
activeinteractor - v1.0.0-beta.2

Published by aaronmallen almost 5 years ago

Added

  • #102 ActiveInteractor::Config
  • #102 ActiveInteractor.config
  • #103 ActiveInteractor::Rails
  • #103 ActiveInteractor::Rails::Config
  • #102 ActiveInteractor::Railtie
  • #105 interactor, organizer, and context generators now accept context_attributes
    as arguments.

Changed

  • #102 ActiveInteractor.logger is now part of ActiveInteractor.config
  • #104 Interactor generators will no longer generate separate context classes for
    interactors if ActiveInteractor.config.rails.generate_context_classes is set to false

Fixed

  • #103 various generator fixes

Removed

  • #102 ActiveInteractor.logger= use ActiveInteractor.config.logger= instead
activeinteractor - v1.0.0-beta.1

Published by aaronmallen almost 5 years ago

Added

  • ActiveInteractor.logger=
  • ActiveInteractor::Base#dup
  • ActiveInteractor::Context::Loader
  • ActiveInteractor::Error::InvalidContextClass
  • ActiveInteractor::Interactor::Context#context_fail!
  • ActiveInteractor::Interactor::Context#context_rollback!
  • ActiveInteractor::Interactor::Context.contextualize_with
  • ActiveInteractor::Interactor::Context#finalize_context!

Changed

  • ActiveInteractor::Context::Attributes.attributes now excepts arguments for attributes
  • ActiveInteractor::Generators various improvements to rails generators
  • 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.
  • ActiveInteractor::Organizer.organize now excepts symbols and strings as arguments.

Removed

  • ActiveInteractor::Configuration
  • ActiveInteractor::Context::Attributes.attributes= in favor of ActiveInteractor::Context#attributes
  • ActiveInteractor::Context::Attributes.attribute_aliases
  • ActiveInteractor::Context::Attributes#clean!
  • ActiveInteractor::Context::Attributes#keys
  • ActiveInteractor::Interactor#fail_on_invalid_context?
  • ActiveInteractor::Interactor#should_clean_context?
  • ActiveInteractor::Interactor::Callbacks.clean_context_on_completion
  • ActiveInteractor::Interactor::Context.context_attribute_aliases
  • ActiveInteractor::Interactor::Execution
activeinteractor - v0.1.7

Published by aaronmallen about 5 years ago

Fixed

  • #61 Ensure Organizer accurately reports context success
activeinteractor - v0.1.6

Published by aaronmallen about 5 years ago

Changed

  • #45 Lowered method complexity and enforced single responsibility

Security

  • #48 Update simplecov: 0.16.1 → 0.17.0 (major)
  • #51 Update rake: 12.3.2 → 12.3.3 (patch)
activeinteractor - v0.1.5

Published by aaronmallen over 5 years ago

Added

  • #39 ActiveInteractor::Error module

Deprecated

  • #39 ActiveInteractor::Context::Failure in favor of ActiveInteractor::Error::ContextFailure

Security

  • #33, #37 Update rubocop: 0.67.2 → 0.72.0 (major)
  • #34 Various dependency updates
  • #38 Update yard: 0.9.19 → 0.9.20 (minor)
activeinteractor - v0.1.4

Published by aaronmallen over 5 years ago

Added

  • #28: The ability to alias attributes on interactor contexts.
activeinteractor - v0.1.3

Published by aaronmallen over 5 years ago

Added

  • #25: Implement each_perform callbacks on organizers
activeinteractor - v0.1.2

Published by aaronmallen over 5 years ago

Added

  • #22: Allow the directory interactors are generated in to be configurable
activeinteractor - v0.1.1

Published by aaronmallen over 5 years ago

Fixed

  • #15: NameError (uninitialized constant ActiveInteractor::Organizer)
  • #16: NoMethodError (undefined method merge for #<ActiveInteractor::Context::Base>)
activeinteractor - v0.1.0

Published by aaronmallen over 5 years ago

Initial gem release