erb-processor 1.0.5 → 1.0.12
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/.rubocop.yml +8 -0
- data/Gemfile +11 -8
- data/Gemfile.lock +87 -75
- data/Rakefile +14 -4
- data/erb-processor.gemspec +2 -2
- data/lib/erb/processor/version.rb +1 -1
- data/lib/tasks/version.rake +55 -0
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c5c33eff1ff0c2cd8eed0549025cb3b3e394838a815577cfe1f3f2cee3dd9a5
|
|
4
|
+
data.tar.gz: c12526b372a09b9089ba86a847b3bb2523ac1f02ff17c5d835862946844a98fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e204088c7de881dbb4146bb09fb2b606667bb750031d742f48f8c8c80ce98963f3293ba6c5e09d2ce124a6778d35273ec08d36b8e35452ca9491eb5a1e2f2ce
|
|
7
|
+
data.tar.gz: 54b1c0cc561eeb50a83b2484c5ea4fdaea35b849cc4040a691a1c8893af99694efe08b4a8969686d5023f721bafcef9e31913be62f6e6765d6f8aac8523297ba
|
data/.rubocop.yml
CHANGED
|
@@ -2,12 +2,20 @@ AllCops:
|
|
|
2
2
|
NewCops: enable
|
|
3
3
|
|
|
4
4
|
plugins:
|
|
5
|
+
- rubocop-capybara
|
|
5
6
|
- rubocop-performance
|
|
6
7
|
- rubocop-rails
|
|
7
8
|
- rubocop-rake
|
|
8
9
|
|
|
10
|
+
require:
|
|
11
|
+
- rubocop-rspec
|
|
12
|
+
- rubocop-rspec_rails
|
|
13
|
+
|
|
9
14
|
Layout/LineLength:
|
|
10
15
|
Max: 120
|
|
11
16
|
|
|
12
17
|
Style/StringLiterals:
|
|
13
18
|
EnforcedStyle: double_quotes
|
|
19
|
+
|
|
20
|
+
Capybara:
|
|
21
|
+
Enabled: false
|
data/Gemfile
CHANGED
|
@@ -5,16 +5,19 @@ source "https://rubygems.org"
|
|
|
5
5
|
# Specify your gem's dependencies in erb-processor.gemspec
|
|
6
6
|
gemspec
|
|
7
7
|
|
|
8
|
-
gem "
|
|
8
|
+
gem "gem-release"
|
|
9
|
+
gem "rake"
|
|
9
10
|
|
|
10
|
-
gem "rspec"
|
|
11
|
+
gem "rspec"
|
|
11
12
|
|
|
12
13
|
gem "panolint"
|
|
13
|
-
gem "rubocop"
|
|
14
|
+
gem "rubocop"
|
|
14
15
|
gem "rubocop-performance", require: false
|
|
16
|
+
gem "rubocop-rspec", require: false
|
|
15
17
|
|
|
16
18
|
gem "aruba" # , :git => 'https://github.com/cucumber/aruba.git' # 'https://github
|
|
17
19
|
gem "bundler"
|
|
20
|
+
gem "bundler-audit"
|
|
18
21
|
gem "cucumber"
|
|
19
22
|
gem "guard"
|
|
20
23
|
gem "guard-bundler"
|
|
@@ -22,13 +25,13 @@ gem "guard-cucumber"
|
|
|
22
25
|
gem "guard-rspec"
|
|
23
26
|
gem "guard-rubocop"
|
|
24
27
|
gem "guard-yard"
|
|
25
|
-
gem "juwelier"
|
|
28
|
+
gem "juwelier"
|
|
26
29
|
gem "rack"
|
|
27
|
-
gem "rdoc"
|
|
30
|
+
gem "rdoc"
|
|
28
31
|
gem "rspec-core"
|
|
29
32
|
gem "rspec-expectations"
|
|
30
33
|
gem "rspec-given"
|
|
31
|
-
gem "shoulda"
|
|
32
|
-
gem "simplecov"
|
|
34
|
+
gem "shoulda"
|
|
35
|
+
gem "simplecov"
|
|
33
36
|
gem "syslog" unless Gem.win_platform?
|
|
34
|
-
gem "wdm"
|
|
37
|
+
gem "wdm" if Gem.win_platform?
|
data/Gemfile.lock
CHANGED
|
@@ -1,75 +1,77 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
erb-processor (1.0.
|
|
5
|
-
logging
|
|
4
|
+
erb-processor (1.0.12)
|
|
5
|
+
logging
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activesupport (8.
|
|
10
|
+
activesupport (8.1.1)
|
|
11
11
|
base64
|
|
12
|
-
benchmark (>= 0.3)
|
|
13
12
|
bigdecimal
|
|
14
13
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
15
14
|
connection_pool (>= 2.2.5)
|
|
16
15
|
drb
|
|
17
16
|
i18n (>= 1.6, < 2)
|
|
17
|
+
json
|
|
18
18
|
logger (>= 1.4.2)
|
|
19
19
|
minitest (>= 5.1)
|
|
20
20
|
securerandom (>= 0.3)
|
|
21
21
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
22
22
|
uri (>= 0.13.1)
|
|
23
|
-
addressable (2.8.
|
|
24
|
-
public_suffix (>= 2.0.2, <
|
|
25
|
-
aruba (2.3.
|
|
26
|
-
bundler (>= 1.17
|
|
23
|
+
addressable (2.8.8)
|
|
24
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
25
|
+
aruba (2.3.3)
|
|
26
|
+
bundler (>= 1.17)
|
|
27
27
|
contracts (>= 0.16.0, < 0.18.0)
|
|
28
28
|
cucumber (>= 8.0, < 11.0)
|
|
29
|
-
rspec-expectations (
|
|
29
|
+
rspec-expectations (>= 3.4, < 5.0)
|
|
30
30
|
thor (~> 1.0)
|
|
31
31
|
ast (2.4.3)
|
|
32
32
|
base64 (0.3.0)
|
|
33
|
-
|
|
34
|
-
bigdecimal (3.2.2)
|
|
33
|
+
bigdecimal (3.3.1)
|
|
35
34
|
brakeman (5.4.1)
|
|
36
35
|
builder (3.3.0)
|
|
36
|
+
bundler-audit (0.9.3)
|
|
37
|
+
bundler (>= 1.2.0)
|
|
38
|
+
thor (~> 1.0)
|
|
37
39
|
coderay (1.1.3)
|
|
38
|
-
concurrent-ruby (1.3.
|
|
39
|
-
connection_pool (
|
|
40
|
-
contracts (0.17.
|
|
41
|
-
cucumber (10.
|
|
40
|
+
concurrent-ruby (1.3.6)
|
|
41
|
+
connection_pool (3.0.2)
|
|
42
|
+
contracts (0.17.3)
|
|
43
|
+
cucumber (10.2.0)
|
|
42
44
|
base64 (~> 0.2)
|
|
43
45
|
builder (~> 3.2)
|
|
44
|
-
cucumber-ci-environment (> 9, <
|
|
46
|
+
cucumber-ci-environment (> 9, < 12)
|
|
45
47
|
cucumber-core (> 15, < 17)
|
|
46
|
-
cucumber-cucumber-expressions (> 17, <
|
|
47
|
-
cucumber-html-formatter (>
|
|
48
|
+
cucumber-cucumber-expressions (> 17, < 20)
|
|
49
|
+
cucumber-html-formatter (> 21, < 23)
|
|
48
50
|
diff-lcs (~> 1.5)
|
|
49
51
|
logger (~> 1.6)
|
|
50
52
|
mini_mime (~> 1.1)
|
|
51
53
|
multi_test (~> 1.1)
|
|
52
54
|
sys-uname (~> 1.3)
|
|
53
|
-
cucumber-ci-environment (
|
|
54
|
-
cucumber-core (
|
|
55
|
-
cucumber-gherkin (>
|
|
56
|
-
cucumber-messages (>
|
|
57
|
-
cucumber-tag-expressions (>
|
|
55
|
+
cucumber-ci-environment (11.0.0)
|
|
56
|
+
cucumber-core (16.0.0)
|
|
57
|
+
cucumber-gherkin (> 33, < 40)
|
|
58
|
+
cucumber-messages (> 28, < 33)
|
|
59
|
+
cucumber-tag-expressions (> 6, < 9)
|
|
58
60
|
cucumber-cucumber-expressions (18.0.1)
|
|
59
61
|
bigdecimal
|
|
60
|
-
cucumber-gherkin (
|
|
61
|
-
cucumber-messages (
|
|
62
|
-
cucumber-html-formatter (
|
|
63
|
-
cucumber-messages (>
|
|
64
|
-
cucumber-messages (
|
|
65
|
-
cucumber-tag-expressions (
|
|
66
|
-
date (3.
|
|
62
|
+
cucumber-gherkin (37.0.1)
|
|
63
|
+
cucumber-messages (>= 31, < 32)
|
|
64
|
+
cucumber-html-formatter (22.3.0)
|
|
65
|
+
cucumber-messages (> 23, < 33)
|
|
66
|
+
cucumber-messages (31.1.0)
|
|
67
|
+
cucumber-tag-expressions (8.1.0)
|
|
68
|
+
date (3.5.1)
|
|
67
69
|
descendants_tracker (0.0.4)
|
|
68
70
|
thread_safe (~> 0.3, >= 0.3.1)
|
|
69
71
|
diff-lcs (1.6.2)
|
|
70
72
|
docile (1.4.1)
|
|
71
73
|
drb (2.2.3)
|
|
72
|
-
erb (
|
|
74
|
+
erb (6.0.1)
|
|
73
75
|
faraday (1.10.4)
|
|
74
76
|
faraday-em_http (~> 1.0)
|
|
75
77
|
faraday-em_synchrony (~> 1.0)
|
|
@@ -95,8 +97,10 @@ GEM
|
|
|
95
97
|
faraday-retry (1.0.3)
|
|
96
98
|
ffi (1.17.2)
|
|
97
99
|
ffi (1.17.2-x86_64-linux-gnu)
|
|
98
|
-
formatador (1.
|
|
99
|
-
|
|
100
|
+
formatador (1.2.3)
|
|
101
|
+
reline
|
|
102
|
+
gem-release (2.2.4)
|
|
103
|
+
git (4.0.6)
|
|
100
104
|
activesupport (>= 5.0)
|
|
101
105
|
addressable (~> 2.8)
|
|
102
106
|
process_executer (~> 4.0)
|
|
@@ -120,8 +124,8 @@ GEM
|
|
|
120
124
|
pry (>= 0.13.0)
|
|
121
125
|
shellany (~> 0.0)
|
|
122
126
|
thor (>= 0.18.1)
|
|
123
|
-
guard-bundler (
|
|
124
|
-
bundler (>=
|
|
127
|
+
guard-bundler (2.2.0)
|
|
128
|
+
bundler (>= 1.3.0)
|
|
125
129
|
guard (~> 2.2)
|
|
126
130
|
guard-compat (~> 1.1)
|
|
127
131
|
guard-compat (1.2.1)
|
|
@@ -141,10 +145,10 @@ GEM
|
|
|
141
145
|
hashie (3.6.0)
|
|
142
146
|
highline (3.1.2)
|
|
143
147
|
reline
|
|
144
|
-
i18n (1.14.
|
|
148
|
+
i18n (1.14.8)
|
|
145
149
|
concurrent-ruby (~> 1.0)
|
|
146
|
-
io-console (0.8.
|
|
147
|
-
json (2.
|
|
150
|
+
io-console (0.8.2)
|
|
151
|
+
json (2.18.0)
|
|
148
152
|
juwelier (2.4.9)
|
|
149
153
|
builder
|
|
150
154
|
bundler
|
|
@@ -171,21 +175,23 @@ GEM
|
|
|
171
175
|
logging (2.4.0)
|
|
172
176
|
little-plugger (~> 1.1)
|
|
173
177
|
multi_json (~> 1.14)
|
|
174
|
-
lumberjack (1.
|
|
178
|
+
lumberjack (1.4.2)
|
|
179
|
+
memoist3 (1.0.0)
|
|
175
180
|
method_source (1.1.0)
|
|
176
181
|
mini_mime (1.1.5)
|
|
177
182
|
mini_portile2 (2.8.9)
|
|
178
|
-
minitest (
|
|
179
|
-
|
|
183
|
+
minitest (6.0.0)
|
|
184
|
+
prism (~> 1.5)
|
|
185
|
+
multi_json (1.18.0)
|
|
180
186
|
multi_test (1.1.0)
|
|
181
187
|
multi_xml (0.7.2)
|
|
182
188
|
bigdecimal (~> 3.1)
|
|
183
189
|
multipart-post (2.4.1)
|
|
184
190
|
nenv (0.3.0)
|
|
185
|
-
nokogiri (1.18.
|
|
191
|
+
nokogiri (1.18.10)
|
|
186
192
|
mini_portile2 (~> 2.8.2)
|
|
187
193
|
racc (~> 1.4)
|
|
188
|
-
nokogiri (1.18.
|
|
194
|
+
nokogiri (1.18.10-x86_64-linux-gnu)
|
|
189
195
|
racc (~> 1.4)
|
|
190
196
|
notiffany (0.1.3)
|
|
191
197
|
nenv (~> 0.1)
|
|
@@ -205,38 +211,39 @@ GEM
|
|
|
205
211
|
rubocop-rake (~> 0.5)
|
|
206
212
|
rubocop-rspec (~> 2.0)
|
|
207
213
|
parallel (1.27.0)
|
|
208
|
-
parser (3.3.
|
|
214
|
+
parser (3.3.10.0)
|
|
209
215
|
ast (~> 2.4.1)
|
|
210
216
|
racc
|
|
211
|
-
prism (1.
|
|
217
|
+
prism (1.7.0)
|
|
212
218
|
process_executer (4.0.0)
|
|
213
219
|
track_open_instances (~> 0.1)
|
|
214
220
|
pry (0.15.2)
|
|
215
221
|
coderay (~> 1.1)
|
|
216
222
|
method_source (~> 1.0)
|
|
217
|
-
psych (5.
|
|
223
|
+
psych (5.3.1)
|
|
218
224
|
date
|
|
219
225
|
stringio
|
|
220
|
-
public_suffix (
|
|
226
|
+
public_suffix (7.0.0)
|
|
221
227
|
racc (1.8.1)
|
|
222
|
-
rack (3.2.
|
|
228
|
+
rack (3.2.4)
|
|
223
229
|
rainbow (3.1.1)
|
|
224
|
-
rake (13.3.
|
|
230
|
+
rake (13.3.1)
|
|
225
231
|
rb-fsevent (0.11.2)
|
|
226
232
|
rb-inotify (0.11.1)
|
|
227
233
|
ffi (~> 1.0)
|
|
228
|
-
rchardet (1.
|
|
229
|
-
rdoc (
|
|
234
|
+
rchardet (1.10.0)
|
|
235
|
+
rdoc (7.0.2)
|
|
230
236
|
erb
|
|
231
237
|
psych (>= 4.0.0)
|
|
232
|
-
|
|
233
|
-
|
|
238
|
+
tsort
|
|
239
|
+
regexp_parser (2.11.3)
|
|
240
|
+
reline (0.6.3)
|
|
234
241
|
io-console (~> 0.5)
|
|
235
|
-
rspec (3.13.
|
|
242
|
+
rspec (3.13.2)
|
|
236
243
|
rspec-core (~> 3.13.0)
|
|
237
244
|
rspec-expectations (~> 3.13.0)
|
|
238
245
|
rspec-mocks (~> 3.13.0)
|
|
239
|
-
rspec-core (3.13.
|
|
246
|
+
rspec-core (3.13.6)
|
|
240
247
|
rspec-support (~> 3.13.0)
|
|
241
248
|
rspec-expectations (3.13.5)
|
|
242
249
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
@@ -244,11 +251,11 @@ GEM
|
|
|
244
251
|
rspec-given (3.8.2)
|
|
245
252
|
given_core (= 3.8.2)
|
|
246
253
|
rspec (>= 2.14.0)
|
|
247
|
-
rspec-mocks (3.13.
|
|
254
|
+
rspec-mocks (3.13.7)
|
|
248
255
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
249
256
|
rspec-support (~> 3.13.0)
|
|
250
|
-
rspec-support (3.13.
|
|
251
|
-
rubocop (1.
|
|
257
|
+
rspec-support (3.13.6)
|
|
258
|
+
rubocop (1.82.0)
|
|
252
259
|
json (~> 2.3)
|
|
253
260
|
language_server-protocol (~> 3.17.0.2)
|
|
254
261
|
lint_roller (~> 1.1.0)
|
|
@@ -256,23 +263,23 @@ GEM
|
|
|
256
263
|
parser (>= 3.3.0.2)
|
|
257
264
|
rainbow (>= 2.2.2, < 4.0)
|
|
258
265
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
259
|
-
rubocop-ast (>= 1.
|
|
266
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
260
267
|
ruby-progressbar (~> 1.7)
|
|
261
268
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
262
|
-
rubocop-ast (1.
|
|
269
|
+
rubocop-ast (1.48.0)
|
|
263
270
|
parser (>= 3.3.7.2)
|
|
264
271
|
prism (~> 1.4)
|
|
265
272
|
rubocop-capybara (2.22.1)
|
|
266
273
|
lint_roller (~> 1.1)
|
|
267
274
|
rubocop (~> 1.72, >= 1.72.1)
|
|
268
|
-
rubocop-factory_bot (2.
|
|
275
|
+
rubocop-factory_bot (2.28.0)
|
|
269
276
|
lint_roller (~> 1.1)
|
|
270
277
|
rubocop (~> 1.72, >= 1.72.1)
|
|
271
|
-
rubocop-performance (1.
|
|
278
|
+
rubocop-performance (1.26.1)
|
|
272
279
|
lint_roller (~> 1.1)
|
|
273
280
|
rubocop (>= 1.75.0, < 2.0)
|
|
274
|
-
rubocop-ast (>= 1.
|
|
275
|
-
rubocop-rails (2.
|
|
281
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
282
|
+
rubocop-rails (2.34.2)
|
|
276
283
|
activesupport (>= 4.2.0)
|
|
277
284
|
lint_roller (~> 1.1)
|
|
278
285
|
rack (>= 1.1)
|
|
@@ -306,21 +313,23 @@ GEM
|
|
|
306
313
|
simplecov-html (0.13.2)
|
|
307
314
|
simplecov_json_formatter (0.1.4)
|
|
308
315
|
sorcerer (2.0.1)
|
|
309
|
-
stringio (3.
|
|
310
|
-
sys-uname (1.
|
|
316
|
+
stringio (3.2.0)
|
|
317
|
+
sys-uname (1.4.1)
|
|
311
318
|
ffi (~> 1.1)
|
|
319
|
+
memoist3 (~> 1.0.0)
|
|
312
320
|
syslog (0.3.0)
|
|
313
321
|
logger
|
|
314
322
|
thor (1.4.0)
|
|
315
323
|
thread_safe (0.3.6)
|
|
316
324
|
track_open_instances (0.1.15)
|
|
325
|
+
tsort (0.2.0)
|
|
317
326
|
tzinfo (2.0.6)
|
|
318
327
|
concurrent-ruby (~> 1.0)
|
|
319
|
-
unicode-display_width (3.
|
|
320
|
-
unicode-emoji (~> 4.
|
|
321
|
-
unicode-emoji (4.0
|
|
322
|
-
uri (1.
|
|
323
|
-
yard (0.9.
|
|
328
|
+
unicode-display_width (3.2.0)
|
|
329
|
+
unicode-emoji (~> 4.1)
|
|
330
|
+
unicode-emoji (4.2.0)
|
|
331
|
+
uri (1.1.1)
|
|
332
|
+
yard (0.9.38)
|
|
324
333
|
|
|
325
334
|
PLATFORMS
|
|
326
335
|
x64-unknown
|
|
@@ -329,8 +338,10 @@ PLATFORMS
|
|
|
329
338
|
DEPENDENCIES
|
|
330
339
|
aruba
|
|
331
340
|
bundler
|
|
341
|
+
bundler-audit
|
|
332
342
|
cucumber
|
|
333
343
|
erb-processor!
|
|
344
|
+
gem-release
|
|
334
345
|
guard
|
|
335
346
|
guard-bundler
|
|
336
347
|
guard-cucumber
|
|
@@ -340,17 +351,18 @@ DEPENDENCIES
|
|
|
340
351
|
juwelier
|
|
341
352
|
panolint
|
|
342
353
|
rack
|
|
343
|
-
rake
|
|
354
|
+
rake
|
|
344
355
|
rdoc
|
|
345
|
-
rspec
|
|
356
|
+
rspec
|
|
346
357
|
rspec-core
|
|
347
358
|
rspec-expectations
|
|
348
359
|
rspec-given
|
|
349
|
-
rubocop
|
|
360
|
+
rubocop
|
|
350
361
|
rubocop-performance
|
|
362
|
+
rubocop-rspec
|
|
351
363
|
shoulda
|
|
352
364
|
simplecov
|
|
353
365
|
syslog
|
|
354
366
|
|
|
355
367
|
BUNDLED WITH
|
|
356
|
-
|
|
368
|
+
4.0.3
|
data/Rakefile
CHANGED
|
@@ -15,6 +15,9 @@ require "rubygems"
|
|
|
15
15
|
require "cucumber"
|
|
16
16
|
require "cucumber/rake/task"
|
|
17
17
|
|
|
18
|
+
# Load custom tasks
|
|
19
|
+
Dir.glob("lib/tasks/**/*.rake").each { |r| load r }
|
|
20
|
+
|
|
18
21
|
# if false
|
|
19
22
|
# Cucumber::Rake::Task.new(:cucumber) do |t|
|
|
20
23
|
# t.cucumber_opts = ["--format pretty"] # Any valid command line option can go here.
|
|
@@ -23,18 +26,25 @@ require "cucumber/rake/task"
|
|
|
23
26
|
|
|
24
27
|
# Cucumber::Rake::Task.new if false
|
|
25
28
|
|
|
26
|
-
# rubocop:disable Rails/RakeEnvironment
|
|
27
29
|
desc "Run cucumber"
|
|
28
|
-
task :
|
|
30
|
+
task cucumber: :environment do
|
|
29
31
|
system "bundle exec cucumber"
|
|
30
32
|
end
|
|
33
|
+
|
|
34
|
+
# rubocop:disable Rails/RakeEnvironment
|
|
35
|
+
desc "Run environment specific tasks"
|
|
36
|
+
task :environment do
|
|
37
|
+
:nothing
|
|
38
|
+
end
|
|
31
39
|
# rubocop:enable Rails/RakeEnvironment
|
|
32
40
|
|
|
33
41
|
task default: %i[spec rubocop cucumber]
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
desc "Upgrade gems, including bundler and gem"
|
|
44
|
+
task upgrade: :environment do
|
|
36
45
|
sh "gem update --system"
|
|
37
46
|
sh "gem update"
|
|
38
47
|
sh "bundle update --bundler"
|
|
39
48
|
sh "bundle update"
|
|
40
|
-
|
|
49
|
+
sh "bundle audit"
|
|
50
|
+
end
|
data/erb-processor.gemspec
CHANGED
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
END_OF_DESCRIPTION
|
|
17
17
|
spec.homepage = "https://github.com/cbroult/erb-processor"
|
|
18
18
|
spec.license = "MIT"
|
|
19
|
-
spec.required_ruby_version = ">= 3.4.
|
|
19
|
+
spec.required_ruby_version = ">= 3.4.8"
|
|
20
20
|
|
|
21
21
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
22
22
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.require_paths = ["lib"]
|
|
35
35
|
|
|
36
36
|
# Uncomment to register a new dependency of your gem
|
|
37
|
-
spec.add_dependency "logging"
|
|
37
|
+
spec.add_dependency "logging"
|
|
38
38
|
|
|
39
39
|
# For more information and examples about making a new gem, check out our
|
|
40
40
|
# guide at: https://bundler.io/guides/creating_gem.html
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
def validate_version_type(type)
|
|
4
|
+
valid_types = %w[patch minor major]
|
|
5
|
+
return if valid_types.include?(type)
|
|
6
|
+
|
|
7
|
+
puts "Error: Version type must be one of: #{valid_types.join(', ')}"
|
|
8
|
+
exit 1
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def execute_version_bump(type)
|
|
12
|
+
puts "Bumping #{type} version..."
|
|
13
|
+
bump_result = system("bundle exec gem bump --version #{type} --message 'build(deps): bump version to %<version>s.'")
|
|
14
|
+
return if bump_result
|
|
15
|
+
|
|
16
|
+
puts "Error: Failed to bump version"
|
|
17
|
+
exit 1
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def update_gemfile_lock
|
|
21
|
+
puts "Updating Gemfile.lock..."
|
|
22
|
+
bundle_result = system("bundle install")
|
|
23
|
+
return if bundle_result
|
|
24
|
+
|
|
25
|
+
puts "Error: Failed to update Gemfile.lock"
|
|
26
|
+
exit 1
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def amend_commit_to_include_gemfile_lock_changes
|
|
30
|
+
puts "Amending commit to include Gemfile.lock update..."
|
|
31
|
+
system("git add .")
|
|
32
|
+
system("git commit --amend --no-edit")
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
namespace :version do
|
|
36
|
+
desc "Bump version (patch, minor, major) and update Gemfile.lock in a single step. Default: patch"
|
|
37
|
+
task :bump, [:type] => :environment do |_t, args|
|
|
38
|
+
args.with_defaults(type: "patch")
|
|
39
|
+
|
|
40
|
+
validate_version_type(args.type)
|
|
41
|
+
|
|
42
|
+
execute_version_bump(args.type)
|
|
43
|
+
update_gemfile_lock
|
|
44
|
+
amend_commit_to_include_gemfile_lock_changes
|
|
45
|
+
|
|
46
|
+
puts <<~EOEM
|
|
47
|
+
Version successfully bumped and committed!
|
|
48
|
+
|
|
49
|
+
Run 'git push' to push the changes to your remote repository.
|
|
50
|
+
EOEM
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
desc "Alias for version:bump"
|
|
55
|
+
task :bump, [:type] => ["version:bump"]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: erb-processor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christophe Broult
|
|
@@ -13,16 +13,16 @@ dependencies:
|
|
|
13
13
|
name: logging
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
|
-
- - "
|
|
16
|
+
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '
|
|
18
|
+
version: '0'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
|
-
- - "
|
|
23
|
+
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '
|
|
25
|
+
version: '0'
|
|
26
26
|
description: |
|
|
27
27
|
All .erb files in the specified directory tree are going to be evaluated.
|
|
28
28
|
The corresponding non.erb files are going to be written by removing the .erb extension.
|
|
@@ -55,6 +55,7 @@ files:
|
|
|
55
55
|
- lib/erb/processor/language_commenter.rb
|
|
56
56
|
- lib/erb/processor/logging_setup.rb
|
|
57
57
|
- lib/erb/processor/version.rb
|
|
58
|
+
- lib/tasks/version.rake
|
|
58
59
|
- sig/erb/processor.rbs
|
|
59
60
|
homepage: https://github.com/cbroult/erb-processor
|
|
60
61
|
licenses:
|
|
@@ -71,14 +72,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
71
72
|
requirements:
|
|
72
73
|
- - ">="
|
|
73
74
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 3.4.
|
|
75
|
+
version: 3.4.8
|
|
75
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
77
|
requirements:
|
|
77
78
|
- - ">="
|
|
78
79
|
- !ruby/object:Gem::Version
|
|
79
80
|
version: '0'
|
|
80
81
|
requirements: []
|
|
81
|
-
rubygems_version:
|
|
82
|
+
rubygems_version: 4.0.3
|
|
82
83
|
specification_version: 4
|
|
83
84
|
summary: Process all .erb files in a directory tree.
|
|
84
85
|
test_files: []
|