Skip to content

Commit

Permalink
Merge pull request #280 from voxpupuli/dependabot/bundler/voxpupuli-r…
Browse files Browse the repository at this point in the history
…ubocop-tw-2.0.0

Update voxpupuli-rubocop requirement from ~> 1.3.0 to ~> 2.0.0
  • Loading branch information
bastelfreak authored Jul 14, 2023
2 parents 2654678 + 2bb1a52 commit 4dec471
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ task :table do
os_versions.each do |label|
fvs = facter_versions.map { |facter_version| os_facter_matrix[label][facter_version] || 0 }
row = "| #{label.ljust(os_version_width)} |"
fvs.each { |fv| row += (fv > 0 ? " #{fv.to_s.center(3)} |" : ' |') }
fvs.each { |fv| row += ((fv > 0) ? " #{fv.to_s.center(3)} |" : ' |') }
new_readme << row
end

Expand Down
2 changes: 1 addition & 1 deletion facterdb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'

s.add_development_dependency 'voxpupuli-rubocop', '~> 1.3.0'
s.add_development_dependency 'voxpupuli-rubocop', '~> 2.0.0'
s.add_runtime_dependency 'facter', '< 5.0.0'
s.add_runtime_dependency 'jgrep'
end
12 changes: 6 additions & 6 deletions rakelib/rhel_alts.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ task :rhel_alts do
Dir[File.join(__dir__, '..', 'facts', '*', 'centos-*-x86_64.facts')].each do |f|
centos_factset = File.read(f)

rhel_path = f.gsub(/centos-/, 'redhat-')
File.write(rhel_path, centos_factset.gsub(/CentOS/, 'RedHat'))
rhel_path = f.gsub('centos-', 'redhat-')
File.write(rhel_path, centos_factset.gsub('CentOS', 'RedHat'))

oracle_path = f.gsub(/centos-/, 'oraclelinux-')
File.write(oracle_path, centos_factset.gsub(/CentOS/, 'OracleLinux'))
oracle_path = f.gsub('centos-', 'oraclelinux-')
File.write(oracle_path, centos_factset.gsub('CentOS', 'OracleLinux'))

# Scientific isn't going to be updated to 8
next unless File.basename(f)[/-(\d+)-/, 1].to_i <= 7

scientific_path = f.gsub(/centos-/, 'scientific-')
File.write(scientific_path, centos_factset.gsub(/CentOS/, 'Scientific'))
scientific_path = f.gsub('centos-', 'scientific-')
File.write(scientific_path, centos_factset.gsub('CentOS', 'Scientific'))
end
end

0 comments on commit 4dec471

Please sign in to comment.