diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d2da840..4420d93 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,17 +1,11 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-05-09 13:16:12 UTC using RuboCop version 1.50.2. +# on 2023-10-05 19:25:42 UTC using RuboCop version 1.54.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Performance/StringInclude: - Exclude: - - 'lib/voxpupuli/release/rake_tasks.rb' - # Offense count: 1 # Configuration parameters: AllowedConstants. Style/Documentation: @@ -28,40 +22,6 @@ Style/EmptyElse: Exclude: - 'lib/voxpupuli/release/rake_tasks.rb' -# Offense count: 6 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: always, always_true, never -Style/FrozenStringLiteralComment: - Exclude: - - 'Gemfile' - - 'Rakefile' - - 'lib/voxpupuli/release.rb' - - 'lib/voxpupuli/release/rake_tasks.rb' - - 'lib/voxpupuli/release/version.rb' - - 'voxpupuli-release.gemspec' - -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Style/LineEndConcatenation: - Exclude: - - 'lib/voxpupuli/release/rake_tasks.rb' - -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: literals, strict -Style/MutableConstant: - Exclude: - - 'lib/voxpupuli/release/version.rb' - -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: Mode. -Style/StringConcatenation: - Exclude: - - 'lib/voxpupuli/release/rake_tasks.rb' - # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. diff --git a/Gemfile b/Gemfile index f01d3c8..7b3bb6b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source ENV['GEM_SOURCE'] || 'https://rubygems.org' gemspec diff --git a/Rakefile b/Rakefile index 26eea11..ccc0abd 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + $LOAD_PATH.unshift File.expand_path('lib', __dir__) require 'voxpupuli/release/version' diff --git a/lib/voxpupuli/release.rb b/lib/voxpupuli/release.rb index 58e1914..28c5b75 100644 --- a/lib/voxpupuli/release.rb +++ b/lib/voxpupuli/release.rb @@ -1,2 +1,4 @@ +# frozen_string_literal: true + require 'voxpupuli/release/rake_tasks' require 'voxpupuli/release/version' diff --git a/lib/voxpupuli/release/rake_tasks.rb b/lib/voxpupuli/release/rake_tasks.rb index 4cb274c..39f1b70 100644 --- a/lib/voxpupuli/release/rake_tasks.rb +++ b/lib/voxpupuli/release/rake_tasks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'puppet_blacksmith/rake_tasks' class GCGConfig @@ -53,7 +55,7 @@ def self.future_release m = Blacksmith::Modulefile.new v = m.version unless v.match?(/^\d+\.\d+\.\d+$/) - raise "Refusing to release an RC or build-release (#{v}).\n" + + raise "Refusing to release an RC or build-release (#{v}).\n" \ 'Please set a semver *release* version.' end @@ -142,7 +144,7 @@ def self.future_release # Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715 require 'rbconfig' - unless RbConfig::CONFIG['host_os'].match?(/windows/) + unless RbConfig::CONFIG['host_os'].include?('windows') puts 'Fixing line endings...' log.gsub!("\r\n", "\n") end diff --git a/lib/voxpupuli/release/version.rb b/lib/voxpupuli/release/version.rb index 5cf49e5..f3cb7be 100644 --- a/lib/voxpupuli/release/version.rb +++ b/lib/voxpupuli/release/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Voxpupuli module Release VERSION = '3.0.0' diff --git a/voxpupuli-release.gemspec b/voxpupuli-release.gemspec index b5ba029..f5b5b5c 100644 --- a/voxpupuli-release.gemspec +++ b/voxpupuli-release.gemspec @@ -1,3 +1,5 @@ +# frozen_string_literal: true + $LOAD_PATH.unshift File.expand_path('lib', __dir__) require 'voxpupuli/release/version' @@ -20,5 +22,5 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'puppet-strings', '~> 4' s.add_runtime_dependency 'rake', '~> 13.0', '>= 13.0.6' - s.add_development_dependency 'voxpupuli-rubocop', '~> 1.2' + s.add_development_dependency 'voxpupuli-rubocop', '~> 2.0.0' end