erb-processor 1.0.5 → 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: 2e2f6e7c12bdcf80c77caedc468101bdde47756db42bf2cbb7ffc2e5aa1a72bc
4
- data.tar.gz: '098db12ce50580f739d655c7c6d83b404d2d40fa86c68fc1ecf05a9246e457bf'
3
+ metadata.gz: 40ea5a4e4b8f731387703f0001790a2f3361fc970726f65d9f8f2396986338e6
4
+ data.tar.gz: 57df7a2342fbd88bcd488936af46b10c9923b9f26203fea71f39216628cde3ce
5
5
  SHA512:
6
- metadata.gz: 76cde84f3c825739d2d7f79dbe40b4787b58619e3c73bc2a18e86f23941ede58f573ac38d1bb9fe72db289674080f6858462e57bc07fd41df47181aa35c8068a
7
- data.tar.gz: b54c10d6ee666949a5c006ca768ae9cb943b059f0b65a8a0eb949c590fd78be2b222d19e0e36a88f11ddb682e974d239f268cfc384462b95d3d909b49a3b8b39
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,44 +1,46 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- erb-processor (1.0.5)
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.1)
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
28
  cucumber (>= 8.0, < 11.0)
29
- rspec-expectations (~> 3.4)
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 (10.0.0)
43
+ cucumber (10.1.1)
42
44
  base64 (~> 0.2)
43
45
  builder (~> 3.2)
44
46
  cucumber-ci-environment (> 9, < 11)
@@ -51,25 +53,25 @@ GEM
51
53
  multi_test (~> 1.1)
52
54
  sys-uname (~> 1.3)
53
55
  cucumber-ci-environment (10.0.1)
54
- cucumber-core (15.1.0)
55
- cucumber-gherkin (> 27, < 31)
56
- cucumber-messages (> 26, < 29)
57
- cucumber-tag-expressions (> 5, < 7)
56
+ cucumber-core (15.3.0)
57
+ cucumber-gherkin (> 27, < 35)
58
+ cucumber-messages (> 26, < 30)
59
+ cucumber-tag-expressions (> 5, < 9)
58
60
  cucumber-cucumber-expressions (18.0.1)
59
61
  bigdecimal
60
- cucumber-gherkin (30.0.4)
61
- cucumber-messages (> 25, < 28)
62
- cucumber-html-formatter (21.13.0)
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
66
  cucumber-messages (27.2.0)
65
- cucumber-tag-expressions (6.1.2)
66
- date (3.4.1)
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.2)
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)
@@ -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.1.1)
99
- git (4.0.4)
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)
@@ -144,7 +148,7 @@ GEM
144
148
  i18n (1.14.7)
145
149
  concurrent-ruby (~> 1.0)
146
150
  io-console (0.8.1)
147
- json (2.13.2)
151
+ json (2.16.0)
148
152
  juwelier (2.4.9)
149
153
  builder
150
154
  bundler
@@ -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.3.3)
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)
183
+ minitest (5.26.2)
179
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.9)
190
+ nokogiri (1.18.10)
186
191
  mini_portile2 (~> 2.8.2)
187
192
  racc (~> 1.4)
188
- nokogiri (1.18.9-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)
@@ -205,10 +210,10 @@ GEM
205
210
  rubocop-rake (~> 0.5)
206
211
  rubocop-rspec (~> 2.0)
207
212
  parallel (1.27.0)
208
- parser (3.3.9.0)
213
+ parser (3.3.10.0)
209
214
  ast (~> 2.4.1)
210
215
  racc
211
- prism (1.4.0)
216
+ prism (1.6.0)
212
217
  process_executer (4.0.0)
213
218
  track_open_instances (~> 0.1)
214
219
  pry (0.15.2)
@@ -217,26 +222,27 @@ GEM
217
222
  psych (5.2.6)
218
223
  date
219
224
  stringio
220
- public_suffix (6.0.2)
225
+ public_suffix (7.0.0)
221
226
  racc (1.8.1)
222
- rack (3.2.0)
227
+ rack (3.2.4)
223
228
  rainbow (3.1.1)
224
- rake (13.3.0)
229
+ rake (13.3.1)
225
230
  rb-fsevent (0.11.2)
226
231
  rb-inotify (0.11.1)
227
232
  ffi (~> 1.0)
228
- rchardet (1.9.0)
229
- rdoc (6.14.2)
233
+ rchardet (1.10.0)
234
+ rdoc (6.16.1)
230
235
  erb
231
236
  psych (>= 4.0.0)
232
- regexp_parser (2.10.0)
233
- reline (0.6.2)
237
+ tsort
238
+ regexp_parser (2.11.3)
239
+ reline (0.6.3)
234
240
  io-console (~> 0.5)
235
- rspec (3.13.1)
241
+ rspec (3.13.2)
236
242
  rspec-core (~> 3.13.0)
237
243
  rspec-expectations (~> 3.13.0)
238
244
  rspec-mocks (~> 3.13.0)
239
- rspec-core (3.13.5)
245
+ rspec-core (3.13.6)
240
246
  rspec-support (~> 3.13.0)
241
247
  rspec-expectations (3.13.5)
242
248
  diff-lcs (>= 1.2.0, < 2.0)
@@ -244,11 +250,11 @@ GEM
244
250
  rspec-given (3.8.2)
245
251
  given_core (= 3.8.2)
246
252
  rspec (>= 2.14.0)
247
- rspec-mocks (3.13.5)
253
+ rspec-mocks (3.13.7)
248
254
  diff-lcs (>= 1.2.0, < 2.0)
249
255
  rspec-support (~> 3.13.0)
250
- rspec-support (3.13.4)
251
- rubocop (1.79.1)
256
+ rspec-support (3.13.6)
257
+ rubocop (1.81.7)
252
258
  json (~> 2.3)
253
259
  language_server-protocol (~> 3.17.0.2)
254
260
  lint_roller (~> 1.1.0)
@@ -256,23 +262,23 @@ GEM
256
262
  parser (>= 3.3.0.2)
257
263
  rainbow (>= 2.2.2, < 4.0)
258
264
  regexp_parser (>= 2.9.3, < 3.0)
259
- rubocop-ast (>= 1.46.0, < 2.0)
265
+ rubocop-ast (>= 1.47.1, < 2.0)
260
266
  ruby-progressbar (~> 1.7)
261
267
  unicode-display_width (>= 2.4.0, < 4.0)
262
- rubocop-ast (1.46.0)
268
+ rubocop-ast (1.48.0)
263
269
  parser (>= 3.3.7.2)
264
270
  prism (~> 1.4)
265
271
  rubocop-capybara (2.22.1)
266
272
  lint_roller (~> 1.1)
267
273
  rubocop (~> 1.72, >= 1.72.1)
268
- rubocop-factory_bot (2.27.1)
274
+ rubocop-factory_bot (2.28.0)
269
275
  lint_roller (~> 1.1)
270
276
  rubocop (~> 1.72, >= 1.72.1)
271
- rubocop-performance (1.25.0)
277
+ rubocop-performance (1.26.1)
272
278
  lint_roller (~> 1.1)
273
279
  rubocop (>= 1.75.0, < 2.0)
274
- rubocop-ast (>= 1.38.0, < 2.0)
275
- rubocop-rails (2.32.0)
280
+ rubocop-ast (>= 1.47.1, < 2.0)
281
+ rubocop-rails (2.34.2)
276
282
  activesupport (>= 4.2.0)
277
283
  lint_roller (~> 1.1)
278
284
  rack (>= 1.1)
@@ -306,20 +312,22 @@ GEM
306
312
  simplecov-html (0.13.2)
307
313
  simplecov_json_formatter (0.1.4)
308
314
  sorcerer (2.0.1)
309
- stringio (3.1.7)
310
- sys-uname (1.3.1)
315
+ stringio (3.1.8)
316
+ sys-uname (1.4.1)
311
317
  ffi (~> 1.1)
318
+ memoist3 (~> 1.0.0)
312
319
  syslog (0.3.0)
313
320
  logger
314
321
  thor (1.4.0)
315
322
  thread_safe (0.3.6)
316
323
  track_open_instances (0.1.15)
324
+ tsort (0.2.0)
317
325
  tzinfo (2.0.6)
318
326
  concurrent-ruby (~> 1.0)
319
- unicode-display_width (3.1.4)
320
- unicode-emoji (~> 4.0, >= 4.0.4)
321
- unicode-emoji (4.0.4)
322
- 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)
323
331
  yard (0.9.37)
324
332
 
325
333
  PLATFORMS
@@ -329,8 +337,10 @@ PLATFORMS
329
337
  DEPENDENCIES
330
338
  aruba
331
339
  bundler
340
+ bundler-audit
332
341
  cucumber
333
342
  erb-processor!
343
+ gem-release
334
344
  guard
335
345
  guard-bundler
336
346
  guard-cucumber
@@ -340,17 +350,18 @@ DEPENDENCIES
340
350
  juwelier
341
351
  panolint
342
352
  rack
343
- rake (~> 13.0)
353
+ rake
344
354
  rdoc
345
- rspec (~> 3.0)
355
+ rspec
346
356
  rspec-core
347
357
  rspec-expectations
348
358
  rspec-given
349
- rubocop (~> 1.21)
359
+ rubocop
350
360
  rubocop-performance
361
+ rubocop-rspec
351
362
  shoulda
352
363
  simplecov
353
364
  syslog
354
365
 
355
366
  BUNDLED WITH
356
- 2.7.1
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,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 :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]
34
42
 
35
- task :upgrade do
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
- end
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.5"
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.5
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.7.1
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: []