Skip to content

Commit 0948dd0

Browse files
authored
Merge pull request #467 from puppetlabs/revert-460-maint_exclude_rubocop_versions
Revert "(maint) Exclude breaking rubocop versions"
2 parents 64c4bee + 02f4c47 commit 0948dd0

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

Gemfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ group :development do
3030
gem 'rake'
3131
gem 'rspec', '~> 3.1'
3232
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
3535
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
3836

3937
gem 'fakefs'
4038
gem 'yard'

lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def function_method(name, parts = {})
3939
# exposed hack.
4040
return nil unless Puppet::Parser::Functions.function(name)
4141

42-
scope.method("function_#{name}".to_sym)
42+
scope.method(:"function_#{name}")
4343
end
4444
module_function :function_method
4545
end

lib/puppetlabs_spec_helper/tasks/fixtures.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def download_items(items)
317317
end
318318
end
319319
# wait for all the threads to finish
320-
items.each { |_remote, opts| opts[:thread].join }
320+
items.each_value { |opts| opts[:thread].join }
321321
end
322322

323323
# @param target [String] - the target directory
@@ -427,12 +427,12 @@ def download_module(remote, opts)
427427

428428
desc 'Clean up the fixtures directory'
429429
task :spec_clean do
430-
repositories.each do |_remote, opts|
430+
repositories.each_value do |opts|
431431
target = opts['target']
432432
FileUtils.rm_rf(target)
433433
end
434434

435-
forge_modules.each do |_remote, opts|
435+
forge_modules.each_value do |opts|
436436
target = opts['target']
437437
FileUtils.rm_rf(target)
438438
end
@@ -446,7 +446,7 @@ def download_module(remote, opts)
446446

447447
desc 'Clean up any fixture symlinks'
448448
task :spec_clean_symlinks do
449-
fixtures('symlinks').each do |_source, opts|
449+
fixtures('symlinks').each_value do |opts|
450450
target = opts['target']
451451
FileUtils.rm_f(target)
452452
end

0 commit comments

Comments
 (0)