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 +4 -4
- data/.travis.yml +49 -18
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/gemfiles/rails-master.gemfile +11 -0
- data/gemfiles/{rails52+.gemfile → rails60.gemfile} +1 -1
- data/interactor-rails.gemspec +2 -2
- data/spec/interactor/rails_spec.rb +13 -13
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bfbcd20cc2ae12dbe376b0304285ad9307aa70b727b6ed8b1308ac31f266dba
|
4
|
+
data.tar.gz: 6b66439ef9e2a07eae685e7dc5b06b07d8c61b14dac284e680183310f2c294ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0664029ba21916436a434ea9dd07989f108cdef1da5977e4ed850efedd3715a7ed81f38e8d01a2c7473fca3264c34469d34526b48aa8b685645401dd366934d
|
7
|
+
data.tar.gz: 784ec1e1e7060ee5ea89056fc216017a5299b19843e23c437c3da036f6e3bfc27d25cd11831529727465a0a732782fdac120db5966d3f08f968b39fc5085cc06
|
data/.travis.yml
CHANGED
@@ -1,30 +1,61 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
-
|
12
|
+
- Gemfile
|
10
13
|
- gemfiles/rails50.gemfile
|
11
14
|
- gemfiles/rails51.gemfile
|
12
15
|
- gemfiles/rails52.gemfile
|
13
|
-
- gemfiles/
|
14
|
-
|
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/
|
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
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/interactor-rails.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "interactor-rails"
|
5
|
-
spec.version = "2.2.
|
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"
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
188
|
+
run_command_and_stop "bundle exec rails generate interactor place_order"
|
189
189
|
|
190
|
-
|
190
|
+
run_command_and_stop "bundle exec rails runner PlaceOrder"
|
191
191
|
end
|
192
192
|
|
193
193
|
it "auto-loads organizers" do
|
194
|
-
|
194
|
+
run_command_and_stop "bundle exec rails generate interactor:organizer place_order"
|
195
195
|
|
196
|
-
|
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.
|
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:
|
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
|
-
|
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
|