interactor-rails 2.2.1 → 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: 1bfbcd20cc2ae12dbe376b0304285ad9307aa70b727b6ed8b1308ac31f266dba
4
- data.tar.gz: 6b66439ef9e2a07eae685e7dc5b06b07d8c61b14dac284e680183310f2c294ec
3
+ metadata.gz: 732b2810255ccf99b1c720642f1133b8a6b7c96dea8fea74493a0a7b7e7bea25
4
+ data.tar.gz: 39675283cc9f10d1454240b8c838a480098e731ee39f791d350f4949f55be3e4
5
5
  SHA512:
6
- metadata.gz: a0664029ba21916436a434ea9dd07989f108cdef1da5977e4ed850efedd3715a7ed81f38e8d01a2c7473fca3264c34469d34526b48aa8b685645401dd366934d
7
- data.tar.gz: 784ec1e1e7060ee5ea89056fc216017a5299b19843e23c437c3da036f6e3bfc27d25cd11831529727465a0a732782fdac120db5966d3f08f968b39fc5085cc06
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,12 @@
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
+
1
10
  ## 2.2.0 / 2019-09-01
2
11
 
3
12
  * [ENHANCEMENT] Add support for Ruby 2.6
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, 5.2 or 6.0.
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
 
@@ -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", "~> 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", "~> 5.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", "~> 4.2.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.0.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.1"
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"
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_command_and_stop <<-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,12 +24,14 @@ 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
33
+ FILE
34
+
37
35
  run_command_and_stop "bundle install"
38
36
  end
39
37
 
@@ -44,27 +42,27 @@ module Interactor
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
@@ -79,74 +77,74 @@ EOF
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_command_and_stop <<-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_command_and_stop <<-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
@@ -161,38 +159,85 @@ EOF
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
205
+ end
206
+
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
212
+
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")
185
232
  end
186
233
 
187
234
  it "auto-loads interactors" do
188
235
  run_command_and_stop "bundle exec rails generate interactor place_order"
189
-
190
236
  run_command_and_stop "bundle exec rails runner PlaceOrder"
191
237
  end
192
238
 
193
239
  it "auto-loads organizers" do
194
240
  run_command_and_stop "bundle exec rails generate interactor:organizer place_order"
195
-
196
241
  run_command_and_stop "bundle exec rails runner PlaceOrder"
197
242
  end
198
243
  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.1
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: 2019-09-04 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,19 +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'
33
+ version: '7.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '4.2'
40
+ version: '7.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,21 +72,20 @@ executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
+ - ".github/workflows/tests.yml"
75
76
  - ".gitignore"
76
77
  - ".rspec"
77
- - ".travis.yml"
78
78
  - CHANGELOG.md
79
79
  - CONTRIBUTING.md
80
80
  - Gemfile
81
81
  - LICENSE.txt
82
82
  - README.md
83
83
  - Rakefile
84
- - gemfiles/rails-master.gemfile
85
- - gemfiles/rails42.gemfile
86
- - gemfiles/rails50.gemfile
87
- - gemfiles/rails51.gemfile
88
- - gemfiles/rails52.gemfile
89
- - gemfiles/rails60.gemfile
84
+ - gemfiles/rails-main.gemfile
85
+ - gemfiles/rails70.gemfile
86
+ - gemfiles/rails71.gemfile
87
+ - gemfiles/rails72.gemfile
88
+ - gemfiles/rails80.gemfile
90
89
  - interactor-rails.gemspec
91
90
  - lib/generators/interactor.rb
92
91
  - lib/generators/interactor/organizer_generator.rb
@@ -94,6 +93,7 @@ files:
94
93
  - lib/generators/templates/interactor.erb
95
94
  - lib/generators/templates/organizer.erb
96
95
  - lib/generators/templates/spec.erb
96
+ - lib/generators/templates/test.erb
97
97
  - lib/interactor/rails.rb
98
98
  - spec/interactor/rails_spec.rb
99
99
  - spec/spec_helper.rb
@@ -102,7 +102,7 @@ homepage: https://github.com/collectiveidea/interactor-rails
102
102
  licenses:
103
103
  - MIT
104
104
  metadata: {}
105
- post_install_message:
105
+ post_install_message:
106
106
  rdoc_options: []
107
107
  require_paths:
108
108
  - lib
@@ -117,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.0.4
121
- signing_key:
120
+ rubygems_version: 3.5.19
121
+ signing_key:
122
122
  specification_version: 4
123
123
  summary: Rails support for Interactor
124
124
  test_files:
data/.travis.yml DELETED
@@ -1,61 +0,0 @@
1
- dist: bionic
2
- language: ruby
3
-
4
- rvm:
5
- - "2.3"
6
- - "2.4"
7
- - "2.5"
8
- - "2.6"
9
- - ruby-head
10
-
11
- gemfile:
12
- - Gemfile
13
- - gemfiles/rails50.gemfile
14
- - gemfiles/rails51.gemfile
15
- - gemfiles/rails52.gemfile
16
- - gemfiles/rails60.gemfile
17
-
18
- matrix:
19
- include:
20
- # Rails 4.2 requires Bundler 1.x which was being difficult to use with
21
- # Travis and Ruby 2.6+ since Bundler is now packaged with Ruby.
22
- - rvm: "2.3"
23
- gemfile: gemfiles/rails42.gemfile
24
- - rvm: "2.4"
25
- gemfile: gemfiles/rails42.gemfile
26
- - rvm: "2.5"
27
- gemfile: gemfiles/rails42.gemfile
28
-
29
- # Test Rails master against the latest stable version of Ruby
30
- - rvm: "ruby"
31
- gemfile: gemfiles/rails-master.gemfile
32
-
33
- exclude:
34
- - rvm: "2.3"
35
- gemfile: Gemfile
36
- - rvm: "2.3"
37
- gemfile: gemfiles/rails60.gemfile
38
- - rvm: "2.4"
39
- gemfile: Gemfile
40
- - rvm: "2.4"
41
- gemfile: gemfiles/rails60.gemfile
42
- allow_failures:
43
- - rvm: ruby-head
44
- - gemfile: gemfiles/rails-master.gemfile
45
-
46
- before_install:
47
- # Use bundler 1.x with Rails 4.2
48
- - "([[ $BUNDLE_GEMFILE =~ rails42 ]] && (gem uninstall -v '>= 2' -ax bundler || true) && gem install bundler -v '< 2') || true"
49
-
50
- script:
51
- - bundle exec rspec --format=documentation
52
-
53
- # Report test cover to codeclimate
54
- after_success:
55
- - bundle exec codeclimate-test-reporter
56
-
57
- notifications:
58
- webhooks:
59
- on_start: always
60
- urls:
61
- - https://buildlight.collectiveidea.com/
@@ -1,11 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: ".."
4
-
5
- gem "rails", "~> 6.0.0"
6
-
7
- group :test do
8
- gem "aruba"
9
- gem "codeclimate-test-reporter", "~> 1.0"
10
- gem "rspec"
11
- end