activeinteractor 1.0.0.beta.4 → 1.0.0.beta.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b887e29c2334d776e28d0df4e79ba53b42123d47e4e6f4da6c94a2fa5b38ea78
4
- data.tar.gz: e6ca29f29e435b5b73e405c41eccfa6dea8837a7316c3d3143abd97cda241347
3
+ metadata.gz: 4d3d5616823da9559ae98eab086893b6daf7b9030b6baa2cf1cf29c0bc5b4ea3
4
+ data.tar.gz: e97629bee106e82dc438c227354f9ef598c8c1945f8f28a0a03e99e012e86ece
5
5
  SHA512:
6
- metadata.gz: 8f766aa0e2c50d7cec5c74def38f7e2ea9d3918354f511d2ec127cf4054c9484638f1cd6f984686e1b12ca09116f53708fd4e5f714620178c4dd73ab745d6ee3
7
- data.tar.gz: 2ece11503295a16bfba3860cb8d4ad3653eca4a1399c5b8928b2780884ca81b48b3a6128c9fce11b464cd0bf2928d4f22924a7d2d6a4c4a00e71d9c7603375a2
6
+ metadata.gz: 6f0b4ebbf1e49d32536d07b52e4d92608df89a4413a215edb1c4f330da2ad5f4e63b6c1e7eff908bd93f74ecb42f5a7e5a829df3ddab86d4aa739c1dfbf0f89c
7
+ data.tar.gz: 2666da64595c132aa988c3b7818c4bee589935d826a4e9d480ab5467a31e9c45106f6ca1aaee4b4a0069f95c411c420472535a723409d9f369b6c5c239bacea2
data/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [v1.0.0-beta.5] - 2020-01-21
11
+
12
+ ### Added
13
+
14
+ - [#122] `ActiveInteractor::Rails::Railtie`
15
+ - [#122] `ActiveInteractor::Rails.config`
16
+ - [#122] `ActiveInteractor::Rails.configure`
17
+
18
+ ### Removed
19
+
20
+ - [#122] `ActiveInteractor::Railtie` use `ActiveInteractor::Rails::Railtie` instead
21
+ - [#122] `ActiveInteractor::Config#rails` use `ActiveInteractor::Rails.configure` instead
22
+
10
23
  ## [v1.0.0-beta.4] - 2020-01-14
11
24
 
12
25
  ### Added
@@ -169,7 +182,8 @@ and this project adheres to [Semantic Versioning].
169
182
 
170
183
  <!-- versions -->
171
184
 
172
- [Unreleased]: https://github.com/aaronmallen/activeinteractor/compare/v1.0.0-beta.4...HEAD
185
+ [Unreleased]: https://github.com/aaronmallen/activeinteractor/compare/v1.0.0-beta.5...HEAD
186
+ [v1.0.0-beta.5]: https://github.com/aaronmallen/activeinteractor/compare/v1.0.0-beta.4...v1.0.0-beta.5
173
187
  [v1.0.0-beta.4]: https://github.com/aaronmallen/activeinteractor/compare/v1.0.0-beta.3...v1.0.0-beta.4
174
188
  [v1.0.0-beta.3]: https://github.com/aaronmallen/activeinteractor/compare/v1.0.0-beta.2...v1.0.0-beta.3
175
189
  [v1.0.0-beta.2]: https://github.com/aaronmallen/activeinteractor/compare/v1.0.0-beta.1...v1.0.0-beta.2
@@ -206,3 +220,4 @@ and this project adheres to [Semantic Versioning].
206
220
  [#110]: https://github.com/aaronmallen/activeinteractor/pull/110
207
221
  [#114]:https://github.com/aaronmallen/activeinteractor/pull/114
208
222
  [#115]: https://github.com/aaronmallen/activeinteractor/pull/115
223
+ [#122]: https://github.com/aaronmallen/activeinteractor/pull/122
data/README.md CHANGED
@@ -5,9 +5,8 @@
5
5
  [![Dependencies](https://img.shields.io/depfu/aaronmallen/activeinteractor.svg?maxAge=300)](https://depfu.com/github/aaronmallen/activeinteractor)
6
6
 
7
7
  [![Build Status](https://github.com/aaronmallen/activeinteractor/workflows/Build/badge.svg)](https://github.com/aaronmallen/activeinteractor/actions)
8
- [![Maintainability](https://img.shields.io/codeclimate/maintainability/aaronmallen/activeinteractor.svg?maxAge=300)](https://codeclimate.com/github/aaronmallen/activeinteractor/maintainability)
9
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/be92c4ecf12347da82d266f6a4368b6e)](https://www.codacy.com/manual/aaronmallen/activeinteractor?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=aaronmallen/activeinteractor&amp;utm_campaign=Badge_Grade)
10
- [![Test Coverage](https://img.shields.io/codeclimate/coverage/aaronmallen/activeinteractor.svg?maxAge=300)](https://codeclimate.com/github/aaronmallen/activeinteractor/test_coverage)
8
+ [![Code Quality](https://api.codacy.com/project/badge/Grade/be92c4ecf12347da82d266f6a4368b6e)](https://www.codacy.com/manual/aaronmallen/activeinteractor?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=aaronmallen/activeinteractor&amp;utm_campaign=Badge_Grade)
9
+ [![Test Coverage](https://api.codacy.com/project/badge/Coverage/be92c4ecf12347da82d266f6a4368b6e)](https://www.codacy.com/manual/aaronmallen/activeinteractor?utm_source=github.com&utm_medium=referral&utm_content=aaronmallen/activeinteractor&utm_campaign=Badge_Coverage)
11
10
 
12
11
  Ruby interactors with [ActiveModel::Validations] based on the [interactor][collective_idea_interactors] gem.
13
12
 
@@ -50,7 +49,7 @@ see [v0.1.7](https://github.com/aaronmallen/activeinteractor/tree/0-1-stable)**
50
49
  Add this line to your application's Gemfile:
51
50
 
52
51
  ```ruby
53
- gem 'activeinteractor', '~> 1.0.0.beta.3'
52
+ gem 'activeinteractor', '~> 1.0.0.beta.5'
54
53
  ```
55
54
 
56
55
  And then execute:
@@ -191,9 +190,8 @@ See [Using Interactors](#using-interactors), below, for the recommended usage of
191
190
 
192
191
  #### Context Attributes
193
192
 
194
- Each context instance have basic attribute assignment methods which can be invoked directly from the interactor.
195
- You never need to directly interface with an interactor's context class. Assigning attributes to a context is a
196
- simple way to explicitly defined what properties a context should have after an interactor has done it's work.
193
+ Each context instance has basic attribute assignment methods. Assigning attributes to a context is a simple way to
194
+ explicitly defined what properties a context should have after an interactor has done it's work.
197
195
 
198
196
  You can see what attributes are defined on a given context with the `#attributes` method:
199
197
 
@@ -218,10 +216,10 @@ result.occupation #=> 'Software Dude'
218
216
 
219
217
  #### Validating the Context
220
218
 
221
- ActiveInteractor delegates all the validation methods provided by [ActiveModel::Validations] onto an interactor's
222
- context class from the interactor itself. All of the methods found in [ActiveModel::Validations] can be invoked directly
223
- on your interactor with the prefix `context_`. However this can be confusing and it is recommended to make all validation
224
- calls on a context class directly.
219
+ All context instances include [ActiveModel::Validations]; additionally ActiveInteractor delegates all the validation methods
220
+ provided by [ActiveModel::Validations] onto an interactor's context class from the interactor itself. All of the methods
221
+ found in [ActiveModel::Validations] can be invoked directly on your interactor with the prefix `context_`.
222
+ However this can be confusing and it is recommended to make all validation calls on a context class directly.
225
223
 
226
224
  ActiveInteractor provides two validation callback steps:
227
225
 
@@ -343,17 +341,17 @@ class AuthenticateUser < ActiveInteractor::Base
343
341
  end
344
342
  ```
345
343
 
346
- The `perform` class method is the proper way to invoke an interactor. The hash argument is converted to the interactor instance's
347
- context. The `perform` instance method is invoked along with any callbacks and validations that the interactor might define.
344
+ The `.perform` class method is the proper way to invoke an interactor. The hash argument is converted to the interactor instance's
345
+ context. The `#perform` instance method is invoked along with any callbacks and validations that the interactor might define.
348
346
  Finally, the context (along with any changes made to it) is returned.
349
347
 
350
348
  #### Kinds of Interactors
351
349
 
352
- There are two kinds of interactors built into the Interactor library: basic interactors and organizers.
350
+ There are two kinds of interactors built into ActiveInteractor: basic interactors and organizers.
353
351
 
354
352
  ##### Interactors
355
353
 
356
- A basic interactor is a class that includes Interactor and defines `perform`.\
354
+ A basic interactor is a class that inherits from `ActiveInteractor::Base` and defines `perform`.
357
355
 
358
356
  ```ruby
359
357
  class AuthenticateUser < ActiveInteractor::Base
@@ -428,14 +426,14 @@ change that context before it's passed along to the next interactor.
428
426
 
429
427
  ###### Organizing Interactors Conditionally
430
428
 
431
- We can also add conditional statements to our organizer by passing a block to the `#organize` method:
429
+ We can also add conditional statements to our organizer by passing a block to the `.organize` method:
432
430
 
433
431
  ```ruby
434
432
  class PlaceOrder < ActiveInteractor::Organizer
435
433
  organize do
436
434
  add :create_order, if :user_registered?
437
- add :charge_card, if: -> { context.order_number }
438
- add :send_thank_you, if: -> { context.order_number }
435
+ add :charge_card, if: -> { context.order }
436
+ add :send_thank_you, if: -> { context.order }
439
437
  end
440
438
 
441
439
  private
@@ -448,9 +446,9 @@ end
448
446
 
449
447
  ###### Running Interactors In Parallel
450
448
 
451
- Organizers can be told to run their interactors in parallel with the `#perform_in_parallel` class method. This
452
- will run each interactor in parallel with one and other only passing the original context to each organizer.
453
- This means each interactor must be able to perform without dependencies on prior interactor runs.
449
+ Organizers can be told to run their interactors in parallel with the `.perform_in_parallel` class method. This
450
+ will run each interactor in parallel with one and other only passing the original context to each interactor.
451
+ This means each interactor must be able to perform without dependencies on prior interactor invokations.
454
452
 
455
453
  ```ruby
456
454
  class CreateNewUser < ActiveInteractor::Base
@@ -515,7 +513,7 @@ outlined in those two modules.
515
513
 
516
514
  ##### Validation Callbacks
517
515
 
518
- We can do work before an interactor's context is validated with the `before_context_validation` method:
516
+ We can do work before an interactor's context is validated with the `.before_context_validation` method:
519
517
 
520
518
  ```ruby
521
519
  class MyInteractorContext < ActiveInteractor::Context::Base
@@ -532,7 +530,7 @@ result.valid? #=> true
532
530
  result.last_name #=> 'Unknown'
533
531
  ```
534
532
 
535
- We can do work after an interactor's context is validated with the `after_context_validation` method:
533
+ We can do work after an interactor's context is validated with the `.after_context_validation` method:
536
534
 
537
535
  ```ruby
538
536
  class MyInteractorContext < ActiveInteractor::Context::Base
@@ -552,7 +550,7 @@ result.email #=> 'hello@aaronmallen.me'
552
550
 
553
551
  ##### Perform Callbacks
554
552
 
555
- We can do work before `perform` is invoked with the `before_perform` method:
553
+ We can do work before `#perform` is invoked with the `.before_perform` method:
556
554
 
557
555
  ```ruby
558
556
  class MyInteractor < ActiveInteractor::Base
@@ -575,7 +573,7 @@ MyInteractor.perform
575
573
  #=> <#MyInteractor::Context...>
576
574
  ```
577
575
 
578
- We can do work around `perform` invokation with the `around_perform` method:
576
+ We can do work around `#perform` invokation with the `.around_perform` method:
579
577
 
580
578
  ```ruby
581
579
  class MyInteractor < ActiveInteractor::Base
@@ -599,7 +597,7 @@ result.start_time #=> 2019-01-01 00:00:00 UTC
599
597
  result.end_time #=> 2019-01-01 00:00:01 UTC
600
598
  ```
601
599
 
602
- We can do work after `perform` is invoked with the `after_perform` method:
600
+ We can do work after `#perform` is invoked with the `.after_perform` method:
603
601
 
604
602
  ```ruby
605
603
  class MyInteractor < ActiveInteractor::Base
@@ -624,7 +622,7 @@ MyInteractor.perform
624
622
 
625
623
  ##### Rollback Callbacks
626
624
 
627
- We can do work before `rollback` is invoked with the `before_rollback` method:
625
+ We can do work before `#rollback` is invoked with the `.before_rollback` method:
628
626
 
629
627
  ```ruby
630
628
  class MyInteractor < ActiveInteractor::Base
@@ -651,7 +649,7 @@ MyInteractor.perform
651
649
  #=> <#MyInteractor::Context...>
652
650
  ```
653
651
 
654
- We can do work around `rollback` invokation with the `around_rollback` method:
652
+ We can do work around `#rollback` invokation with the `.around_rollback` method:
655
653
 
656
654
  ```ruby
657
655
  class MyInteractor < ActiveInteractor::Base
@@ -679,7 +677,7 @@ result.start_time #=> 2019-01-01 00:00:00 UTC
679
677
  result.end_time #=> 2019-01-01 00:00:01 UTC
680
678
  ```
681
679
 
682
- We can do work after `rollback` is invoked with the `after_rollback` method:
680
+ We can do work after `#rollback` is invoked with the `.after_rollback` method:
683
681
 
684
682
  ```ruby
685
683
  class MyInteractor < ActiveInteractor::Base
@@ -708,8 +706,8 @@ MyInteractor.perform
708
706
 
709
707
  ##### Organizer Callbacks
710
708
 
711
- We can do worker before `perform` is invoked on each interactor in an [Organizer](#organizers) with the
712
- `before_each_perform` method:
709
+ We can do worker before `#perform` is invoked on each interactor in an [Organizer](#organizers) with the
710
+ `.before_each_perform` method:
713
711
 
714
712
  ```ruby
715
713
  class MyInteractor1 < ActiveInteractor::Base
@@ -744,8 +742,8 @@ MyOrganizer.perform
744
742
  #=> <MyOrganizer::Context...>
745
743
  ```
746
744
 
747
- We can do worker around `perform` is invokation on each interactor in an [Organizer](#organizers) with the
748
- `around_each_perform` method:
745
+ We can do worker around `#perform` invokation on each interactor in an [Organizer](#organizers) with the
746
+ `.around_each_perform` method:
749
747
 
750
748
  ```ruby
751
749
  class MyInteractor1 < ActiveInteractor::Base
@@ -786,8 +784,8 @@ MyOrganizer.perform
786
784
  #=> <MyOrganizer::Context...>
787
785
  ```
788
786
 
789
- We can do worker after `perform` is invoked on each interactor in an [Organizer](#organizers) with the
790
- `after_each_perform` method:
787
+ We can do worker after `#perform` is invoked on each interactor in an [Organizer](#organizers) with the
788
+ `.after_each_perform` method:
791
789
 
792
790
  ```ruby
793
791
  class MyInteractor1 < ActiveInteractor::Base
@@ -13,23 +13,6 @@ module ActiveInteractor
13
13
  class Config
14
14
  include Configurable
15
15
  defaults logger: Logger.new(STDOUT)
16
-
17
- # @!method initialize(options = {})
18
- # @param options [Hash] the options for the configuration
19
- # @option options [Logger] :logger the configuration logger instance
20
- # @return [Config] a new instance of {Config}
21
-
22
- # The rails configuration object
23
- # @return [Rails::Config|nil] an instance of {Rails::Config} if `Rails` is
24
- # defined or `nil`.
25
- def rails
26
- @rails ||= begin
27
- return unless defined?(::Rails)
28
-
29
- require 'active_interactor/rails/config'
30
- Rails::Config.new
31
- end
32
- end
33
16
  end
34
17
 
35
18
  # The ActiveInteractor configuration
@@ -23,5 +23,23 @@ module ActiveInteractor
23
23
  # generate_context_class property.
24
24
  # @return [Config] a new instance of {Config}
25
25
  end
26
+
27
+ # The {ActiveInteractor::Rails} configuration
28
+ # @since 1.0.0
29
+ # @return [ActiveInteractor::Config] the configuration instance
30
+ def self.config
31
+ @config ||= Config.new
32
+ end
33
+
34
+ # Configures {ActiveInteractor::Rails}
35
+ # @since 1.0.0
36
+ # @example Configure ActiveInteractor
37
+ # ActiveInteractor.configure do |config|
38
+ # config.logger = Rails.logger
39
+ # end
40
+ # @yield [ActiveInteractor::Rails#config]
41
+ def self.configure
42
+ yield config
43
+ end
26
44
  end
27
45
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails'
4
+
5
+ require 'active_interactor'
6
+
7
+ module ActiveInteractor
8
+ module Rails
9
+ # Configure ActiveInteractor for rails
10
+ # @author Aaron Allen <hello@aaronmallen.me>
11
+ # @since 1.0.0
12
+ class Railtie < ::Rails::Railtie
13
+ config.active_interactor = ActiveInteractor::Rails.config
14
+
15
+ config.eager_load_namespaces << ActiveInteractor
16
+
17
+ config.to_prepare do
18
+ ActiveInteractor.configure do |c|
19
+ c.logger = ::Rails.logger
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,12 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rails'
4
+
5
+ require 'active_interactor'
6
+ require 'active_interactor/rails/config'
7
+ require 'active_interactor/rails/railtie'
8
+
3
9
  module ActiveInteractor
4
10
  # Rails specific classes, helpers, and utlities
5
11
  # @author Aaron Allen <hello@aaronmallen.me>
6
12
  # @since 1.0.0
7
13
  module Rails
8
- extend ActiveSupport::Autoload
9
-
10
- autoload :Config
11
14
  end
12
15
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ActiveInteractor
4
4
  # @return [String] the ActiveInteractor version
5
- VERSION = '1.0.0.beta.4'
5
+ VERSION = '1.0.0.beta.5'
6
6
  end
@@ -36,4 +36,4 @@ module ActiveInteractor
36
36
  end
37
37
  end
38
38
 
39
- require 'active_interactor/railtie' if defined?(::Rails)
39
+ require 'active_interactor/rails' if defined?(::Rails)
@@ -16,7 +16,7 @@ module ActiveInteractor
16
16
  end
17
17
 
18
18
  def create_application_context
19
- return if ActiveInteractor.config.rails.generate_context_classes == false
19
+ return if ActiveInteractor::Rails.config.generate_context_classes == false
20
20
 
21
21
  template 'application_context.rb', File.join(target_path, 'application_context.rb')
22
22
  end
@@ -2,18 +2,16 @@
2
2
 
3
3
  require 'active_interactor'
4
4
 
5
- ActiveInteractor.configure do |config|
6
- # set ActiveInteractor.logger to Rails.logger
7
- config.logger = ::Rails.logger
5
+ ActiveInteractor::Rails.configure do |config|
8
6
 
9
7
  # set the default directory for interactors
10
8
  <%- if directory != 'interactors' -%>
11
- config.rails.directory = '<%= directory %>'
9
+ config.directory = '<%= directory %>'
12
10
  <%- else -%>
13
- # config.rails.directory = 'interactors'
11
+ # config.directory = 'interactors'
14
12
  <%- end -%>
15
13
 
16
14
  # do not automatically generate context classes
17
15
  # when interactors are generated
18
- # config.rails.generate_context_classes = false
16
+ # config.generate_context_classes = false
19
17
  end
@@ -9,7 +9,7 @@ module ActiveInteractor
9
9
  private
10
10
 
11
11
  def interactor_directory
12
- @interactor_directory ||= ActiveInteractor.config.rails.directory
12
+ @interactor_directory ||= ActiveInteractor::Rails.config.directory
13
13
  end
14
14
  end
15
15
 
@@ -24,7 +24,7 @@ module ActiveInteractor
24
24
  private
25
25
 
26
26
  def skip_context?
27
- options[:skip_context] == true || ActiveInteractor.config.rails.generate_context_classes == false
27
+ options[:skip_context] == true || ActiveInteractor::Rails.config.generate_context_classes == false
28
28
  end
29
29
  end
30
30
 
@@ -36,7 +36,7 @@ module Interactor
36
36
  end
37
37
 
38
38
  def skip_context?
39
- options[:skip_context] == true || ActiveInteractor.config.rails.generate_context_classes == false
39
+ options[:skip_context] == true || ActiveInteractor::Rails.config.generate_context_classes == false
40
40
  end
41
41
  end
42
42
  end
@@ -13,18 +13,4 @@ RSpec.describe ActiveInteractor::Config do
13
13
  expect(subject[:logger]).to be_a Logger
14
14
  end
15
15
  end
16
-
17
- describe '.rails' do
18
- subject { described_class.new.rails }
19
-
20
- context 'with ::Rails not defined' do
21
- it { is_expected.to be_nil }
22
- end
23
-
24
- context 'with ::Rails defined' do
25
- before { stub_const('::Rails', 'Rails') }
26
-
27
- it { is_expected.not_to be_nil }
28
- end
29
- end
30
16
  end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+ require 'active_interactor/rails'
5
+
6
+ RSpec.describe ActiveInteractor::Rails do
7
+ describe '.config' do
8
+ subject { described_class.config }
9
+
10
+ it { is_expected.to be_a ActiveInteractor::Rails::Config }
11
+ end
12
+
13
+ describe '.configure' do
14
+ it 'is expected to yield config' do
15
+ expect { |b| described_class.configure(&b) }.to yield_control
16
+ end
17
+ end
18
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeinteractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.4
4
+ version: 1.0.0.beta.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Allen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-14 00:00:00.000000000 Z
11
+ date: 2020-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -123,7 +123,7 @@ files:
123
123
  - lib/active_interactor/organizer/interactor_interface_collection.rb
124
124
  - lib/active_interactor/rails.rb
125
125
  - lib/active_interactor/rails/config.rb
126
- - lib/active_interactor/railtie.rb
126
+ - lib/active_interactor/rails/railtie.rb
127
127
  - lib/active_interactor/version.rb
128
128
  - lib/rails/generators/active_interactor.rb
129
129
  - lib/rails/generators/active_interactor/application_interactor_generator.rb
@@ -156,6 +156,7 @@ files:
156
156
  - spec/active_interactor/organizer/interactor_interface_spec.rb
157
157
  - spec/active_interactor/organizer_spec.rb
158
158
  - spec/active_interactor/rails/config_spec.rb
159
+ - spec/active_interactor/rails_spec.rb
159
160
  - spec/active_interactor_spec.rb
160
161
  - spec/integration/basic_callback_integration_spec.rb
161
162
  - spec/integration/basic_context_integration_spec.rb
@@ -173,10 +174,10 @@ licenses:
173
174
  - MIT
174
175
  metadata:
175
176
  bug_tracker_uri: https://github.com/aaronmallen/activeinteractor/issues
176
- changelog_uri: https://github.com/aaronmallen/activeinteractor/blob/v1.0.0.beta.4/CHANGELOG.md
177
- documentation_uri: https://www.rubydoc.info/gems/activeinteractor/1.0.0.beta.4
177
+ changelog_uri: https://github.com/aaronmallen/activeinteractor/blob/v1.0.0.beta.5/CHANGELOG.md
178
+ documentation_uri: https://www.rubydoc.info/gems/activeinteractor/1.0.0.beta.5
178
179
  hompage_uri: https://github.com/aaronmallen/activeinteractor
179
- source_code_uri: https://github.com/aaronmallen/activeinteractor/tree/v1.0.0.beta.4
180
+ source_code_uri: https://github.com/aaronmallen/activeinteractor/tree/v1.0.0.beta.5
180
181
  wiki_uri: https://github.com/aaronmallen/activeinteractor/wiki
181
182
  post_install_message:
182
183
  rdoc_options: []
@@ -217,6 +218,7 @@ test_files:
217
218
  - spec/active_interactor/organizer/interactor_interface_spec.rb
218
219
  - spec/active_interactor/organizer/interactor_interface_collection_spec.rb
219
220
  - spec/active_interactor/rails/config_spec.rb
221
+ - spec/active_interactor/rails_spec.rb
220
222
  - spec/active_interactor/interactor/worker_spec.rb
221
223
  - spec/active_interactor/interactor/perform_options_spec.rb
222
224
  - spec/active_interactor/error_spec.rb
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_interactor'
4
- require 'active_interactor/rails'
5
-
6
- module ActiveInteractor
7
- class Railtie < ::Rails::Railtie
8
- config.active_interactor = ActiveInteractor.config
9
- end
10
- end