interactor-rails 2.2.0 → 2.3.0

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: bc65cbf18ce5fbbec1e02ed917daa2a49e4d2bfd626aef17ede0df533bc3944b
4
- data.tar.gz: b70c03d54ff025b83e6599ff2558f57383203f8d70c150d8e6ecf68d785d4808
3
+ metadata.gz: 732b2810255ccf99b1c720642f1133b8a6b7c96dea8fea74493a0a7b7e7bea25
4
+ data.tar.gz: 39675283cc9f10d1454240b8c838a480098e731ee39f791d350f4949f55be3e4
5
5
  SHA512:
6
- metadata.gz: e703564f4935f203aa257cda93084c44e1fccc43e3aed8e09e0e5d3e1ba3e07b23a0a318c1f611255d5b4015479cdd0d8c1be2bba474a6c898cf13767122acff
7
- data.tar.gz: e2852df358e6f2b1a040f6dd09f201ad7da76060d3909733c366b92eabb56e4888b2222c7c35205690d3c1ea6d76d392d1a2649bad8bac752fc3c2e8acde7417
6
+ metadata.gz: c0c913e97e92e0818dd27b0ea6d46fb89ce87ebf63c524fe519fc29cde7ef62d32a22bffb3da928a3ca52c3d5d480f8214904e5f44d2b301e9684ecf92ddf003
7
+ data.tar.gz: 1b3bdaabf48460b18343f5c6a95ca15328cbbcb6000434d58b8494ddf63cf557200e9af6390fb4019bbfcc29929df7af78cc453847255259c66762a0e35b39fc
@@ -0,0 +1,44 @@
1
+ name: Run Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+ spec:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ matrix:
15
+ ruby_version:
16
+ - "3.1"
17
+ - "3.2"
18
+ - "3.3"
19
+ gemfile:
20
+ - "rails70"
21
+ - "rails71"
22
+ - "rails72"
23
+ - "rails80"
24
+ exclude:
25
+ - ruby_version: "3.1"
26
+ gemfile: "rails80"
27
+ include:
28
+ - ruby_version: "head"
29
+ gemfile: "rails-main"
30
+
31
+ env:
32
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
33
+
34
+ steps:
35
+ - uses: actions/checkout@v4
36
+
37
+ - name: Set up Ruby
38
+ uses: ruby/setup-ruby@v1
39
+ with:
40
+ ruby-version: ${{ matrix.ruby_version }}
41
+ bundler-cache: true
42
+
43
+ - name: Run Tests
44
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 2.3.0 / 2024-11-18
2
+
3
+ * [ENHANCEMENT] Add support for test-unit
4
+ * [ENHANCEMENT] Add support for Ruby 3.1+ and Rails 7.0+
5
+ * [ENHANCEMENT] Drop support for EOL Ruby and Rails versions
6
+ * [ENHANCEMENT] Change depdency from all of Rails to just railties
7
+ * [ENHANCEMENT] Prefer spec/rails_helper.rb when available
8
+ * [ENHANCEMENT] Use double quotes in templates
9
+
10
+ ## 2.2.0 / 2019-09-01
11
+
12
+ * [ENHANCEMENT] Add support for Ruby 2.6
13
+ * [ENHANCEMENT] Add support for Rails 6.0+
14
+
1
15
  ## 2.2.0 / 2018-04-23
2
16
 
3
17
  * [ENHANCEMENT] Add support for Ruby 2.5
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Interactor Rails
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/interactor-rails.svg?style=flat-square)](http://rubygems.org/gems/interactor-rails)
4
- [![Build](https://img.shields.io/travis/collectiveidea/interactor-rails/master.svg?style=flat-square)](https://travis-ci.org/collectiveidea/interactor-rails)
4
+ [![Build](https://github.com/collectiveidea/interactor-rails/actions/workflows/tests.yml/badge.svg)](https://github.com/collectiveidea/interactor-rails/actions/workflows/tests.yml)
5
5
  [![Coverage](https://img.shields.io/codeclimate/coverage-letter/collectiveidea/interactor-rails.svg?style=flat-square)](https://codeclimate.com/github/collectiveidea/interactor-rails)
6
6
  [![Maintainability](https://img.shields.io/codeclimate/maintainability/collectiveidea/interactor-rails.svg?style=flat-square)](https://codeclimate.com/github/collectiveidea/interactor-rails)
7
7
 
@@ -16,8 +16,8 @@ Add this line to your application's Gemfile:
16
16
  gem "interactor-rails", "~> 2.0"
17
17
  ```
18
18
 
19
- Interactor Rails is compatible with Ruby 2.3, 2.4, or 2.5 on Rails 4.2, 5.0,
20
- 5.1, or 5.2.
19
+ Interactor Rails is tested against Ruby 3.1 and newer on Rails 7.0 or newer.
20
+ For older versions of Ruby and Rails use version 2.2.1.
21
21
 
22
22
  ## Usage
23
23
 
@@ -0,0 +1,11 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec path: ".."
4
+
5
+ gem "rails", github: "rails/rails"
6
+
7
+ group :test do
8
+ gem "aruba"
9
+ gem "codeclimate-test-reporter", "~> 1.0"
10
+ gem "rspec"
11
+ end
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec path: ".."
4
4
 
5
- gem "rails", ">= 5.2"
5
+ gem "rails", "~> 7.0.0"
6
6
 
7
7
  group :test do
8
8
  gem "aruba"
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec path: ".."
4
4
 
5
- gem "rails", "~> 4.2.0"
5
+ gem "rails", "~> 7.1.0"
6
6
 
7
7
  group :test do
8
8
  gem "aruba"
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec path: ".."
4
4
 
5
- gem "rails", "~> 5.0.0"
5
+ gem "rails", "~> 7.2.0"
6
6
 
7
7
  group :test do
8
8
  gem "aruba"
@@ -2,7 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec path: ".."
4
4
 
5
- gem "rails", "~> 5.1.0"
5
+ gem "rails", "~> 8.0.0"
6
6
 
7
7
  group :test do
8
8
  gem "aruba"
@@ -1,8 +1,8 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "interactor-rails"
5
- spec.version = "2.2.0"
5
+ spec.version = "2.3.0"
6
6
 
7
7
  spec.author = "Collective Idea"
8
8
  spec.email = "info@collectiveidea.com"
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.test_files = spec.files.grep(/^spec/)
16
16
 
17
17
  spec.add_dependency "interactor", "~> 3.0"
18
- spec.add_dependency "rails", ">= 4.2", "< 5.3"
18
+ spec.add_dependency "railties", ">= 7.0"
19
19
 
20
20
  spec.add_development_dependency "bundler"
21
21
  spec.add_development_dependency "rake"
@@ -1,12 +1,29 @@
1
1
  module Interactor
2
2
  class Generator < ::Rails::Generators::NamedBase
3
3
  def self.source_root
4
- File.expand_path("../templates", __FILE__)
4
+ File.expand_path("templates", __dir__)
5
5
  end
6
6
 
7
7
  def generate
8
8
  template "#{self.class.generator_name}.erb", File.join("app/interactors", class_path, "#{file_name}.rb")
9
- template "spec.erb", File.join("spec/interactors", class_path, "#{file_name}_spec.rb")
9
+
10
+ if use_test_unit?
11
+ template "test.erb", File.join("test/interactors", class_path, "#{file_name}_test.rb")
12
+ else
13
+ template "spec.erb", File.join("spec/interactors", class_path, "#{file_name}_spec.rb")
14
+ end
15
+ end
16
+
17
+ def use_test_unit?
18
+ ::Rails.application.config.generators.options[:rails][:test_framework] == :test_unit
19
+ end
20
+
21
+ def rspec_helper_file
22
+ if File.exist?("spec/rails_helper.rb")
23
+ "rails_helper"
24
+ else
25
+ "spec_helper"
26
+ end
10
27
  end
11
28
  end
12
29
  end
@@ -1,7 +1,7 @@
1
- require 'spec_helper'
1
+ require "<%= rspec_helper_file %>"
2
2
 
3
3
  RSpec.describe <%= class_name %>, type: :interactor do
4
- describe '.call' do
4
+ describe ".call" do
5
5
  pending "add some examples to (or delete) #{__FILE__}"
6
6
  end
7
7
  end
@@ -0,0 +1,7 @@
1
+ require "test_helper"
2
+
3
+ class <%= class_name %>Test < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -1,22 +1,18 @@
1
1
  module Interactor
2
2
  describe "Rails" do
3
- def last_command_started
4
- # Account for older versions of Aruba as required by Rails 3.0
5
- Aruba::Api.method_defined?(:last_command_started) ? super : last_command
6
- end
7
-
8
3
  before do
9
- run_simple <<-CMD
4
+ run_command_and_stop <<~CMD
10
5
  bundle exec rails new example \
11
- --skip-yarn \
12
- --skip-gemfile \
13
6
  --skip-git \
14
7
  --skip-keeps \
15
8
  --skip-action-mailer \
16
- --skip-active-record \
17
- --skip-puma \
9
+ --skip-action-mailbox \
10
+ --skip-action-text \
18
11
  --skip-action-cable \
19
- --skip-sprockets \
12
+ --skip-active-record \
13
+ --skip-active-job \
14
+ --skip-active-storage \
15
+ --skip-asset-pipeline \
20
16
  --skip-spring \
21
17
  --skip-listen \
22
18
  --skip-coffee \
@@ -28,172 +24,221 @@ module Interactor
28
24
  --skip-bundle \
29
25
  --skip-bootsnap \
30
26
  --quiet
31
- CMD
27
+ CMD
28
+
32
29
  cd "example"
33
- write_file "Gemfile", <<-EOF
30
+ write_file "Gemfile", <<~FILE
34
31
  gem "rails"
35
32
  gem "interactor-rails", path: "#{ROOT}"
36
- EOF
37
- run_simple "bundle install"
33
+ FILE
34
+
35
+ run_command_and_stop "bundle install"
38
36
  end
39
37
 
40
38
  context "rails generate" do
41
39
  context "interactor" do
42
40
  it "generates an interactor and spec" do
43
- run_simple "bundle exec rails generate interactor place_order"
41
+ run_command_and_stop "bundle exec rails generate interactor place_order"
44
42
 
45
43
  path = "app/interactors/place_order.rb"
46
44
  expect(path).to be_an_existing_file
47
- expect(path).to have_file_content(<<-EOF)
48
- class PlaceOrder
49
- include Interactor
45
+ expect(path).to have_file_content(<<~FILE)
46
+ class PlaceOrder
47
+ include Interactor
50
48
 
51
- def call
52
- # TODO
53
- end
54
- end
55
- EOF
49
+ def call
50
+ # TODO
51
+ end
52
+ end
53
+ FILE
56
54
 
57
- path = 'spec/interactors/place_order_spec.rb'
55
+ path = "spec/interactors/place_order_spec.rb"
58
56
  expect(path).to be_an_existing_file
59
- expect(path).to have_file_content(<<-EOF)
60
- require 'spec_helper'
61
-
62
- RSpec.describe PlaceOrder, type: :interactor do
63
- describe '.call' do
64
- pending "add some examples to (or delete) \#{__FILE__}"
65
- end
66
- end
67
- EOF
57
+ expect(path).to have_file_content(<<~FILE)
58
+ require "spec_helper"
59
+
60
+ RSpec.describe PlaceOrder, type: :interactor do
61
+ describe ".call" do
62
+ pending "add some examples to (or delete) \#{__FILE__}"
63
+ end
64
+ end
65
+ FILE
68
66
  end
69
67
 
70
68
  it "requires a name" do
71
- run_simple "bundle exec rails generate interactor"
69
+ run_command_and_stop "bundle exec rails generate interactor"
72
70
 
73
71
  expect("app/interactors/place_order.rb").not_to be_an_existing_file
74
72
  expect(last_command_started.stdout).to include("rails generate interactor NAME")
75
73
  end
76
74
 
77
75
  it "handles namespacing" do
78
- run_simple "bundle exec rails generate interactor invoice/place_order"
76
+ run_command_and_stop "bundle exec rails generate interactor invoice/place_order"
79
77
 
80
78
  path = "app/interactors/invoice/place_order.rb"
81
79
  expect(path).to be_an_existing_file
82
- expect(path).to have_file_content(<<-EOF)
83
- class Invoice::PlaceOrder
84
- include Interactor
80
+ expect(path).to have_file_content(<<~FILE)
81
+ class Invoice::PlaceOrder
82
+ include Interactor
85
83
 
86
- def call
87
- # TODO
88
- end
89
- end
90
- EOF
84
+ def call
85
+ # TODO
86
+ end
87
+ end
88
+ FILE
91
89
 
92
90
  path = "spec/interactors/invoice/place_order_spec.rb"
93
91
  expect(path).to be_an_existing_file
94
- expect(path).to have_file_content(<<-EOF)
95
- require 'spec_helper'
96
-
97
- RSpec.describe Invoice::PlaceOrder, type: :interactor do
98
- describe '.call' do
99
- pending "add some examples to (or delete) \#{__FILE__}"
100
- end
101
- end
102
- EOF
92
+ expect(path).to have_file_content(<<~FILE)
93
+ require "spec_helper"
94
+
95
+ RSpec.describe Invoice::PlaceOrder, type: :interactor do
96
+ describe ".call" do
97
+ pending "add some examples to (or delete) \#{__FILE__}"
98
+ end
99
+ end
100
+ FILE
103
101
  end
104
102
  end
105
103
 
106
104
  context "interactor:organizer" do
107
105
  it "generates an organizer" do
108
- run_simple <<-CMD
106
+ run_command_and_stop <<~CMD
109
107
  bundle exec rails generate interactor:organizer place_order
110
- CMD
108
+ CMD
111
109
 
112
110
  path = "app/interactors/place_order.rb"
113
111
  expect(path).to be_an_existing_file
114
- expect(path).to have_file_content(<<-EOF)
115
- class PlaceOrder
116
- include Interactor::Organizer
112
+ expect(path).to have_file_content(<<~FILE)
113
+ class PlaceOrder
114
+ include Interactor::Organizer
117
115
 
118
- # organize Interactor1, Interactor2
119
- end
120
- EOF
116
+ # organize Interactor1, Interactor2
117
+ end
118
+ FILE
121
119
 
122
120
  path = "spec/interactors/place_order_spec.rb"
123
121
  expect(path).to be_an_existing_file
124
- expect(path).to have_file_content(<<-EOF)
125
- require 'spec_helper'
126
-
127
- RSpec.describe PlaceOrder, type: :interactor do
128
- describe '.call' do
129
- pending "add some examples to (or delete) \#{__FILE__}"
130
- end
131
- end
132
- EOF
122
+ expect(path).to have_file_content(<<~FILE)
123
+ require "spec_helper"
124
+
125
+ RSpec.describe PlaceOrder, type: :interactor do
126
+ describe ".call" do
127
+ pending "add some examples to (or delete) \#{__FILE__}"
128
+ end
129
+ end
130
+ FILE
133
131
  end
134
132
 
135
133
  it "generates an organizer with interactors" do
136
- run_simple <<-CMD
134
+ run_command_and_stop <<~CMD
137
135
  bundle exec rails generate interactor:organizer place_order \
138
136
  charge_card fulfill_order
139
- CMD
137
+ CMD
140
138
 
141
139
  path = "app/interactors/place_order.rb"
142
140
  expect(path).to be_an_existing_file
143
- expect(path).to have_file_content(<<-EOF)
144
- class PlaceOrder
145
- include Interactor::Organizer
141
+ expect(path).to have_file_content(<<~FILE)
142
+ class PlaceOrder
143
+ include Interactor::Organizer
146
144
 
147
- organize ChargeCard, FulfillOrder
148
- end
149
- EOF
145
+ organize ChargeCard, FulfillOrder
146
+ end
147
+ FILE
150
148
  end
151
149
 
152
150
  it "requires a name" do
153
- run_simple "bundle exec rails generate interactor:organizer"
151
+ run_command_and_stop "bundle exec rails generate interactor:organizer"
154
152
 
155
153
  expect("app/interactors/place_order.rb").not_to be_an_existing_file
156
154
  expect(last_command_started.stdout).to include("rails generate interactor:organizer NAME")
157
155
  end
158
156
 
159
157
  it "handles namespacing" do
160
- run_simple "bundle exec rails generate interactor:organizer invoice/place_order"
158
+ run_command_and_stop "bundle exec rails generate interactor:organizer invoice/place_order"
161
159
 
162
160
  path = "app/interactors/invoice/place_order.rb"
163
161
  expect(path).to be_an_existing_file
164
- expect(path).to have_file_content(<<-EOF)
165
- class Invoice::PlaceOrder
166
- include Interactor::Organizer
162
+ expect(path).to have_file_content(<<~FILE)
163
+ class Invoice::PlaceOrder
164
+ include Interactor::Organizer
167
165
 
168
- # organize Interactor1, Interactor2
169
- end
170
- EOF
166
+ # organize Interactor1, Interactor2
167
+ end
168
+ FILE
171
169
 
172
170
  path = "spec/interactors/invoice/place_order_spec.rb"
173
171
  expect(path).to be_an_existing_file
174
- expect(path).to have_file_content(<<-EOF)
175
- require 'spec_helper'
176
-
177
- RSpec.describe Invoice::PlaceOrder, type: :interactor do
178
- describe '.call' do
179
- pending "add some examples to (or delete) \#{__FILE__}"
180
- end
181
- end
182
- EOF
172
+ expect(path).to have_file_content(<<~FILE)
173
+ require "spec_helper"
174
+
175
+ RSpec.describe Invoice::PlaceOrder, type: :interactor do
176
+ describe ".call" do
177
+ pending "add some examples to (or delete) \#{__FILE__}"
178
+ end
179
+ end
180
+ FILE
183
181
  end
184
182
  end
183
+
184
+ it "prefers rails_helper if available" do
185
+ write_file "spec/rails_helper.rb", <<~FILE
186
+ require "spec_helper"
187
+ FILE
188
+
189
+ run_command_and_stop "bundle exec rails generate interactor place_order"
190
+
191
+ path = "spec/interactors/place_order_spec.rb"
192
+ expect(path).to be_an_existing_file
193
+ expect(path).to have_file_content(<<~FILE)
194
+ require "rails_helper"
195
+
196
+ RSpec.describe PlaceOrder, type: :interactor do
197
+ describe ".call" do
198
+ pending "add some examples to (or delete) \#{__FILE__}"
199
+ end
200
+ end
201
+ FILE
202
+ ensure
203
+ remove("spec/rails_helper.rb")
204
+ end
185
205
  end
186
206
 
187
- it "auto-loads interactors" do
188
- run_simple "bundle exec rails generate interactor place_order"
207
+ it "support test unit instead of rspec" do
208
+ # Enable test-unit support since it is skipped while generating the app.
209
+ write_file "config/initializers/test_unit.rb", <<~FILE
210
+ require "rails/test_unit/railtie"
211
+ FILE
189
212
 
190
- run_simple "bundle exec rails runner PlaceOrder"
213
+ run_command_and_stop "bundle exec rails generate interactor invoice/place_order"
214
+
215
+ path = "spec/interactors/invoice/place_order_spec.rb"
216
+ expect(path).not_to be_an_existing_file
217
+
218
+ path = "test/interactors/invoice/place_order_test.rb"
219
+ expect(path).to be_an_existing_file
220
+
221
+ expect(path).to have_file_content(<<~FILE)
222
+ require "test_helper"
223
+
224
+ class Invoice::PlaceOrderTest < ActiveSupport::TestCase
225
+ # test "the truth" do
226
+ # assert true
227
+ # end
228
+ end
229
+ FILE
230
+ ensure
231
+ remove("config/initializers/test_unit.rb")
191
232
  end
192
233
 
193
- it "auto-loads organizers" do
194
- run_simple "bundle exec rails generate interactor:organizer place_order"
234
+ it "auto-loads interactors" do
235
+ run_command_and_stop "bundle exec rails generate interactor place_order"
236
+ run_command_and_stop "bundle exec rails runner PlaceOrder"
237
+ end
195
238
 
196
- run_simple "bundle exec rails runner PlaceOrder"
239
+ it "auto-loads organizers" do
240
+ run_command_and_stop "bundle exec rails generate interactor:organizer place_order"
241
+ run_command_and_stop "bundle exec rails runner PlaceOrder"
197
242
  end
198
243
  end
199
244
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interactor-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Collective Idea
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-23 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: interactor
@@ -25,25 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rails
28
+ name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '4.2'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '5.3'
33
+ version: '7.0'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - ">="
42
39
  - !ruby/object:Gem::Version
43
- version: '4.2'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '5.3'
40
+ version: '7.0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: bundler
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -78,20 +72,20 @@ executables: []
78
72
  extensions: []
79
73
  extra_rdoc_files: []
80
74
  files:
75
+ - ".github/workflows/tests.yml"
81
76
  - ".gitignore"
82
77
  - ".rspec"
83
- - ".travis.yml"
84
78
  - CHANGELOG.md
85
79
  - CONTRIBUTING.md
86
80
  - Gemfile
87
81
  - LICENSE.txt
88
82
  - README.md
89
83
  - Rakefile
90
- - gemfiles/rails42.gemfile
91
- - gemfiles/rails50.gemfile
92
- - gemfiles/rails51.gemfile
93
- - gemfiles/rails52+.gemfile
94
- - gemfiles/rails52.gemfile
84
+ - gemfiles/rails-main.gemfile
85
+ - gemfiles/rails70.gemfile
86
+ - gemfiles/rails71.gemfile
87
+ - gemfiles/rails72.gemfile
88
+ - gemfiles/rails80.gemfile
95
89
  - interactor-rails.gemspec
96
90
  - lib/generators/interactor.rb
97
91
  - lib/generators/interactor/organizer_generator.rb
@@ -99,6 +93,7 @@ files:
99
93
  - lib/generators/templates/interactor.erb
100
94
  - lib/generators/templates/organizer.erb
101
95
  - lib/generators/templates/spec.erb
96
+ - lib/generators/templates/test.erb
102
97
  - lib/interactor/rails.rb
103
98
  - spec/interactor/rails_spec.rb
104
99
  - spec/spec_helper.rb
@@ -107,7 +102,7 @@ homepage: https://github.com/collectiveidea/interactor-rails
107
102
  licenses:
108
103
  - MIT
109
104
  metadata: {}
110
- post_install_message:
105
+ post_install_message:
111
106
  rdoc_options: []
112
107
  require_paths:
113
108
  - lib
@@ -122,9 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
117
  - !ruby/object:Gem::Version
123
118
  version: '0'
124
119
  requirements: []
125
- rubyforge_project:
126
- rubygems_version: 2.7.6
127
- signing_key:
120
+ rubygems_version: 3.5.19
121
+ signing_key:
128
122
  specification_version: 4
129
123
  summary: Rails support for Interactor
130
124
  test_files:
data/.travis.yml DELETED
@@ -1,30 +0,0 @@
1
- after_success:
2
- - bundle exec codeclimate-test-reporter
3
- before_install:
4
- - gem update bundler rake
5
- branches:
6
- only:
7
- - master
8
- gemfile:
9
- - gemfiles/rails42.gemfile
10
- - gemfiles/rails50.gemfile
11
- - gemfiles/rails51.gemfile
12
- - gemfiles/rails52.gemfile
13
- - gemfiles/rails52+.gemfile
14
- language: ruby
15
- matrix:
16
- allow_failures:
17
- - rvm: ruby-head
18
- - gemfile: gemfiles/rails52+.gemfile
19
- notifications:
20
- webhooks:
21
- on_start: always
22
- urls:
23
- - https://buildlight.collectiveidea.com/
24
- rvm:
25
- - "2.3"
26
- - "2.4"
27
- - "2.5"
28
- - ruby-head
29
- script: bundle exec rspec --format=documentation
30
- sudo: false
@@ -1,11 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: ".."
4
-
5
- gem "rails", "~> 5.2.0"
6
-
7
- group :test do
8
- gem "aruba"
9
- gem "codeclimate-test-reporter", "~> 1.0"
10
- gem "rspec"
11
- end