erb-processor 1.0.2 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fc9bdc317a919fc02c80b39ac74db8689c90ee7196f0284bc65edd29fcc4c18
4
- data.tar.gz: 07c90820a0934107f635016e43706d0c81a5813df85bd817700c343c823dddd6
3
+ metadata.gz: 8fcdd9119a0cde002e43656a6582e0f832ec2793cb5097670085ea62558598a6
4
+ data.tar.gz: 0e0c656c56233370347342212d5ba51b9e036e11e144b0814a4419ccab5af7cf
5
5
  SHA512:
6
- metadata.gz: ed29b3f7a6ccc07a8308c5b2d1d4fc1728c0fc32296b99de3a7b4cf7b3ef67fb19820396adb41f4f52d79256255ddbd342a9fdfa195ad51e3a8ed158841ea714
7
- data.tar.gz: 9ba16900e680f45b10db210d31e724cf5d454c584c786d0f04a1257d2fa317d251d3009c9664b886eb444b582008f3b21e3c8ebf83e4482baeeaabc1f63ed44f
6
+ metadata.gz: a6c44dd2895c2fad97cfc263e6672650778d525c88adf6f16076c2d37ff84cd1e30ef88be14db986afda8e954147d57be1874ff659201ec9cf77d06eab7e08d2
7
+ data.tar.gz: 898632e47d507144da4dc8405ae00f66a21cdd6569f5a0d7a75cef13a5a1c48fd727c1c3e399bfef2b599329f085986cdf4f0e3609d2e08791fab2d50848c4d0
data/.rubocop.yml CHANGED
@@ -1,22 +1,13 @@
1
- inherit_gem:
2
- panolint: panolint-rubocop.yml
3
-
4
1
  AllCops:
5
2
  NewCops: enable
6
- TargetRubyVersion: 2.6
7
- Exclude:
8
- - vendor/**/*
9
- <% `git status --ignored --porcelain`.lines.grep(/^!! /).each do |path| %>
10
- - <%= path.sub(/^!! /, '') %>
11
- <% end %>
12
-
13
- Style/StringLiterals:
14
- Enabled: true
15
- EnforcedStyle: double_quotes
16
3
 
17
- Style/StringLiteralsInInterpolation:
18
- Enabled: true
19
- EnforcedStyle: double_quotes
4
+ plugins:
5
+ - rubocop-performance
6
+ - rubocop-rails
7
+ - rubocop-rake
20
8
 
21
9
  Layout/LineLength:
22
10
  Max: 120
11
+
12
+ Style/StringLiterals:
13
+ EnforcedStyle: double_quotes
data/Gemfile CHANGED
@@ -23,10 +23,12 @@ gem "guard-rspec"
23
23
  gem "guard-rubocop"
24
24
  gem "guard-yard"
25
25
  gem "juwelier" # , '~> 2.1.0'
26
+ gem "rack"
26
27
  gem "rdoc" # , '~> 3.12'
27
28
  gem "rspec-core"
28
29
  gem "rspec-expectations"
29
30
  gem "rspec-given"
30
31
  gem "shoulda" # , '>= 0'
31
32
  gem "simplecov" # , '>= 0'
33
+ gem "syslog" unless Gem.win_platform?
32
34
  gem "wdm", ">= 0.1.0" if Gem.win_platform?
data/Gemfile.lock CHANGED
@@ -1,62 +1,76 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- erb-processor (1.0.2)
4
+ erb-processor (1.0.4)
5
5
  logging (~> 2.3)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (7.0.3)
11
- concurrent-ruby (~> 1.0, >= 1.0.2)
10
+ activesupport (8.0.2)
11
+ base64
12
+ benchmark (>= 0.3)
13
+ bigdecimal
14
+ concurrent-ruby (~> 1.0, >= 1.3.1)
15
+ connection_pool (>= 2.2.5)
16
+ drb
12
17
  i18n (>= 1.6, < 2)
18
+ logger (>= 1.4.2)
13
19
  minitest (>= 5.1)
14
- tzinfo (~> 2.0)
15
- addressable (2.8.0)
16
- public_suffix (>= 2.0.2, < 5.0)
17
- aruba (2.1.0)
20
+ securerandom (>= 0.3)
21
+ tzinfo (~> 2.0, >= 2.0.5)
22
+ uri (>= 0.13.1)
23
+ addressable (2.8.7)
24
+ public_suffix (>= 2.0.2, < 7.0)
25
+ aruba (2.3.0)
18
26
  bundler (>= 1.17, < 3.0)
19
- childprocess (>= 2.0, < 5.0)
20
27
  contracts (>= 0.16.0, < 0.18.0)
21
- cucumber (>= 4.0, < 9.0)
28
+ cucumber (>= 8.0, < 10.0)
22
29
  rspec-expectations (~> 3.4)
23
30
  thor (~> 1.0)
24
- ast (2.4.2)
25
- brakeman (5.2.3)
26
- builder (3.2.4)
27
- childprocess (4.1.0)
31
+ ast (2.4.3)
32
+ base64 (0.3.0)
33
+ benchmark (0.4.1)
34
+ bigdecimal (3.2.2)
35
+ brakeman (5.4.1)
36
+ builder (3.3.0)
28
37
  coderay (1.1.3)
29
- concurrent-ruby (1.1.10)
30
- contracts (0.17)
31
- cucumber (8.0.0)
32
- builder (~> 3.2, >= 3.2.4)
33
- cucumber-ci-environment (~> 9.0, >= 9.0.4)
34
- cucumber-core (~> 11.0, >= 11.0.0)
35
- cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
36
- cucumber-gherkin (~> 23.0, >= 23.0.1)
37
- cucumber-html-formatter (~> 19.1, >= 19.1.0)
38
- cucumber-messages (~> 18.0, >= 18.0.0)
39
- diff-lcs (~> 1.5, >= 1.5.0)
40
- mime-types (~> 3.4, >= 3.4.1)
41
- multi_test (~> 1.1, >= 1.1.0)
42
- sys-uname (~> 1.2, >= 1.2.2)
43
- cucumber-ci-environment (9.0.4)
44
- cucumber-core (11.0.0)
45
- cucumber-gherkin (~> 23.0, >= 23.0.1)
46
- cucumber-messages (~> 18.0, >= 18.0.0)
47
- cucumber-tag-expressions (~> 4.1, >= 4.1.0)
48
- cucumber-cucumber-expressions (15.2.0)
49
- cucumber-gherkin (23.0.1)
50
- cucumber-messages (~> 18.0, >= 18.0.0)
51
- cucumber-html-formatter (19.2.0)
52
- cucumber-messages (~> 18.0, >= 18.0.0)
53
- cucumber-messages (18.0.0)
54
- cucumber-tag-expressions (4.1.0)
38
+ concurrent-ruby (1.3.5)
39
+ connection_pool (2.5.3)
40
+ contracts (0.17.2)
41
+ cucumber (9.2.1)
42
+ builder (~> 3.2)
43
+ cucumber-ci-environment (> 9, < 11)
44
+ cucumber-core (> 13, < 14)
45
+ cucumber-cucumber-expressions (~> 17.0)
46
+ cucumber-gherkin (> 24, < 28)
47
+ cucumber-html-formatter (> 20.3, < 22)
48
+ cucumber-messages (> 19, < 25)
49
+ diff-lcs (~> 1.5)
50
+ mini_mime (~> 1.1)
51
+ multi_test (~> 1.1)
52
+ sys-uname (~> 1.2)
53
+ cucumber-ci-environment (10.0.1)
54
+ cucumber-core (13.0.3)
55
+ cucumber-gherkin (>= 27, < 28)
56
+ cucumber-messages (>= 20, < 23)
57
+ cucumber-tag-expressions (> 5, < 7)
58
+ cucumber-cucumber-expressions (17.1.0)
59
+ bigdecimal
60
+ cucumber-gherkin (27.0.0)
61
+ cucumber-messages (>= 19.1.4, < 23)
62
+ cucumber-html-formatter (21.10.1)
63
+ cucumber-messages (> 19, < 28)
64
+ cucumber-messages (22.0.0)
65
+ cucumber-tag-expressions (6.1.2)
66
+ date (3.4.1)
55
67
  descendants_tracker (0.0.4)
56
68
  thread_safe (~> 0.3, >= 0.3.1)
57
- diff-lcs (1.5.0)
58
- docile (1.4.0)
59
- faraday (1.10.0)
69
+ diff-lcs (1.6.2)
70
+ docile (1.4.1)
71
+ drb (2.2.3)
72
+ erb (5.0.1)
73
+ faraday (1.10.4)
60
74
  faraday-em_http (~> 1.0)
61
75
  faraday-em_synchrony (~> 1.0)
62
76
  faraday-excon (~> 1.1)
@@ -72,17 +86,21 @@ GEM
72
86
  faraday-em_synchrony (1.0.0)
73
87
  faraday-excon (1.1.0)
74
88
  faraday-httpclient (1.0.1)
75
- faraday-multipart (1.0.4)
76
- multipart-post (~> 2)
77
- faraday-net_http (1.0.1)
89
+ faraday-multipart (1.1.0)
90
+ multipart-post (~> 2.0)
91
+ faraday-net_http (1.0.2)
78
92
  faraday-net_http_persistent (1.2.0)
79
93
  faraday-patron (1.0.0)
80
94
  faraday-rack (1.0.0)
81
95
  faraday-retry (1.0.3)
82
- ffi (1.15.5)
96
+ ffi (1.17.2)
97
+ ffi (1.17.2-x86_64-linux-gnu)
83
98
  formatador (1.1.0)
84
- git (1.11.0)
85
- rchardet (~> 1.8)
99
+ git (3.1.0)
100
+ activesupport (>= 5.0)
101
+ addressable (~> 2.8)
102
+ process_executer (~> 1.3)
103
+ rchardet (~> 1.9)
86
104
  github_api (0.19.0)
87
105
  addressable (~> 2.4)
88
106
  descendants_tracker (~> 0.0.4)
@@ -91,16 +109,18 @@ GEM
91
109
  oauth2 (~> 1.0)
92
110
  given_core (3.8.2)
93
111
  sorcerer (>= 0.3.7)
94
- guard (2.18.0)
112
+ guard (2.19.1)
95
113
  formatador (>= 0.2.4)
96
114
  listen (>= 2.7, < 4.0)
115
+ logger (~> 1.6)
97
116
  lumberjack (>= 1.0.12, < 2.0)
98
117
  nenv (~> 0.1)
99
118
  notiffany (~> 0.0)
119
+ ostruct (~> 0.6)
100
120
  pry (>= 0.13.0)
101
121
  shellany (~> 0.0)
102
122
  thor (>= 0.18.1)
103
- guard-bundler (3.0.0)
123
+ guard-bundler (3.0.1)
104
124
  bundler (>= 2.1, < 3)
105
125
  guard (~> 2.2)
106
126
  guard-compat (~> 1.1)
@@ -119,9 +139,12 @@ GEM
119
139
  guard (>= 1.1.0)
120
140
  yard (>= 0.7.0)
121
141
  hashie (3.6.0)
122
- highline (2.0.3)
123
- i18n (1.10.0)
142
+ highline (3.1.2)
143
+ reline
144
+ i18n (1.14.7)
124
145
  concurrent-ruby (~> 1.0)
146
+ io-console (0.8.0)
147
+ json (2.12.2)
125
148
  juwelier (2.4.9)
126
149
  builder
127
150
  bundler
@@ -134,110 +157,139 @@ GEM
134
157
  rake
135
158
  rdoc
136
159
  semver2
137
- jwt (2.4.1)
160
+ jwt (2.10.1)
161
+ base64
138
162
  kamelcase (0.0.2)
139
163
  semver2 (~> 3)
140
- listen (3.7.1)
164
+ language_server-protocol (3.17.0.5)
165
+ lint_roller (1.1.0)
166
+ listen (3.9.0)
141
167
  rb-fsevent (~> 0.10, >= 0.10.3)
142
168
  rb-inotify (~> 0.9, >= 0.9.10)
143
169
  little-plugger (1.1.4)
144
- logging (2.3.1)
170
+ logger (1.7.0)
171
+ logging (2.4.0)
145
172
  little-plugger (~> 1.1)
146
173
  multi_json (~> 1.14)
147
- lumberjack (1.2.8)
148
- method_source (1.0.0)
149
- mime-types (3.4.1)
150
- mime-types-data (~> 3.2015)
151
- mime-types-data (3.2022.0105)
152
- mini_portile2 (2.8.0)
153
- minitest (5.16.1)
174
+ lumberjack (1.2.10)
175
+ method_source (1.1.0)
176
+ mini_mime (1.1.5)
177
+ mini_portile2 (2.8.9)
178
+ minitest (5.25.5)
154
179
  multi_json (1.15.0)
155
180
  multi_test (1.1.0)
156
- multi_xml (0.6.0)
157
- multipart-post (2.2.3)
181
+ multi_xml (0.7.2)
182
+ bigdecimal (~> 3.1)
183
+ multipart-post (2.4.1)
158
184
  nenv (0.3.0)
159
- nokogiri (1.13.6)
160
- mini_portile2 (~> 2.8.0)
185
+ nokogiri (1.18.8)
186
+ mini_portile2 (~> 2.8.2)
161
187
  racc (~> 1.4)
162
- nokogiri (1.13.6-x86_64-linux)
188
+ nokogiri (1.18.8-x86_64-linux-gnu)
163
189
  racc (~> 1.4)
164
190
  notiffany (0.1.3)
165
191
  nenv (~> 0.1)
166
192
  shellany (~> 0.0)
167
- oauth2 (1.4.9)
193
+ oauth2 (1.4.11)
168
194
  faraday (>= 0.17.3, < 3.0)
169
195
  jwt (>= 1.0, < 3.0)
170
196
  multi_json (~> 1.3)
171
197
  multi_xml (~> 0.5)
172
- rack (>= 1.2, < 3)
173
- panolint (0.1.4)
198
+ rack (>= 1.2, < 4)
199
+ ostruct (0.6.1)
200
+ panolint (0.1.6)
174
201
  brakeman (>= 4.8, < 6.0)
175
202
  rubocop (>= 0.83, < 2.0)
176
203
  rubocop-performance (~> 1.5)
177
204
  rubocop-rails (~> 2.5)
178
205
  rubocop-rake (~> 0.5)
179
206
  rubocop-rspec (~> 2.0)
180
- parallel (1.22.1)
181
- parser (3.1.2.0)
207
+ parallel (1.27.0)
208
+ parser (3.3.8.0)
182
209
  ast (~> 2.4.1)
183
- pry (0.14.1)
210
+ racc
211
+ prism (1.4.0)
212
+ process_executer (1.3.0)
213
+ pry (0.15.2)
184
214
  coderay (~> 1.1)
185
215
  method_source (~> 1.0)
186
- psych (4.0.4)
216
+ psych (5.2.6)
217
+ date
187
218
  stringio
188
- public_suffix (4.0.7)
189
- racc (1.6.0)
190
- rack (2.2.3.1)
219
+ public_suffix (6.0.2)
220
+ racc (1.8.1)
221
+ rack (3.1.16)
191
222
  rainbow (3.1.1)
192
- rake (13.0.6)
193
- rb-fsevent (0.11.1)
194
- rb-inotify (0.10.1)
223
+ rake (13.3.0)
224
+ rb-fsevent (0.11.2)
225
+ rb-inotify (0.11.1)
195
226
  ffi (~> 1.0)
196
- rchardet (1.8.0)
197
- rdoc (6.4.0)
227
+ rchardet (1.9.0)
228
+ rdoc (6.14.0)
229
+ erb
198
230
  psych (>= 4.0.0)
199
- regexp_parser (2.5.0)
200
- rexml (3.2.5)
201
- rspec (3.11.0)
202
- rspec-core (~> 3.11.0)
203
- rspec-expectations (~> 3.11.0)
204
- rspec-mocks (~> 3.11.0)
205
- rspec-core (3.11.0)
206
- rspec-support (~> 3.11.0)
207
- rspec-expectations (3.11.0)
231
+ regexp_parser (2.10.0)
232
+ reline (0.6.1)
233
+ io-console (~> 0.5)
234
+ rspec (3.13.1)
235
+ rspec-core (~> 3.13.0)
236
+ rspec-expectations (~> 3.13.0)
237
+ rspec-mocks (~> 3.13.0)
238
+ rspec-core (3.13.4)
239
+ rspec-support (~> 3.13.0)
240
+ rspec-expectations (3.13.5)
208
241
  diff-lcs (>= 1.2.0, < 2.0)
209
- rspec-support (~> 3.11.0)
242
+ rspec-support (~> 3.13.0)
210
243
  rspec-given (3.8.2)
211
244
  given_core (= 3.8.2)
212
245
  rspec (>= 2.14.0)
213
- rspec-mocks (3.11.1)
246
+ rspec-mocks (3.13.5)
214
247
  diff-lcs (>= 1.2.0, < 2.0)
215
- rspec-support (~> 3.11.0)
216
- rspec-support (3.11.0)
217
- rubocop (1.31.0)
248
+ rspec-support (~> 3.13.0)
249
+ rspec-support (3.13.4)
250
+ rubocop (1.76.1)
251
+ json (~> 2.3)
252
+ language_server-protocol (~> 3.17.0.2)
253
+ lint_roller (~> 1.1.0)
218
254
  parallel (~> 1.10)
219
- parser (>= 3.1.0.0)
255
+ parser (>= 3.3.0.2)
220
256
  rainbow (>= 2.2.2, < 4.0)
221
- regexp_parser (>= 1.8, < 3.0)
222
- rexml (>= 3.2.5, < 4.0)
223
- rubocop-ast (>= 1.18.0, < 2.0)
257
+ regexp_parser (>= 2.9.3, < 3.0)
258
+ rubocop-ast (>= 1.45.0, < 2.0)
224
259
  ruby-progressbar (~> 1.7)
225
- unicode-display_width (>= 1.4.0, < 3.0)
226
- rubocop-ast (1.18.0)
227
- parser (>= 3.1.1.0)
228
- rubocop-performance (1.14.2)
229
- rubocop (>= 1.7.0, < 2.0)
230
- rubocop-ast (>= 0.4.0)
231
- rubocop-rails (2.15.1)
260
+ unicode-display_width (>= 2.4.0, < 4.0)
261
+ rubocop-ast (1.45.1)
262
+ parser (>= 3.3.7.2)
263
+ prism (~> 1.4)
264
+ rubocop-capybara (2.22.1)
265
+ lint_roller (~> 1.1)
266
+ rubocop (~> 1.72, >= 1.72.1)
267
+ rubocop-factory_bot (2.27.1)
268
+ lint_roller (~> 1.1)
269
+ rubocop (~> 1.72, >= 1.72.1)
270
+ rubocop-performance (1.25.0)
271
+ lint_roller (~> 1.1)
272
+ rubocop (>= 1.75.0, < 2.0)
273
+ rubocop-ast (>= 1.38.0, < 2.0)
274
+ rubocop-rails (2.32.0)
232
275
  activesupport (>= 4.2.0)
276
+ lint_roller (~> 1.1)
233
277
  rack (>= 1.1)
234
- rubocop (>= 1.7.0, < 2.0)
235
- rubocop-rake (0.6.0)
236
- rubocop (~> 1.0)
237
- rubocop-rspec (2.11.1)
238
- rubocop (~> 1.19)
239
- ruby-progressbar (1.11.0)
278
+ rubocop (>= 1.75.0, < 2.0)
279
+ rubocop-ast (>= 1.44.0, < 2.0)
280
+ rubocop-rake (0.7.1)
281
+ lint_roller (~> 1.1)
282
+ rubocop (>= 1.72.1)
283
+ rubocop-rspec (2.31.0)
284
+ rubocop (~> 1.40)
285
+ rubocop-capybara (~> 2.17)
286
+ rubocop-factory_bot (~> 2.22)
287
+ rubocop-rspec_rails (~> 2.28)
288
+ rubocop-rspec_rails (2.29.1)
289
+ rubocop (~> 1.61)
290
+ ruby-progressbar (1.13.0)
240
291
  ruby2_keywords (0.0.5)
292
+ securerandom (0.4.1)
241
293
  semver2 (3.4.2)
242
294
  shellany (0.0.1)
243
295
  shoulda (4.0.0)
@@ -246,24 +298,27 @@ GEM
246
298
  shoulda-context (2.0.0)
247
299
  shoulda-matchers (4.5.1)
248
300
  activesupport (>= 4.2.0)
249
- simplecov (0.21.2)
301
+ simplecov (0.22.0)
250
302
  docile (~> 1.1)
251
303
  simplecov-html (~> 0.11)
252
304
  simplecov_json_formatter (~> 0.1)
253
- simplecov-html (0.12.3)
305
+ simplecov-html (0.13.1)
254
306
  simplecov_json_formatter (0.1.4)
255
307
  sorcerer (2.0.1)
256
- stringio (3.0.2)
257
- sys-uname (1.2.2)
308
+ stringio (3.1.7)
309
+ sys-uname (1.3.1)
258
310
  ffi (~> 1.1)
259
- thor (1.2.1)
311
+ syslog (0.3.0)
312
+ logger
313
+ thor (1.3.2)
260
314
  thread_safe (0.3.6)
261
- tzinfo (2.0.4)
315
+ tzinfo (2.0.6)
262
316
  concurrent-ruby (~> 1.0)
263
- unicode-display_width (2.2.0)
264
- webrick (1.7.0)
265
- yard (0.9.28)
266
- webrick (~> 1.7.0)
317
+ unicode-display_width (3.1.4)
318
+ unicode-emoji (~> 4.0, >= 4.0.4)
319
+ unicode-emoji (4.0.4)
320
+ uri (1.0.3)
321
+ yard (0.9.37)
267
322
 
268
323
  PLATFORMS
269
324
  x64-unknown
@@ -282,6 +337,7 @@ DEPENDENCIES
282
337
  guard-yard
283
338
  juwelier
284
339
  panolint
340
+ rack
285
341
  rake (~> 13.0)
286
342
  rdoc
287
343
  rspec (~> 3.0)
@@ -292,6 +348,7 @@ DEPENDENCIES
292
348
  rubocop-performance
293
349
  shoulda
294
350
  simplecov
351
+ syslog
295
352
 
296
353
  BUNDLED WITH
297
- 2.3.16
354
+ 2.6.9
data/Guardfile CHANGED
@@ -47,7 +47,7 @@ group :red_green_refactor, halt_on_fail: true do
47
47
  dsl.watch_spec_files_for(ruby.lib_files)
48
48
  end
49
49
 
50
- guard :rubocop, cli: ["--autocorrect"] do
50
+ guard :rubocop, cli: ["--format", "clang", "--autocorrect"] do
51
51
  watch(/.+\.rb$/)
52
52
  watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
53
53
  end
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # ERB::Processor
2
2
 
3
- [![Test cucumber](https://github.com/cbroult/erb-processor/actions/workflows/main.yml/badge.svg)](https://github.com/cucumber/cucumber-ruby/actions/workflows/cucumber-ruby.yml)
3
+ [![Test er-processor](https://github.com/cbroult/erb-processor/actions/workflows/main.yml/badge.svg)](https://github.com/cbroult/erb-processor/actions/workflows/main.yml)
4
+ [![Dependabot Updates](https://github.com/cbroult/erb-processor/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/cbroult/erb-processor/actions/workflows/dependabot/dependabot-updates)
4
5
 
5
6
  Allows for the processing of all `.erb` files in a directory tree.
6
7
 
@@ -26,11 +27,9 @@ The list of options is available with:
26
27
 
27
28
  $ erb-processor --help
28
29
 
29
- ### Expected Behavior
30
+ ## Template Content
30
31
 
31
- See the `features/*.feature` files for the expected behavior.
32
-
33
- ### ERB Template File Content
32
+ ### Auto Generated Header
34
33
 
35
34
  The processed file can automatically include a warning that invites
36
35
  the editing of the template by using the following in the template:
@@ -47,6 +46,10 @@ Here is a template example for some Java code:
47
46
 
48
47
  <% SCENARIOS_PENDING_AUTOMATION = 4 -%>
49
48
 
49
+ // The purpose of this class is to make the tests pending automation
50
+ // explicitely visible in the CI/CD report.
51
+ // The list of actual tests pending automation can be found at
52
+ // https://...
50
53
  public class PendingTestAutomation {
51
54
 
52
55
  <% SCENARIOS_PENDING_AUTOMATION.times do |i|
@@ -54,12 +57,15 @@ public class PendingTestAutomation {
54
57
  -%>
55
58
  @Test(enabled=false)
56
59
  @Description("Test <%= scenario_id %>/<%= SCENARIOS_PENDING_AUTOMATION %> that is pending automation")
57
- public void toBeSkipped_<%= scenario_id %>_of_<%= SCENARIOS_PENDING_AUTOMATION %>(){}
60
+ public void toBeAutomated_<%= scenario_id %>_of_<%= SCENARIOS_PENDING_AUTOMATION %>(){}
58
61
 
59
62
  <% end -%>
60
63
  }
61
64
  ```
62
65
 
66
+ ### Template Processing and ERB Processor Behavior
67
+
68
+ See the [`features/*.feature`](features) files for the expected behavior depending on the template content.
63
69
 
64
70
  ## Development
65
71
 
data/Rakefile CHANGED
@@ -24,6 +24,7 @@ require "cucumber/rake/task"
24
24
  # Cucumber::Rake::Task.new if false
25
25
 
26
26
  # rubocop:disable Rails/RakeEnvironment
27
+ desc "Run cucumber"
27
28
  task :cucumber do
28
29
  system "bundle exec cucumber"
29
30
  end
data/cucumber.yml ADDED
@@ -0,0 +1 @@
1
+ default: --publish-quiet
@@ -16,14 +16,10 @@ 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 = ">= 2.6.0"
19
+ spec.required_ruby_version = ">= 3.4.2"
20
20
 
21
21
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
22
- spec.cert_chain = ["certs/cbroult.gem-public_cert.pem"]
23
- spec.signing_key = File.expand_path("~/.ssh/gem-private_key.pem") if $PROGRAM_NAME.end_with?("gem")
24
-
25
22
  spec.metadata["homepage_uri"] = spec.homepage
26
- spec.metadata["source_code_uri"] = spec.homepage
27
23
  spec.metadata["changelog_uri"] = File.join(spec.homepage, "Changelog")
28
24
 
29
25
  # Specify which files should be added to the gem when it is released.
@@ -8,7 +8,7 @@ class ERB
8
8
  module Processor
9
9
  # Processes a single file template
10
10
  class ForSingleFile
11
- ERB_TEMPLATE_REGEX = /.erb$/i.freeze
11
+ ERB_TEMPLATE_REGEX = /.erb$/i
12
12
 
13
13
  def self.template_file?(path)
14
14
  ERB_TEMPLATE_REGEX.match?(path)
@@ -44,7 +44,7 @@ class ERB
44
44
  end
45
45
  end
46
46
 
47
- FILE_EXTENSION_REGEX = /\.([^.]+)$/.freeze
47
+ FILE_EXTENSION_REGEX = /\.([^.]+)$/
48
48
  def processed_language
49
49
  if target_file_path =~ FILE_EXTENSION_REGEX
50
50
  Regexp.last_match(1).intern
@@ -2,6 +2,6 @@
2
2
 
3
3
  class ERB
4
4
  module Processor
5
- VERSION = "1.0.2"
5
+ VERSION = "1.0.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,41 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christophe Broult
8
- autorequire:
9
8
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MRAwDgYDVQQDDAdjYnJv
14
- dWx0MRUwEwYKCZImiZPyLGQBGRYFeWFob28xEzARBgoJkiaJk/IsZAEZFgNjb20w
15
- HhcNMjIwNjI3MTY1NDM5WhcNMjMwNjI3MTY1NDM5WjA+MRAwDgYDVQQDDAdjYnJv
16
- dWx0MRUwEwYKCZImiZPyLGQBGRYFeWFob28xEzARBgoJkiaJk/IsZAEZFgNjb20w
17
- ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC0yHsJ3ifqB+TFpM/0xtam
18
- tV34cGQitxVmfkMM2g5cGxIQJd+rq4f13tpTyMCdt30dPb1nCuJW92pFfa5ZmSoZ
19
- 4W/XkSWvBvdWA0PXOIE9nqmZ+CV8EXIa77PjW3ERj0DkAfJ5JGIzFc3w8FfbAXXA
20
- o9WGr+vXS5j31XtQRYxURqOEUw3gqsC82u6/k+f4ZBFOrw+wgySbTm0eBu/+CADH
21
- I1MqY+NbmgMqXKZ8w5Ypr4MLQQ4c3QT+hLrY5f5Rqv99FZkLaswVVhx3fpmtgNIS
22
- vXwwnv6AYT7K1pLfY7ABQXj61/BEpoHadVhRhhLgWZ9IubjHH/kfUb7tr8DgCzAN
23
- Z/+tZcGWGeCn/ja79fAjukJz9WM/LJ5tuRzv+8UwR3IyvLrJU7e1Ci0GhNRe7GWl
24
- bas0t5gebHP1zfZD0A/NmXSJD2fzaVXPWLdGWEulIKkeIrmGwh3H5J6VQnOVJ3ie
25
- z7xqAQ9xAUHc8Vj4eb8cZyanKzf4xgGUe9PqYCI3bOMCAwEAAaN1MHMwCQYDVR0T
26
- BAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFPE4XJjjJHKyJaQbLhuEn4Q8pXIT
27
- MBwGA1UdEQQVMBOBEWNicm91bHRAeWFob28uY29tMBwGA1UdEgQVMBOBEWNicm91
28
- bHRAeWFob28uY29tMA0GCSqGSIb3DQEBCwUAA4IBgQBNYB/Hdgslbtps6wsC5Jig
29
- kaGl1OzugYZ2x0Qm+mnF8ruTFErDZEXQg0HBc1h9k35xdQyJbN7x42B8qBeGaqc5
30
- ZM9nAQ3aoehone2iGBQA2c8QaWUtiXmYIE0zIcA07p0HELInZ79QBBPAUDXEcMOV
31
- HttXCdVQhNQAU8MxSsz0SPHSlpgZt7oCFwO0EicqDJU6vJxBThF0J+TD+df0RrMN
32
- +Nn8vW2q1m++izC+8+e5+T/XkvIymCDGgk7K5pNrWKQGEBEOn/WDS7rrv6uFB9JS
33
- BIINjKL7VlLuYRJOJViYfmf8eaHNtAHtiR2qF6gNQQotJdgZEQmoCexmbZCycGjc
34
- 3olxjyMj5WtRL2r2HsD/+7WsvOY04ZMLmsBwfCUTEOaoWmPjv/DcnAcgPGf/5N/H
35
- icZ1vxt+NK3RuIWZ5bFPeXbeGLKMYpKlW2anAcO4F7IeeTLbKatwpxe+170wR6O8
36
- i3DoPNNyV0h4OYrLy338if4Rgh0lapMNra2xGqA8bWs=
37
- -----END CERTIFICATE-----
38
- date: 2022-06-28 00:00:00.000000000 Z
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
39
11
  dependencies:
40
12
  - !ruby/object:Gem::Dependency
41
13
  name: logging
@@ -59,7 +31,6 @@ email:
59
31
  - cbroult@yahoo.com
60
32
  executables:
61
33
  - erb-processor
62
- - erb-processor.cmd
63
34
  extensions: []
64
35
  extra_rdoc_files: []
65
36
  files:
@@ -75,9 +46,8 @@ files:
75
46
  - Rakefile
76
47
  - bin/console
77
48
  - bin/erb-processor
78
- - bin/erb-processor.cmd
79
49
  - bin/setup
80
- - certs/cbroult.gem-public_cert.pem
50
+ - cucumber.yml
81
51
  - erb-processor.gemspec
82
52
  - lib/erb/processor.rb
83
53
  - lib/erb/processor/for_directory_tree.rb
@@ -92,10 +62,8 @@ licenses:
92
62
  metadata:
93
63
  allowed_push_host: https://rubygems.org
94
64
  homepage_uri: https://github.com/cbroult/erb-processor
95
- source_code_uri: https://github.com/cbroult/erb-processor
96
65
  changelog_uri: https://github.com/cbroult/erb-processor/Changelog
97
66
  rubygems_mfa_required: 'true'
98
- post_install_message:
99
67
  rdoc_options: []
100
68
  require_paths:
101
69
  - lib
@@ -103,15 +71,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
71
  requirements:
104
72
  - - ">="
105
73
  - !ruby/object:Gem::Version
106
- version: 2.6.0
74
+ version: 3.4.2
107
75
  required_rubygems_version: !ruby/object:Gem::Requirement
108
76
  requirements:
109
77
  - - ">="
110
78
  - !ruby/object:Gem::Version
111
79
  version: '0'
112
80
  requirements: []
113
- rubygems_version: 3.3.16
114
- signing_key:
81
+ rubygems_version: 3.6.9
115
82
  specification_version: 4
116
83
  summary: Process all .erb files in a directory tree.
117
84
  test_files: []
checksums.yaml.gz.sig DELETED
Binary file
@@ -1,6 +0,0 @@
1
- @echo off
2
-
3
- set RUBY_SCRIPT_PATH=%~dpn0
4
- shift
5
- ruby %RUBY_SCRIPT_PATH% %*
6
-
@@ -1,26 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MRAwDgYDVQQDDAdjYnJv
3
- dWx0MRUwEwYKCZImiZPyLGQBGRYFeWFob28xEzARBgoJkiaJk/IsZAEZFgNjb20w
4
- HhcNMjIwNjI3MTY1NDM5WhcNMjMwNjI3MTY1NDM5WjA+MRAwDgYDVQQDDAdjYnJv
5
- dWx0MRUwEwYKCZImiZPyLGQBGRYFeWFob28xEzARBgoJkiaJk/IsZAEZFgNjb20w
6
- ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC0yHsJ3ifqB+TFpM/0xtam
7
- tV34cGQitxVmfkMM2g5cGxIQJd+rq4f13tpTyMCdt30dPb1nCuJW92pFfa5ZmSoZ
8
- 4W/XkSWvBvdWA0PXOIE9nqmZ+CV8EXIa77PjW3ERj0DkAfJ5JGIzFc3w8FfbAXXA
9
- o9WGr+vXS5j31XtQRYxURqOEUw3gqsC82u6/k+f4ZBFOrw+wgySbTm0eBu/+CADH
10
- I1MqY+NbmgMqXKZ8w5Ypr4MLQQ4c3QT+hLrY5f5Rqv99FZkLaswVVhx3fpmtgNIS
11
- vXwwnv6AYT7K1pLfY7ABQXj61/BEpoHadVhRhhLgWZ9IubjHH/kfUb7tr8DgCzAN
12
- Z/+tZcGWGeCn/ja79fAjukJz9WM/LJ5tuRzv+8UwR3IyvLrJU7e1Ci0GhNRe7GWl
13
- bas0t5gebHP1zfZD0A/NmXSJD2fzaVXPWLdGWEulIKkeIrmGwh3H5J6VQnOVJ3ie
14
- z7xqAQ9xAUHc8Vj4eb8cZyanKzf4xgGUe9PqYCI3bOMCAwEAAaN1MHMwCQYDVR0T
15
- BAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFPE4XJjjJHKyJaQbLhuEn4Q8pXIT
16
- MBwGA1UdEQQVMBOBEWNicm91bHRAeWFob28uY29tMBwGA1UdEgQVMBOBEWNicm91
17
- bHRAeWFob28uY29tMA0GCSqGSIb3DQEBCwUAA4IBgQBNYB/Hdgslbtps6wsC5Jig
18
- kaGl1OzugYZ2x0Qm+mnF8ruTFErDZEXQg0HBc1h9k35xdQyJbN7x42B8qBeGaqc5
19
- ZM9nAQ3aoehone2iGBQA2c8QaWUtiXmYIE0zIcA07p0HELInZ79QBBPAUDXEcMOV
20
- HttXCdVQhNQAU8MxSsz0SPHSlpgZt7oCFwO0EicqDJU6vJxBThF0J+TD+df0RrMN
21
- +Nn8vW2q1m++izC+8+e5+T/XkvIymCDGgk7K5pNrWKQGEBEOn/WDS7rrv6uFB9JS
22
- BIINjKL7VlLuYRJOJViYfmf8eaHNtAHtiR2qF6gNQQotJdgZEQmoCexmbZCycGjc
23
- 3olxjyMj5WtRL2r2HsD/+7WsvOY04ZMLmsBwfCUTEOaoWmPjv/DcnAcgPGf/5N/H
24
- icZ1vxt+NK3RuIWZ5bFPeXbeGLKMYpKlW2anAcO4F7IeeTLbKatwpxe+170wR6O8
25
- i3DoPNNyV0h4OYrLy338if4Rgh0lapMNra2xGqA8bWs=
26
- -----END CERTIFICATE-----
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file