erb-processor 1.0.4 → 1.0.11

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: 8fcdd9119a0cde002e43656a6582e0f832ec2793cb5097670085ea62558598a6
4
- data.tar.gz: 0e0c656c56233370347342212d5ba51b9e036e11e144b0814a4419ccab5af7cf
3
+ metadata.gz: 40ea5a4e4b8f731387703f0001790a2f3361fc970726f65d9f8f2396986338e6
4
+ data.tar.gz: 57df7a2342fbd88bcd488936af46b10c9923b9f26203fea71f39216628cde3ce
5
5
  SHA512:
6
- metadata.gz: a6c44dd2895c2fad97cfc263e6672650778d525c88adf6f16076c2d37ff84cd1e30ef88be14db986afda8e954147d57be1874ff659201ec9cf77d06eab7e08d2
7
- data.tar.gz: 898632e47d507144da4dc8405ae00f66a21cdd6569f5a0d7a75cef13a5a1c48fd727c1c3e399bfef2b599329f085986cdf4f0e3609d2e08791fab2d50848c4d0
6
+ metadata.gz: 56beec04f831b49d32f82ac0172da3de7efd45b243fecfed540021e2de928500427ed51628e73aeacf5f6df73807b3b4a3c0e86f2a978e5a5b492b5d3bbab463
7
+ data.tar.gz: a642d07768bd070f81756476c7f176378180814ef4d2531ca000ae8e4dbdf162c4240c66f1dceb58cbeb15c3d6539a79b1fee8be73c89c01d97dacac54d04e51
data/.rubocop.yml CHANGED
@@ -2,12 +2,19 @@ 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
+
9
13
  Layout/LineLength:
10
14
  Max: 120
11
15
 
12
16
  Style/StringLiterals:
13
17
  EnforcedStyle: double_quotes
18
+
19
+ Capybara:
20
+ 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 "rake", "~> 13.0"
8
+ gem "gem-release"
9
+ gem "rake"
9
10
 
10
- gem "rspec", "~> 3.0"
11
+ gem "rspec"
11
12
 
12
13
  gem "panolint"
13
- gem "rubocop", "~> 1.21"
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"
data/Gemfile.lock CHANGED
@@ -1,75 +1,77 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- erb-processor (1.0.4)
4
+ erb-processor (1.0.11)
5
5
  logging (~> 2.3)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (8.0.2)
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.7)
24
- public_suffix (>= 2.0.2, < 7.0)
25
- aruba (2.3.0)
23
+ addressable (2.8.8)
24
+ public_suffix (>= 2.0.2, < 8.0)
25
+ aruba (2.3.2)
26
26
  bundler (>= 1.17, < 3.0)
27
27
  contracts (>= 0.16.0, < 0.18.0)
28
- cucumber (>= 8.0, < 10.0)
29
- rspec-expectations (~> 3.4)
28
+ cucumber (>= 8.0, < 11.0)
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
- benchmark (0.4.1)
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
40
  concurrent-ruby (1.3.5)
39
- connection_pool (2.5.3)
41
+ connection_pool (2.5.5)
40
42
  contracts (0.17.2)
41
- cucumber (9.2.1)
43
+ cucumber (10.1.1)
44
+ base64 (~> 0.2)
42
45
  builder (~> 3.2)
43
46
  cucumber-ci-environment (> 9, < 11)
44
- cucumber-core (> 13, < 14)
45
- cucumber-cucumber-expressions (~> 17.0)
46
- cucumber-gherkin (> 24, < 28)
47
+ cucumber-core (> 15, < 17)
48
+ cucumber-cucumber-expressions (> 17, < 19)
47
49
  cucumber-html-formatter (> 20.3, < 22)
48
- cucumber-messages (> 19, < 25)
49
50
  diff-lcs (~> 1.5)
51
+ logger (~> 1.6)
50
52
  mini_mime (~> 1.1)
51
53
  multi_test (~> 1.1)
52
- sys-uname (~> 1.2)
54
+ sys-uname (~> 1.3)
53
55
  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)
56
+ cucumber-core (15.3.0)
57
+ cucumber-gherkin (> 27, < 35)
58
+ cucumber-messages (> 26, < 30)
59
+ cucumber-tag-expressions (> 5, < 9)
60
+ cucumber-cucumber-expressions (18.0.1)
59
61
  bigdecimal
60
- cucumber-gherkin (27.0.0)
61
- cucumber-messages (>= 19.1.4, < 23)
62
- cucumber-html-formatter (21.10.1)
62
+ cucumber-gherkin (34.0.0)
63
+ cucumber-messages (> 25, < 29)
64
+ cucumber-html-formatter (21.15.1)
63
65
  cucumber-messages (> 19, < 28)
64
- cucumber-messages (22.0.0)
65
- cucumber-tag-expressions (6.1.2)
66
- date (3.4.1)
66
+ cucumber-messages (27.2.0)
67
+ cucumber-tag-expressions (8.1.0)
68
+ date (3.5.0)
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 (5.0.1)
74
+ erb (6.0.0)
73
75
  faraday (1.10.4)
74
76
  faraday-em_http (~> 1.0)
75
77
  faraday-em_synchrony (~> 1.0)
@@ -83,10 +85,10 @@ GEM
83
85
  faraday-retry (~> 1.0)
84
86
  ruby2_keywords (>= 0.0.4)
85
87
  faraday-em_http (1.0.0)
86
- faraday-em_synchrony (1.0.0)
88
+ faraday-em_synchrony (1.0.1)
87
89
  faraday-excon (1.1.0)
88
90
  faraday-httpclient (1.0.1)
89
- faraday-multipart (1.1.0)
91
+ faraday-multipart (1.1.1)
90
92
  multipart-post (~> 2.0)
91
93
  faraday-net_http (1.0.2)
92
94
  faraday-net_http_persistent (1.2.0)
@@ -95,11 +97,13 @@ 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.1.0)
99
- git (3.1.0)
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
- process_executer (~> 1.3)
106
+ process_executer (~> 4.0)
103
107
  rchardet (~> 1.9)
104
108
  github_api (0.19.0)
105
109
  addressable (~> 2.4)
@@ -143,8 +147,8 @@ GEM
143
147
  reline
144
148
  i18n (1.14.7)
145
149
  concurrent-ruby (~> 1.0)
146
- io-console (0.8.0)
147
- json (2.12.2)
150
+ io-console (0.8.1)
151
+ json (2.16.0)
148
152
  juwelier (2.4.9)
149
153
  builder
150
154
  bundler
@@ -157,7 +161,7 @@ GEM
157
161
  rake
158
162
  rdoc
159
163
  semver2
160
- jwt (2.10.1)
164
+ jwt (2.10.2)
161
165
  base64
162
166
  kamelcase (0.0.2)
163
167
  semver2 (~> 3)
@@ -171,21 +175,22 @@ GEM
171
175
  logging (2.4.0)
172
176
  little-plugger (~> 1.1)
173
177
  multi_json (~> 1.14)
174
- lumberjack (1.2.10)
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 (5.25.5)
179
- multi_json (1.15.0)
183
+ minitest (5.26.2)
184
+ multi_json (1.17.0)
180
185
  multi_test (1.1.0)
181
186
  multi_xml (0.7.2)
182
187
  bigdecimal (~> 3.1)
183
188
  multipart-post (2.4.1)
184
189
  nenv (0.3.0)
185
- nokogiri (1.18.8)
190
+ nokogiri (1.18.10)
186
191
  mini_portile2 (~> 2.8.2)
187
192
  racc (~> 1.4)
188
- nokogiri (1.18.8-x86_64-linux-gnu)
193
+ nokogiri (1.18.10-x86_64-linux-gnu)
189
194
  racc (~> 1.4)
190
195
  notiffany (0.1.3)
191
196
  nenv (~> 0.1)
@@ -196,7 +201,7 @@ GEM
196
201
  multi_json (~> 1.3)
197
202
  multi_xml (~> 0.5)
198
203
  rack (>= 1.2, < 4)
199
- ostruct (0.6.1)
204
+ ostruct (0.6.3)
200
205
  panolint (0.1.6)
201
206
  brakeman (>= 4.8, < 6.0)
202
207
  rubocop (>= 0.83, < 2.0)
@@ -205,37 +210,39 @@ GEM
205
210
  rubocop-rake (~> 0.5)
206
211
  rubocop-rspec (~> 2.0)
207
212
  parallel (1.27.0)
208
- parser (3.3.8.0)
213
+ parser (3.3.10.0)
209
214
  ast (~> 2.4.1)
210
215
  racc
211
- prism (1.4.0)
212
- process_executer (1.3.0)
216
+ prism (1.6.0)
217
+ process_executer (4.0.0)
218
+ track_open_instances (~> 0.1)
213
219
  pry (0.15.2)
214
220
  coderay (~> 1.1)
215
221
  method_source (~> 1.0)
216
222
  psych (5.2.6)
217
223
  date
218
224
  stringio
219
- public_suffix (6.0.2)
225
+ public_suffix (7.0.0)
220
226
  racc (1.8.1)
221
- rack (3.1.16)
227
+ rack (3.2.4)
222
228
  rainbow (3.1.1)
223
- rake (13.3.0)
229
+ rake (13.3.1)
224
230
  rb-fsevent (0.11.2)
225
231
  rb-inotify (0.11.1)
226
232
  ffi (~> 1.0)
227
- rchardet (1.9.0)
228
- rdoc (6.14.0)
233
+ rchardet (1.10.0)
234
+ rdoc (6.16.1)
229
235
  erb
230
236
  psych (>= 4.0.0)
231
- regexp_parser (2.10.0)
232
- reline (0.6.1)
237
+ tsort
238
+ regexp_parser (2.11.3)
239
+ reline (0.6.3)
233
240
  io-console (~> 0.5)
234
- rspec (3.13.1)
241
+ rspec (3.13.2)
235
242
  rspec-core (~> 3.13.0)
236
243
  rspec-expectations (~> 3.13.0)
237
244
  rspec-mocks (~> 3.13.0)
238
- rspec-core (3.13.4)
245
+ rspec-core (3.13.6)
239
246
  rspec-support (~> 3.13.0)
240
247
  rspec-expectations (3.13.5)
241
248
  diff-lcs (>= 1.2.0, < 2.0)
@@ -243,11 +250,11 @@ GEM
243
250
  rspec-given (3.8.2)
244
251
  given_core (= 3.8.2)
245
252
  rspec (>= 2.14.0)
246
- rspec-mocks (3.13.5)
253
+ rspec-mocks (3.13.7)
247
254
  diff-lcs (>= 1.2.0, < 2.0)
248
255
  rspec-support (~> 3.13.0)
249
- rspec-support (3.13.4)
250
- rubocop (1.76.1)
256
+ rspec-support (3.13.6)
257
+ rubocop (1.81.7)
251
258
  json (~> 2.3)
252
259
  language_server-protocol (~> 3.17.0.2)
253
260
  lint_roller (~> 1.1.0)
@@ -255,23 +262,23 @@ GEM
255
262
  parser (>= 3.3.0.2)
256
263
  rainbow (>= 2.2.2, < 4.0)
257
264
  regexp_parser (>= 2.9.3, < 3.0)
258
- rubocop-ast (>= 1.45.0, < 2.0)
265
+ rubocop-ast (>= 1.47.1, < 2.0)
259
266
  ruby-progressbar (~> 1.7)
260
267
  unicode-display_width (>= 2.4.0, < 4.0)
261
- rubocop-ast (1.45.1)
268
+ rubocop-ast (1.48.0)
262
269
  parser (>= 3.3.7.2)
263
270
  prism (~> 1.4)
264
271
  rubocop-capybara (2.22.1)
265
272
  lint_roller (~> 1.1)
266
273
  rubocop (~> 1.72, >= 1.72.1)
267
- rubocop-factory_bot (2.27.1)
274
+ rubocop-factory_bot (2.28.0)
268
275
  lint_roller (~> 1.1)
269
276
  rubocop (~> 1.72, >= 1.72.1)
270
- rubocop-performance (1.25.0)
277
+ rubocop-performance (1.26.1)
271
278
  lint_roller (~> 1.1)
272
279
  rubocop (>= 1.75.0, < 2.0)
273
- rubocop-ast (>= 1.38.0, < 2.0)
274
- rubocop-rails (2.32.0)
280
+ rubocop-ast (>= 1.47.1, < 2.0)
281
+ rubocop-rails (2.34.2)
275
282
  activesupport (>= 4.2.0)
276
283
  lint_roller (~> 1.1)
277
284
  rack (>= 1.1)
@@ -302,22 +309,25 @@ GEM
302
309
  docile (~> 1.1)
303
310
  simplecov-html (~> 0.11)
304
311
  simplecov_json_formatter (~> 0.1)
305
- simplecov-html (0.13.1)
312
+ simplecov-html (0.13.2)
306
313
  simplecov_json_formatter (0.1.4)
307
314
  sorcerer (2.0.1)
308
- stringio (3.1.7)
309
- sys-uname (1.3.1)
315
+ stringio (3.1.8)
316
+ sys-uname (1.4.1)
310
317
  ffi (~> 1.1)
318
+ memoist3 (~> 1.0.0)
311
319
  syslog (0.3.0)
312
320
  logger
313
- thor (1.3.2)
321
+ thor (1.4.0)
314
322
  thread_safe (0.3.6)
323
+ track_open_instances (0.1.15)
324
+ tsort (0.2.0)
315
325
  tzinfo (2.0.6)
316
326
  concurrent-ruby (~> 1.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)
327
+ unicode-display_width (3.2.0)
328
+ unicode-emoji (~> 4.1)
329
+ unicode-emoji (4.1.0)
330
+ uri (1.1.1)
321
331
  yard (0.9.37)
322
332
 
323
333
  PLATFORMS
@@ -327,8 +337,10 @@ PLATFORMS
327
337
  DEPENDENCIES
328
338
  aruba
329
339
  bundler
340
+ bundler-audit
330
341
  cucumber
331
342
  erb-processor!
343
+ gem-release
332
344
  guard
333
345
  guard-bundler
334
346
  guard-cucumber
@@ -338,17 +350,18 @@ DEPENDENCIES
338
350
  juwelier
339
351
  panolint
340
352
  rack
341
- rake (~> 13.0)
353
+ rake
342
354
  rdoc
343
- rspec (~> 3.0)
355
+ rspec
344
356
  rspec-core
345
357
  rspec-expectations
346
358
  rspec-given
347
- rubocop (~> 1.21)
359
+ rubocop
348
360
  rubocop-performance
361
+ rubocop-rspec
349
362
  shoulda
350
363
  simplecov
351
364
  syslog
352
365
 
353
366
  BUNDLED WITH
354
- 2.6.9
367
+ 2.7.2
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,11 +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 :cucumber do
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]
42
+
43
+ desc "Upgrade gems, including bundler and gem"
44
+ task upgrade: :environment do
45
+ sh "gem update --system"
46
+ sh "gem update"
47
+ sh "bundle update --bundler"
48
+ sh "bundle update"
49
+ sh "bundle audit"
50
+ end
@@ -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.2"
19
+ spec.required_ruby_version = ">= 3.4.7"
20
20
 
21
21
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
22
22
  spec.metadata["homepage_uri"] = spec.homepage
@@ -2,6 +2,6 @@
2
2
 
3
3
  class ERB
4
4
  module Processor
5
- VERSION = "1.0.4"
5
+ VERSION = "1.0.11"
6
6
  end
7
7
  end
@@ -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
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christophe Broult
@@ -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.2
75
+ version: 3.4.7
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: 3.6.9
82
+ rubygems_version: 3.7.2
82
83
  specification_version: 4
83
84
  summary: Process all .erb files in a directory tree.
84
85
  test_files: []