interactor-rails 2.2.0 → 2.2.1

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: 1bfbcd20cc2ae12dbe376b0304285ad9307aa70b727b6ed8b1308ac31f266dba
4
+ data.tar.gz: 6b66439ef9e2a07eae685e7dc5b06b07d8c61b14dac284e680183310f2c294ec
5
5
  SHA512:
6
- metadata.gz: e703564f4935f203aa257cda93084c44e1fccc43e3aed8e09e0e5d3e1ba3e07b23a0a318c1f611255d5b4015479cdd0d8c1be2bba474a6c898cf13767122acff
7
- data.tar.gz: e2852df358e6f2b1a040f6dd09f201ad7da76060d3909733c366b92eabb56e4888b2222c7c35205690d3c1ea6d76d392d1a2649bad8bac752fc3c2e8acde7417
6
+ metadata.gz: a0664029ba21916436a434ea9dd07989f108cdef1da5977e4ed850efedd3715a7ed81f38e8d01a2c7473fca3264c34469d34526b48aa8b685645401dd366934d
7
+ data.tar.gz: 784ec1e1e7060ee5ea89056fc216017a5299b19843e23c437c3da036f6e3bfc27d25cd11831529727465a0a732782fdac120db5966d3f08f968b39fc5085cc06
@@ -1,30 +1,61 @@
1
- after_success:
2
- - bundle exec codeclimate-test-reporter
3
- before_install:
4
- - gem update bundler rake
5
- branches:
6
- only:
7
- - master
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
+
8
11
  gemfile:
9
- - gemfiles/rails42.gemfile
12
+ - Gemfile
10
13
  - gemfiles/rails50.gemfile
11
14
  - gemfiles/rails51.gemfile
12
15
  - gemfiles/rails52.gemfile
13
- - gemfiles/rails52+.gemfile
14
- language: ruby
16
+ - gemfiles/rails60.gemfile
17
+
15
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
16
42
  allow_failures:
17
43
  - rvm: ruby-head
18
- - gemfile: gemfiles/rails52+.gemfile
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
+
19
57
  notifications:
20
58
  webhooks:
21
59
  on_start: always
22
60
  urls:
23
61
  - 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,3 +1,8 @@
1
+ ## 2.2.0 / 2019-09-01
2
+
3
+ * [ENHANCEMENT] Add support for Ruby 2.6
4
+ * [ENHANCEMENT] Add support for Rails 6.0+
5
+
1
6
  ## 2.2.0 / 2018-04-23
2
7
 
3
8
  * [ENHANCEMENT] Add support for Ruby 2.5
data/README.md CHANGED
@@ -17,7 +17,7 @@ gem "interactor-rails", "~> 2.0"
17
17
  ```
18
18
 
19
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.
20
+ 5.1, 5.2 or 6.0.
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", "~> 6.0.0"
6
6
 
7
7
  group :test do
8
8
  gem "aruba"
@@ -2,7 +2,7 @@
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.2.1"
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 "rails", ">= 4.2"
19
19
 
20
20
  spec.add_development_dependency "bundler"
21
21
  spec.add_development_dependency "rake"
@@ -6,7 +6,7 @@ module Interactor
6
6
  end
7
7
 
8
8
  before do
9
- run_simple <<-CMD
9
+ run_command_and_stop <<-CMD
10
10
  bundle exec rails new example \
11
11
  --skip-yarn \
12
12
  --skip-gemfile \
@@ -34,13 +34,13 @@ module Interactor
34
34
  gem "rails"
35
35
  gem "interactor-rails", path: "#{ROOT}"
36
36
  EOF
37
- run_simple "bundle install"
37
+ run_command_and_stop "bundle install"
38
38
  end
39
39
 
40
40
  context "rails generate" do
41
41
  context "interactor" do
42
42
  it "generates an interactor and spec" do
43
- run_simple "bundle exec rails generate interactor place_order"
43
+ run_command_and_stop "bundle exec rails generate interactor place_order"
44
44
 
45
45
  path = "app/interactors/place_order.rb"
46
46
  expect(path).to be_an_existing_file
@@ -68,14 +68,14 @@ EOF
68
68
  end
69
69
 
70
70
  it "requires a name" do
71
- run_simple "bundle exec rails generate interactor"
71
+ run_command_and_stop "bundle exec rails generate interactor"
72
72
 
73
73
  expect("app/interactors/place_order.rb").not_to be_an_existing_file
74
74
  expect(last_command_started.stdout).to include("rails generate interactor NAME")
75
75
  end
76
76
 
77
77
  it "handles namespacing" do
78
- run_simple "bundle exec rails generate interactor invoice/place_order"
78
+ run_command_and_stop "bundle exec rails generate interactor invoice/place_order"
79
79
 
80
80
  path = "app/interactors/invoice/place_order.rb"
81
81
  expect(path).to be_an_existing_file
@@ -105,7 +105,7 @@ EOF
105
105
 
106
106
  context "interactor:organizer" do
107
107
  it "generates an organizer" do
108
- run_simple <<-CMD
108
+ run_command_and_stop <<-CMD
109
109
  bundle exec rails generate interactor:organizer place_order
110
110
  CMD
111
111
 
@@ -133,7 +133,7 @@ EOF
133
133
  end
134
134
 
135
135
  it "generates an organizer with interactors" do
136
- run_simple <<-CMD
136
+ run_command_and_stop <<-CMD
137
137
  bundle exec rails generate interactor:organizer place_order \
138
138
  charge_card fulfill_order
139
139
  CMD
@@ -150,14 +150,14 @@ EOF
150
150
  end
151
151
 
152
152
  it "requires a name" do
153
- run_simple "bundle exec rails generate interactor:organizer"
153
+ run_command_and_stop "bundle exec rails generate interactor:organizer"
154
154
 
155
155
  expect("app/interactors/place_order.rb").not_to be_an_existing_file
156
156
  expect(last_command_started.stdout).to include("rails generate interactor:organizer NAME")
157
157
  end
158
158
 
159
159
  it "handles namespacing" do
160
- run_simple "bundle exec rails generate interactor:organizer invoice/place_order"
160
+ run_command_and_stop "bundle exec rails generate interactor:organizer invoice/place_order"
161
161
 
162
162
  path = "app/interactors/invoice/place_order.rb"
163
163
  expect(path).to be_an_existing_file
@@ -185,15 +185,15 @@ EOF
185
185
  end
186
186
 
187
187
  it "auto-loads interactors" do
188
- run_simple "bundle exec rails generate interactor place_order"
188
+ run_command_and_stop "bundle exec rails generate interactor place_order"
189
189
 
190
- run_simple "bundle exec rails runner PlaceOrder"
190
+ run_command_and_stop "bundle exec rails runner PlaceOrder"
191
191
  end
192
192
 
193
193
  it "auto-loads organizers" do
194
- run_simple "bundle exec rails generate interactor:organizer place_order"
194
+ run_command_and_stop "bundle exec rails generate interactor:organizer place_order"
195
195
 
196
- run_simple "bundle exec rails runner PlaceOrder"
196
+ run_command_and_stop "bundle exec rails runner PlaceOrder"
197
197
  end
198
198
  end
199
199
  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.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Collective Idea
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-23 00:00:00.000000000 Z
11
+ date: 2019-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: interactor
@@ -31,9 +31,6 @@ dependencies:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.2'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '5.3'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -41,9 +38,6 @@ dependencies:
41
38
  - - ">="
42
39
  - !ruby/object:Gem::Version
43
40
  version: '4.2'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '5.3'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: bundler
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -87,11 +81,12 @@ files:
87
81
  - LICENSE.txt
88
82
  - README.md
89
83
  - Rakefile
84
+ - gemfiles/rails-master.gemfile
90
85
  - gemfiles/rails42.gemfile
91
86
  - gemfiles/rails50.gemfile
92
87
  - gemfiles/rails51.gemfile
93
- - gemfiles/rails52+.gemfile
94
88
  - gemfiles/rails52.gemfile
89
+ - gemfiles/rails60.gemfile
95
90
  - interactor-rails.gemspec
96
91
  - lib/generators/interactor.rb
97
92
  - lib/generators/interactor/organizer_generator.rb
@@ -122,8 +117,7 @@ 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
120
+ rubygems_version: 3.0.4
127
121
  signing_key:
128
122
  specification_version: 4
129
123
  summary: Rails support for Interactor