g2_command 2.2.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +14 -68
- data/.rubocop.yml +2 -1
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/Appraisals +10 -6
- data/Gemfile.lock +118 -111
- data/g2_command.gemspec +1 -1
- data/gemfiles/rails_5.1.gemfile +1 -1
- data/gemfiles/rails_5.1.gemfile.lock +24 -24
- data/gemfiles/rails_5.2.gemfile +1 -1
- data/gemfiles/rails_5.2.gemfile.lock +64 -66
- data/gemfiles/rails_6.0.gemfile +1 -1
- data/gemfiles/rails_6.0.gemfile.lock +78 -80
- data/gemfiles/rails_6.1.gemfile +15 -0
- data/gemfiles/rails_6.1.gemfile.lock +225 -0
- data/lib/command/version.rb +1 -1
- data/lib/command.rb +3 -1
- metadata +6 -4
@@ -0,0 +1,225 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
g2_command (3.0.0)
|
5
|
+
activemodel (>= 5.0, < 7)
|
6
|
+
activesupport (>= 5.0, < 7)
|
7
|
+
dry-initializer (~> 3.0)
|
8
|
+
dry-monads (~> 1.3)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
actioncable (6.1.4.1)
|
14
|
+
actionpack (= 6.1.4.1)
|
15
|
+
activesupport (= 6.1.4.1)
|
16
|
+
nio4r (~> 2.0)
|
17
|
+
websocket-driver (>= 0.6.1)
|
18
|
+
actionmailbox (6.1.4.1)
|
19
|
+
actionpack (= 6.1.4.1)
|
20
|
+
activejob (= 6.1.4.1)
|
21
|
+
activerecord (= 6.1.4.1)
|
22
|
+
activestorage (= 6.1.4.1)
|
23
|
+
activesupport (= 6.1.4.1)
|
24
|
+
mail (>= 2.7.1)
|
25
|
+
actionmailer (6.1.4.1)
|
26
|
+
actionpack (= 6.1.4.1)
|
27
|
+
actionview (= 6.1.4.1)
|
28
|
+
activejob (= 6.1.4.1)
|
29
|
+
activesupport (= 6.1.4.1)
|
30
|
+
mail (~> 2.5, >= 2.5.4)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
actionpack (6.1.4.1)
|
33
|
+
actionview (= 6.1.4.1)
|
34
|
+
activesupport (= 6.1.4.1)
|
35
|
+
rack (~> 2.0, >= 2.0.9)
|
36
|
+
rack-test (>= 0.6.3)
|
37
|
+
rails-dom-testing (~> 2.0)
|
38
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
39
|
+
actiontext (6.1.4.1)
|
40
|
+
actionpack (= 6.1.4.1)
|
41
|
+
activerecord (= 6.1.4.1)
|
42
|
+
activestorage (= 6.1.4.1)
|
43
|
+
activesupport (= 6.1.4.1)
|
44
|
+
nokogiri (>= 1.8.5)
|
45
|
+
actionview (6.1.4.1)
|
46
|
+
activesupport (= 6.1.4.1)
|
47
|
+
builder (~> 3.1)
|
48
|
+
erubi (~> 1.4)
|
49
|
+
rails-dom-testing (~> 2.0)
|
50
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
51
|
+
activejob (6.1.4.1)
|
52
|
+
activesupport (= 6.1.4.1)
|
53
|
+
globalid (>= 0.3.6)
|
54
|
+
activemodel (6.1.4.1)
|
55
|
+
activesupport (= 6.1.4.1)
|
56
|
+
activerecord (6.1.4.1)
|
57
|
+
activemodel (= 6.1.4.1)
|
58
|
+
activesupport (= 6.1.4.1)
|
59
|
+
activestorage (6.1.4.1)
|
60
|
+
actionpack (= 6.1.4.1)
|
61
|
+
activejob (= 6.1.4.1)
|
62
|
+
activerecord (= 6.1.4.1)
|
63
|
+
activesupport (= 6.1.4.1)
|
64
|
+
marcel (~> 1.0.0)
|
65
|
+
mini_mime (>= 1.1.0)
|
66
|
+
activesupport (6.1.4.1)
|
67
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
68
|
+
i18n (>= 1.6, < 2)
|
69
|
+
minitest (>= 5.1)
|
70
|
+
tzinfo (~> 2.0)
|
71
|
+
zeitwerk (~> 2.3)
|
72
|
+
appraisal (2.3.0)
|
73
|
+
bundler
|
74
|
+
rake
|
75
|
+
thor (>= 0.14.0)
|
76
|
+
ast (2.4.2)
|
77
|
+
builder (3.2.4)
|
78
|
+
coderay (1.1.3)
|
79
|
+
concurrent-ruby (1.1.9)
|
80
|
+
crass (1.0.6)
|
81
|
+
diff-lcs (1.4.4)
|
82
|
+
docile (1.3.5)
|
83
|
+
dry-core (0.7.1)
|
84
|
+
concurrent-ruby (~> 1.0)
|
85
|
+
dry-initializer (3.0.4)
|
86
|
+
dry-monads (1.4.0)
|
87
|
+
concurrent-ruby (~> 1.0)
|
88
|
+
dry-core (~> 0.7)
|
89
|
+
erubi (1.10.0)
|
90
|
+
fivemat (1.3.7)
|
91
|
+
globalid (0.5.2)
|
92
|
+
activesupport (>= 5.0)
|
93
|
+
i18n (1.8.10)
|
94
|
+
concurrent-ruby (~> 1.0)
|
95
|
+
json (2.5.1)
|
96
|
+
loofah (2.12.0)
|
97
|
+
crass (~> 1.0.2)
|
98
|
+
nokogiri (>= 1.5.9)
|
99
|
+
mail (2.7.1)
|
100
|
+
mini_mime (>= 0.1.1)
|
101
|
+
marcel (1.0.2)
|
102
|
+
method_source (1.0.0)
|
103
|
+
mini_mime (1.1.1)
|
104
|
+
mini_portile2 (2.6.1)
|
105
|
+
minitest (5.14.4)
|
106
|
+
nio4r (2.5.8)
|
107
|
+
nokogiri (1.12.4)
|
108
|
+
mini_portile2 (~> 2.6.1)
|
109
|
+
racc (~> 1.4)
|
110
|
+
parallel (1.20.1)
|
111
|
+
parser (3.0.0.0)
|
112
|
+
ast (~> 2.4.1)
|
113
|
+
pry (0.13.1)
|
114
|
+
coderay (~> 1.1)
|
115
|
+
method_source (~> 1.0)
|
116
|
+
racc (1.5.2)
|
117
|
+
rack (2.2.3)
|
118
|
+
rack-test (1.1.0)
|
119
|
+
rack (>= 1.0, < 3)
|
120
|
+
rails (6.1.4.1)
|
121
|
+
actioncable (= 6.1.4.1)
|
122
|
+
actionmailbox (= 6.1.4.1)
|
123
|
+
actionmailer (= 6.1.4.1)
|
124
|
+
actionpack (= 6.1.4.1)
|
125
|
+
actiontext (= 6.1.4.1)
|
126
|
+
actionview (= 6.1.4.1)
|
127
|
+
activejob (= 6.1.4.1)
|
128
|
+
activemodel (= 6.1.4.1)
|
129
|
+
activerecord (= 6.1.4.1)
|
130
|
+
activestorage (= 6.1.4.1)
|
131
|
+
activesupport (= 6.1.4.1)
|
132
|
+
bundler (>= 1.15.0)
|
133
|
+
railties (= 6.1.4.1)
|
134
|
+
sprockets-rails (>= 2.0.0)
|
135
|
+
rails-dom-testing (2.0.3)
|
136
|
+
activesupport (>= 4.2.0)
|
137
|
+
nokogiri (>= 1.6)
|
138
|
+
rails-html-sanitizer (1.4.2)
|
139
|
+
loofah (~> 2.3)
|
140
|
+
railties (6.1.4.1)
|
141
|
+
actionpack (= 6.1.4.1)
|
142
|
+
activesupport (= 6.1.4.1)
|
143
|
+
method_source
|
144
|
+
rake (>= 0.13)
|
145
|
+
thor (~> 1.0)
|
146
|
+
rainbow (3.0.0)
|
147
|
+
rake (12.3.3)
|
148
|
+
regexp_parser (2.0.3)
|
149
|
+
rexml (3.2.5)
|
150
|
+
rspec (3.10.0)
|
151
|
+
rspec-core (~> 3.10.0)
|
152
|
+
rspec-expectations (~> 3.10.0)
|
153
|
+
rspec-mocks (~> 3.10.0)
|
154
|
+
rspec-core (3.10.1)
|
155
|
+
rspec-support (~> 3.10.0)
|
156
|
+
rspec-expectations (3.10.1)
|
157
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
158
|
+
rspec-support (~> 3.10.0)
|
159
|
+
rspec-mocks (3.10.2)
|
160
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
161
|
+
rspec-support (~> 3.10.0)
|
162
|
+
rspec-support (3.10.2)
|
163
|
+
rspec_junit_formatter (0.4.1)
|
164
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
165
|
+
rubocop (1.10.0)
|
166
|
+
parallel (~> 1.10)
|
167
|
+
parser (>= 3.0.0.0)
|
168
|
+
rainbow (>= 2.2.2, < 4.0)
|
169
|
+
regexp_parser (>= 1.8, < 3.0)
|
170
|
+
rexml
|
171
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
172
|
+
ruby-progressbar (~> 1.7)
|
173
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
174
|
+
rubocop-ast (1.4.1)
|
175
|
+
parser (>= 2.7.1.5)
|
176
|
+
rubocop-g2 (1.3.0)
|
177
|
+
rubocop (>= 0.82)
|
178
|
+
rubocop-rails (>= 2.5)
|
179
|
+
rubocop-rspec (>= 1.39)
|
180
|
+
rubocop-rails (2.9.1)
|
181
|
+
activesupport (>= 4.2.0)
|
182
|
+
rack (>= 1.1)
|
183
|
+
rubocop (>= 0.90.0, < 2.0)
|
184
|
+
rubocop-rspec (2.1.0)
|
185
|
+
rubocop (~> 1.0)
|
186
|
+
rubocop-ast (>= 1.1.0)
|
187
|
+
ruby-progressbar (1.11.0)
|
188
|
+
simplecov (0.16.1)
|
189
|
+
docile (~> 1.1)
|
190
|
+
json (>= 1.8, < 3)
|
191
|
+
simplecov-html (~> 0.10.0)
|
192
|
+
simplecov-html (0.10.2)
|
193
|
+
sprockets (4.0.2)
|
194
|
+
concurrent-ruby (~> 1.0)
|
195
|
+
rack (> 1, < 3)
|
196
|
+
sprockets-rails (3.2.2)
|
197
|
+
actionpack (>= 4.0)
|
198
|
+
activesupport (>= 4.0)
|
199
|
+
sprockets (>= 3.0.0)
|
200
|
+
thor (1.1.0)
|
201
|
+
tzinfo (2.0.4)
|
202
|
+
concurrent-ruby (~> 1.0)
|
203
|
+
unicode-display_width (2.0.0)
|
204
|
+
websocket-driver (0.7.5)
|
205
|
+
websocket-extensions (>= 0.1.0)
|
206
|
+
websocket-extensions (0.1.5)
|
207
|
+
zeitwerk (2.4.2)
|
208
|
+
|
209
|
+
PLATFORMS
|
210
|
+
ruby
|
211
|
+
|
212
|
+
DEPENDENCIES
|
213
|
+
appraisal
|
214
|
+
fivemat
|
215
|
+
g2_command!
|
216
|
+
pry
|
217
|
+
rails (~> 6.1.0)
|
218
|
+
rake (~> 12.0)
|
219
|
+
rspec (~> 3.0)
|
220
|
+
rspec_junit_formatter
|
221
|
+
rubocop-g2
|
222
|
+
simplecov (= 0.16.1)
|
223
|
+
|
224
|
+
BUNDLED WITH
|
225
|
+
2.2.3
|
data/lib/command/version.rb
CHANGED
data/lib/command.rb
CHANGED
@@ -18,6 +18,8 @@ module Command
|
|
18
18
|
include Dry::Monads[:result]
|
19
19
|
include ActiveModel::Validations
|
20
20
|
|
21
|
+
private_class_method :new
|
22
|
+
|
21
23
|
def initialize(inputs = {})
|
22
24
|
super(**Command::InputMiddleware.call(inputs))
|
23
25
|
end
|
@@ -53,7 +55,7 @@ module Command
|
|
53
55
|
|
54
56
|
class_methods do
|
55
57
|
def run(inputs = {})
|
56
|
-
new(**inputs).run
|
58
|
+
new(**Command::InputMiddleware.call(inputs)).run
|
57
59
|
end
|
58
60
|
|
59
61
|
def run!(inputs = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g2_command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hamed Asghari
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -110,6 +110,8 @@ files:
|
|
110
110
|
- gemfiles/rails_5.2.gemfile.lock
|
111
111
|
- gemfiles/rails_6.0.gemfile
|
112
112
|
- gemfiles/rails_6.0.gemfile.lock
|
113
|
+
- gemfiles/rails_6.1.gemfile
|
114
|
+
- gemfiles/rails_6.1.gemfile.lock
|
113
115
|
- lib/command.rb
|
114
116
|
- lib/command/failure.rb
|
115
117
|
- lib/command/input_middleware.rb
|
@@ -133,14 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
135
|
requirements:
|
134
136
|
- - ">="
|
135
137
|
- !ruby/object:Gem::Version
|
136
|
-
version: 2.
|
138
|
+
version: 2.4.0
|
137
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
140
|
requirements:
|
139
141
|
- - ">="
|
140
142
|
- !ruby/object:Gem::Version
|
141
143
|
version: '0'
|
142
144
|
requirements: []
|
143
|
-
rubygems_version: 3.
|
145
|
+
rubygems_version: 3.2.3
|
144
146
|
signing_key:
|
145
147
|
specification_version: 4
|
146
148
|
summary: An implementation of the command pattern using dry-rb
|