File tree 3 files changed +7
-9
lines changed
lib/puppetlabs_spec_helper
3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,9 @@ group :development do
30
30
gem 'rake'
31
31
gem 'rspec' , '~> 3.1'
32
32
gem 'rspec-its' , '~> 1.0'
33
- gem 'rubocop' , '~> 1.50 .0' , require : false
34
- gem 'rubocop-rspec' , '~> 2.19 ' , require : false
33
+ gem 'rubocop' , '~> 1.64 .0' , require : false
34
+ gem 'rubocop-rspec' , '~> 3.0 ' , require : false
35
35
gem 'rubocop-performance' , '~> 1.16' , require : false
36
- gem 'rubocop-factory_bot' , '!= 2.26.0' , require : false
37
- gem 'rubocop-rspec_rails' , '!= 2.29.0' , require : false
38
36
39
37
gem 'fakefs'
40
38
gem 'yard'
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def function_method(name, parts = {})
39
39
# exposed hack.
40
40
return nil unless Puppet ::Parser ::Functions . function ( name )
41
41
42
- scope . method ( "function_#{ name } " . to_sym )
42
+ scope . method ( : "function_#{ name } ")
43
43
end
44
44
module_function :function_method
45
45
end
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ def download_items(items)
317
317
end
318
318
end
319
319
# wait for all the threads to finish
320
- items . each { |_remote , opts | opts [ :thread ] . join }
320
+ items . each_value { |opts | opts [ :thread ] . join }
321
321
end
322
322
323
323
# @param target [String] - the target directory
@@ -427,12 +427,12 @@ def download_module(remote, opts)
427
427
428
428
desc 'Clean up the fixtures directory'
429
429
task :spec_clean do
430
- repositories . each do |_remote , opts |
430
+ repositories . each_value do |opts |
431
431
target = opts [ 'target' ]
432
432
FileUtils . rm_rf ( target )
433
433
end
434
434
435
- forge_modules . each do |_remote , opts |
435
+ forge_modules . each_value do |opts |
436
436
target = opts [ 'target' ]
437
437
FileUtils . rm_rf ( target )
438
438
end
@@ -446,7 +446,7 @@ def download_module(remote, opts)
446
446
447
447
desc 'Clean up any fixture symlinks'
448
448
task :spec_clean_symlinks do
449
- fixtures ( 'symlinks' ) . each do |_source , opts |
449
+ fixtures ( 'symlinks' ) . each_value do |opts |
450
450
target = opts [ 'target' ]
451
451
FileUtils . rm_f ( target )
452
452
end
You can’t perform that action at this time.
0 commit comments