runger_actions 0.19.0 → 0.19.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +1 -1
- data/.github/workflows/ruby.yml +4 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +83 -85
- data/lib/runger_actions/base.rb +7 -7
- data/lib/runger_actions/version.rb +1 -1
- data/lib/runger_actions.rb +1 -1
- data/runger_actions.gemspec +4 -2
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a2019449b4d70a8ea1fb493e9af4c6a41f87f2a4ac45422385650996f84f69b
|
4
|
+
data.tar.gz: 5bac9b37d9aed9a2b7c064e4ec085d818d9e469f8c1e35c75305ea1989bb60e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 781667bd4ae4b885ba31efe16866e832c7197fd9907f2aa010ccbb0a27e9097be664e80abf329468c6949169e84284364d8a6094c22e3630f018e250df2546f9
|
7
|
+
data.tar.gz: 4080c5da8d3e779becfe10ad930b38e5a55ed67e78d2621d2aad00eca932f8ad3345ec6325d90a3bbdd4b8dd66689688320a8592e3df11669291d8114f0b3355
|
data/.github/dependabot.yml
CHANGED
data/.github/workflows/ruby.yml
CHANGED
@@ -23,3 +23,7 @@ jobs:
|
|
23
23
|
run: git diff --exit-code && git diff-index --quiet --cached HEAD
|
24
24
|
- name: Ensure "## Unreleased" is in CHANGELOG.md
|
25
25
|
run: grep "^## Unreleased" CHANGELOG.md
|
26
|
+
- name: Upload Code Coverage
|
27
|
+
uses: codecov/codecov-action@v3
|
28
|
+
with:
|
29
|
+
directory: tmp/simple_cov
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.2
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
source 'https://rubygems.org'
|
4
|
-
ruby '
|
4
|
+
ruby File.read('.ruby-version').rstrip
|
5
5
|
|
6
6
|
# Specify your gem's dependencies in runger_actions.gemspec
|
7
7
|
gemspec
|
@@ -18,12 +18,12 @@ group :development, :test do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
group :development do
|
21
|
-
gem '
|
21
|
+
gem 'runger_release_assistant', require: false
|
22
22
|
end
|
23
23
|
|
24
24
|
group :test do
|
25
|
-
gem 'codecov', require: false
|
26
25
|
gem 'rspec', '~> 3.12'
|
26
|
+
gem 'simplecov-cobertura', require: false
|
27
27
|
gem 'simple_cov-formatter-terminal'
|
28
28
|
gem 'sqlite3'
|
29
29
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,95 +1,83 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/davidrunger/release_assistant.git
|
3
|
-
revision: bd6955962211ee0d89d699a19a2225c2f52ce500
|
4
|
-
specs:
|
5
|
-
release_assistant (0.3.3.alpha)
|
6
|
-
activesupport (>= 6, < 8)
|
7
|
-
colorize (~> 0.8)
|
8
|
-
memoist (~> 0.16)
|
9
|
-
slop (~> 4.8)
|
10
|
-
|
11
1
|
PATH
|
12
2
|
remote: .
|
13
3
|
specs:
|
14
|
-
runger_actions (0.19.
|
15
|
-
|
4
|
+
runger_actions (0.19.2)
|
5
|
+
memo_wise (>= 1.7, < 2)
|
16
6
|
rails (>= 6, < 8)
|
17
7
|
shaped (>= 0.9, < 0.11)
|
18
8
|
|
19
9
|
GEM
|
20
10
|
remote: https://rubygems.org/
|
21
11
|
specs:
|
22
|
-
actioncable (7.0.
|
23
|
-
actionpack (= 7.0.
|
24
|
-
activesupport (= 7.0.
|
12
|
+
actioncable (7.0.5)
|
13
|
+
actionpack (= 7.0.5)
|
14
|
+
activesupport (= 7.0.5)
|
25
15
|
nio4r (~> 2.0)
|
26
16
|
websocket-driver (>= 0.6.1)
|
27
|
-
actionmailbox (7.0.
|
28
|
-
actionpack (= 7.0.
|
29
|
-
activejob (= 7.0.
|
30
|
-
activerecord (= 7.0.
|
31
|
-
activestorage (= 7.0.
|
32
|
-
activesupport (= 7.0.
|
17
|
+
actionmailbox (7.0.5)
|
18
|
+
actionpack (= 7.0.5)
|
19
|
+
activejob (= 7.0.5)
|
20
|
+
activerecord (= 7.0.5)
|
21
|
+
activestorage (= 7.0.5)
|
22
|
+
activesupport (= 7.0.5)
|
33
23
|
mail (>= 2.7.1)
|
34
24
|
net-imap
|
35
25
|
net-pop
|
36
26
|
net-smtp
|
37
|
-
actionmailer (7.0.
|
38
|
-
actionpack (= 7.0.
|
39
|
-
actionview (= 7.0.
|
40
|
-
activejob (= 7.0.
|
41
|
-
activesupport (= 7.0.
|
27
|
+
actionmailer (7.0.5)
|
28
|
+
actionpack (= 7.0.5)
|
29
|
+
actionview (= 7.0.5)
|
30
|
+
activejob (= 7.0.5)
|
31
|
+
activesupport (= 7.0.5)
|
42
32
|
mail (~> 2.5, >= 2.5.4)
|
43
33
|
net-imap
|
44
34
|
net-pop
|
45
35
|
net-smtp
|
46
36
|
rails-dom-testing (~> 2.0)
|
47
|
-
actionpack (7.0.
|
48
|
-
actionview (= 7.0.
|
49
|
-
activesupport (= 7.0.
|
50
|
-
rack (~> 2.0, >= 2.2.
|
37
|
+
actionpack (7.0.5)
|
38
|
+
actionview (= 7.0.5)
|
39
|
+
activesupport (= 7.0.5)
|
40
|
+
rack (~> 2.0, >= 2.2.4)
|
51
41
|
rack-test (>= 0.6.3)
|
52
42
|
rails-dom-testing (~> 2.0)
|
53
43
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
54
|
-
actiontext (7.0.
|
55
|
-
actionpack (= 7.0.
|
56
|
-
activerecord (= 7.0.
|
57
|
-
activestorage (= 7.0.
|
58
|
-
activesupport (= 7.0.
|
44
|
+
actiontext (7.0.5)
|
45
|
+
actionpack (= 7.0.5)
|
46
|
+
activerecord (= 7.0.5)
|
47
|
+
activestorage (= 7.0.5)
|
48
|
+
activesupport (= 7.0.5)
|
59
49
|
globalid (>= 0.6.0)
|
60
50
|
nokogiri (>= 1.8.5)
|
61
|
-
actionview (7.0.
|
62
|
-
activesupport (= 7.0.
|
51
|
+
actionview (7.0.5)
|
52
|
+
activesupport (= 7.0.5)
|
63
53
|
builder (~> 3.1)
|
64
54
|
erubi (~> 1.4)
|
65
55
|
rails-dom-testing (~> 2.0)
|
66
56
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
67
|
-
activejob (7.0.
|
68
|
-
activesupport (= 7.0.
|
57
|
+
activejob (7.0.5)
|
58
|
+
activesupport (= 7.0.5)
|
69
59
|
globalid (>= 0.3.6)
|
70
|
-
activemodel (7.0.
|
71
|
-
activesupport (= 7.0.
|
72
|
-
activerecord (7.0.
|
73
|
-
activemodel (= 7.0.
|
74
|
-
activesupport (= 7.0.
|
75
|
-
activestorage (7.0.
|
76
|
-
actionpack (= 7.0.
|
77
|
-
activejob (= 7.0.
|
78
|
-
activerecord (= 7.0.
|
79
|
-
activesupport (= 7.0.
|
60
|
+
activemodel (7.0.5)
|
61
|
+
activesupport (= 7.0.5)
|
62
|
+
activerecord (7.0.5)
|
63
|
+
activemodel (= 7.0.5)
|
64
|
+
activesupport (= 7.0.5)
|
65
|
+
activestorage (7.0.5)
|
66
|
+
actionpack (= 7.0.5)
|
67
|
+
activejob (= 7.0.5)
|
68
|
+
activerecord (= 7.0.5)
|
69
|
+
activesupport (= 7.0.5)
|
80
70
|
marcel (~> 1.0)
|
81
71
|
mini_mime (>= 1.1.0)
|
82
|
-
activesupport (7.0.
|
72
|
+
activesupport (7.0.5)
|
83
73
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
84
74
|
i18n (>= 1.6, < 2)
|
85
75
|
minitest (>= 5.1)
|
86
76
|
tzinfo (~> 2.0)
|
87
|
-
amazing_print (1.
|
77
|
+
amazing_print (1.5.0)
|
88
78
|
ast (2.4.2)
|
89
79
|
builder (3.2.4)
|
90
80
|
byebug (11.1.3)
|
91
|
-
codecov (0.6.0)
|
92
|
-
simplecov (>= 0.15, < 0.22)
|
93
81
|
coderay (1.1.3)
|
94
82
|
colorize (0.8.1)
|
95
83
|
concurrent-ruby (1.2.2)
|
@@ -112,7 +100,7 @@ GEM
|
|
112
100
|
net-pop
|
113
101
|
net-smtp
|
114
102
|
marcel (1.0.2)
|
115
|
-
|
103
|
+
memo_wise (1.7.0)
|
116
104
|
method_source (1.0.0)
|
117
105
|
mini_mime (1.1.2)
|
118
106
|
mini_portile2 (2.8.2)
|
@@ -127,7 +115,8 @@ GEM
|
|
127
115
|
net-smtp (0.3.3)
|
128
116
|
net-protocol
|
129
117
|
nio4r (2.5.9)
|
130
|
-
nokogiri (1.15.
|
118
|
+
nokogiri (1.15.2)
|
119
|
+
mini_portile2 (~> 2.8.2)
|
131
120
|
racc (~> 1.4)
|
132
121
|
parallel (1.23.0)
|
133
122
|
parser (3.2.2.1)
|
@@ -142,28 +131,29 @@ GEM
|
|
142
131
|
rack (2.2.7)
|
143
132
|
rack-test (2.1.0)
|
144
133
|
rack (>= 1.3)
|
145
|
-
rails (7.0.
|
146
|
-
actioncable (= 7.0.
|
147
|
-
actionmailbox (= 7.0.
|
148
|
-
actionmailer (= 7.0.
|
149
|
-
actionpack (= 7.0.
|
150
|
-
actiontext (= 7.0.
|
151
|
-
actionview (= 7.0.
|
152
|
-
activejob (= 7.0.
|
153
|
-
activemodel (= 7.0.
|
154
|
-
activerecord (= 7.0.
|
155
|
-
activestorage (= 7.0.
|
156
|
-
activesupport (= 7.0.
|
134
|
+
rails (7.0.5)
|
135
|
+
actioncable (= 7.0.5)
|
136
|
+
actionmailbox (= 7.0.5)
|
137
|
+
actionmailer (= 7.0.5)
|
138
|
+
actionpack (= 7.0.5)
|
139
|
+
actiontext (= 7.0.5)
|
140
|
+
actionview (= 7.0.5)
|
141
|
+
activejob (= 7.0.5)
|
142
|
+
activemodel (= 7.0.5)
|
143
|
+
activerecord (= 7.0.5)
|
144
|
+
activestorage (= 7.0.5)
|
145
|
+
activesupport (= 7.0.5)
|
157
146
|
bundler (>= 1.15.0)
|
158
|
-
railties (= 7.0.
|
147
|
+
railties (= 7.0.5)
|
159
148
|
rails-dom-testing (2.0.3)
|
160
149
|
activesupport (>= 4.2.0)
|
161
150
|
nokogiri (>= 1.6)
|
162
|
-
rails-html-sanitizer (1.
|
163
|
-
loofah (~> 2.
|
164
|
-
|
165
|
-
|
166
|
-
|
151
|
+
rails-html-sanitizer (1.6.0)
|
152
|
+
loofah (~> 2.21)
|
153
|
+
nokogiri (~> 1.14)
|
154
|
+
railties (7.0.5)
|
155
|
+
actionpack (= 7.0.5)
|
156
|
+
activesupport (= 7.0.5)
|
167
157
|
method_source
|
168
158
|
rake (>= 12.2)
|
169
159
|
thor (~> 1.0)
|
@@ -179,10 +169,10 @@ GEM
|
|
179
169
|
rspec-mocks (~> 3.12.0)
|
180
170
|
rspec-core (3.12.2)
|
181
171
|
rspec-support (~> 3.12.0)
|
182
|
-
rspec-expectations (3.12.
|
172
|
+
rspec-expectations (3.12.3)
|
183
173
|
diff-lcs (>= 1.2.0, < 2.0)
|
184
174
|
rspec-support (~> 3.12.0)
|
185
|
-
rspec-mocks (3.12.
|
175
|
+
rspec-mocks (3.12.5)
|
186
176
|
diff-lcs (>= 1.2.0, < 2.0)
|
187
177
|
rspec-support (~> 3.12.0)
|
188
178
|
rspec-support (3.12.0)
|
@@ -200,9 +190,9 @@ GEM
|
|
200
190
|
parser (>= 3.2.1.0)
|
201
191
|
rubocop-capybara (2.18.0)
|
202
192
|
rubocop (~> 1.41)
|
203
|
-
rubocop-factory_bot (2.
|
193
|
+
rubocop-factory_bot (2.23.1)
|
204
194
|
rubocop (~> 1.33)
|
205
|
-
rubocop-performance (1.
|
195
|
+
rubocop-performance (1.18.0)
|
206
196
|
rubocop (>= 1.7.0, < 2.0)
|
207
197
|
rubocop-ast (>= 0.4.0)
|
208
198
|
rubocop-rake (0.6.0)
|
@@ -212,21 +202,29 @@ GEM
|
|
212
202
|
rubocop-capybara (~> 2.17)
|
213
203
|
rubocop-factory_bot (~> 2.22)
|
214
204
|
ruby-progressbar (1.13.0)
|
215
|
-
|
205
|
+
runger_release_assistant (0.4.2)
|
206
|
+
activesupport (>= 6, < 8)
|
207
|
+
colorize (~> 0.8)
|
208
|
+
memo_wise (>= 1.7, < 2)
|
209
|
+
slop (~> 4.8)
|
210
|
+
runger_style (0.3.0)
|
216
211
|
rubocop (>= 1.38.0, < 2)
|
217
212
|
shaped (0.10.0)
|
218
213
|
activemodel (>= 6, < 8)
|
219
214
|
activesupport (>= 6, < 8)
|
220
|
-
simple_cov-formatter-terminal (0.2.
|
215
|
+
simple_cov-formatter-terminal (0.2.4)
|
221
216
|
activesupport (>= 7.0.4, < 8)
|
222
|
-
|
217
|
+
memo_wise (>= 1.7.0, < 2)
|
223
218
|
rouge (>= 4.0.0, < 5)
|
224
219
|
rspec-core (>= 3.11.0, < 4)
|
225
220
|
simplecov (>= 0.21.2, < 1)
|
226
|
-
simplecov (0.
|
221
|
+
simplecov (0.22.0)
|
227
222
|
docile (~> 1.1)
|
228
223
|
simplecov-html (~> 0.11)
|
229
224
|
simplecov_json_formatter (~> 0.1)
|
225
|
+
simplecov-cobertura (2.1.0)
|
226
|
+
rexml
|
227
|
+
simplecov (~> 0.19)
|
230
228
|
simplecov-html (0.12.3)
|
231
229
|
simplecov_json_formatter (0.1.4)
|
232
230
|
slop (4.10.1)
|
@@ -247,22 +245,22 @@ PLATFORMS
|
|
247
245
|
|
248
246
|
DEPENDENCIES
|
249
247
|
amazing_print
|
250
|
-
codecov
|
251
248
|
pry-byebug
|
252
249
|
rake (~> 13.0)
|
253
|
-
release_assistant!
|
254
250
|
rspec (~> 3.12)
|
255
251
|
rubocop
|
256
252
|
rubocop-performance
|
257
253
|
rubocop-rake
|
258
254
|
rubocop-rspec
|
259
255
|
runger_actions!
|
256
|
+
runger_release_assistant
|
260
257
|
runger_style
|
261
258
|
simple_cov-formatter-terminal
|
259
|
+
simplecov-cobertura
|
262
260
|
sqlite3
|
263
261
|
|
264
262
|
RUBY VERSION
|
265
|
-
ruby 3.2.
|
263
|
+
ruby 3.2.2p53
|
266
264
|
|
267
265
|
BUNDLED WITH
|
268
|
-
2.
|
266
|
+
2.4.13
|
data/lib/runger_actions/base.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class RungerActions::Base
|
4
|
-
|
4
|
+
prepend MemoWise
|
5
5
|
|
6
6
|
class << self
|
7
|
-
|
7
|
+
prepend MemoWise
|
8
8
|
|
9
9
|
def run!(params)
|
10
10
|
new!(params).run!
|
@@ -94,22 +94,22 @@ class RungerActions::Base
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
-
|
97
|
+
memo_wise \
|
98
98
|
def result_klass
|
99
99
|
const_set(:Result, Class.new(RungerActions::Result))
|
100
100
|
end
|
101
101
|
|
102
|
-
|
102
|
+
memo_wise \
|
103
103
|
def required_params
|
104
104
|
{}
|
105
105
|
end
|
106
106
|
|
107
|
-
|
107
|
+
memo_wise \
|
108
108
|
def promised_values
|
109
109
|
{}
|
110
110
|
end
|
111
111
|
|
112
|
-
|
112
|
+
memo_wise \
|
113
113
|
def validators
|
114
114
|
{}
|
115
115
|
end
|
@@ -160,7 +160,7 @@ class RungerActions::Base
|
|
160
160
|
!!@raise_on_failure
|
161
161
|
end
|
162
162
|
|
163
|
-
|
163
|
+
memo_wise \
|
164
164
|
def result
|
165
165
|
self.class.result_klass.new(action: self)
|
166
166
|
end
|
data/lib/runger_actions.rb
CHANGED
data/runger_actions.gemspec
CHANGED
@@ -12,7 +12,9 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = 'Organize (and validate) the business logic of your Rails application.'
|
13
13
|
spec.homepage = 'https://github.com/davidrunger/runger_actions'
|
14
14
|
spec.license = 'MIT'
|
15
|
-
|
15
|
+
|
16
|
+
ruby_version = File.read('.ruby-version').rstrip
|
17
|
+
spec.required_ruby_version = Gem::Requirement.new(">= #{ruby_version}")
|
16
18
|
|
17
19
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
18
20
|
spec.metadata['homepage_uri'] = spec.homepage
|
@@ -28,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
28
30
|
end
|
29
31
|
spec.require_paths = ['lib']
|
30
32
|
|
31
|
-
spec.add_runtime_dependency('
|
33
|
+
spec.add_runtime_dependency('memo_wise', '>= 1.7', '< 2')
|
32
34
|
spec.add_runtime_dependency('rails', '>= 6', '< 8')
|
33
35
|
spec.add_runtime_dependency('shaped', '>= 0.9', '< 0.11')
|
34
36
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runger_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Runger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: memo_wise
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '2'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '2'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rails
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,14 +123,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
123
|
requirements:
|
118
124
|
- - ">="
|
119
125
|
- !ruby/object:Gem::Version
|
120
|
-
version: 3.2.
|
126
|
+
version: 3.2.2
|
121
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
128
|
requirements:
|
123
129
|
- - ">="
|
124
130
|
- !ruby/object:Gem::Version
|
125
131
|
version: '0'
|
126
132
|
requirements: []
|
127
|
-
rubygems_version: 3.4.
|
133
|
+
rubygems_version: 3.4.13
|
128
134
|
signing_key:
|
129
135
|
specification_version: 4
|
130
136
|
summary: Organize (and validate) the business logic of your Rails application.
|