diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 168a5cb..08c6abf 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,4 +1,3 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the { "name": "VoxBox", "image": "ghcr.io/voxpupuli/voxbox:latest" diff --git a/.msync.yml b/.msync.yml index 179bafc..7d6d4ee 100644 --- a/.msync.yml +++ b/.msync.yml @@ -2,4 +2,4 @@ # Managed by modulesync - DO NOT EDIT # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ -modulesync_config_version: '10.5.0' +modulesync_config_version: '10.6.0' diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e6a42fb..d54fb20 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,30 +1,42 @@ # This configuration was generated by -# `rubocop --auto-gen-config` -# on 2022-09-17 19:46:13 UTC using RuboCop version 1.22.3. +# `rubocop --auto-gen-config --no-auto-gen-timestamp` +# using RuboCop version 1.85.1. # 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: 46 -# Cop supports --auto-correct. +# This cop supports safe autocorrection (--autocorrect). Layout/ClosingParenthesisIndentation: Exclude: - 'spec/unit/puppet/provider/shellvar/augeas_spec.rb' # Offense count: 4 -# Cop supports --auto-correct. +# This cop supports safe autocorrection (--autocorrect). Layout/EmptyLineAfterGuardClause: Exclude: - 'lib/puppet/provider/shellvar/augeas.rb' - 'lib/puppet/type/shellvar.rb' +# Offense count: 1 +RSpec/LeakyLocalVariable: + Exclude: + - 'spec/unit/puppet/provider/shellvar/augeas_spec.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +RSpec/Output: + Exclude: + - 'spec/spec_helper_local.rb' + # Offense count: 5 -# Cop supports --auto-correct. +# This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Exclude: + - '**/*.arb' - 'lib/puppet/provider/shellvar/augeas.rb' - 'lib/puppet/type/shellvar.rb' - 'spec/spec_helper_local.rb' @@ -32,7 +44,7 @@ Style/FrozenStringLiteralComment: - 'spec/unit/puppet/type/shellvar_type_spec.rb' # Offense count: 3 -# Cop supports --auto-correct. +# This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: Exclude: - 'lib/puppet/provider/shellvar/augeas.rb' @@ -43,7 +55,7 @@ Style/MixinUsage: - 'spec/spec_helper_local.rb' # Offense count: 4 -# Cop supports --auto-correct. +# This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: Methods. Style/RedundantArgument: Exclude: @@ -51,8 +63,8 @@ Style/RedundantArgument: - 'lib/puppet/type/shellvar.rb' # Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods. +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. # AllowedMethods: present?, blank?, presence, try, try! Style/SafeNavigation: Exclude: @@ -60,32 +72,15 @@ Style/SafeNavigation: - 'lib/puppet/type/shellvar.rb' # Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: AllowMethodsWithArguments, IgnoredMethods. -# IgnoredMethods: respond_to, define_method +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments. +# AllowedMethods: define_method Style/SymbolProc: Exclude: - 'lib/puppet/type/shellvar.rb' -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, AllowSafeAssignment. -# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex -Style/TernaryParentheses: - Exclude: - - 'spec/unit/puppet/provider/shellvar/augeas_spec.rb' - -# Offense count: 49 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleForMultiline. -# SupportedStylesForMultiline: comma, consistent_comma, no_comma -Style/TrailingCommaInArguments: - Exclude: - - 'spec/spec_helper_local.rb' - - 'spec/unit/puppet/provider/shellvar/augeas_spec.rb' - # Offense count: 13 -# Cop supports --auto-correct. +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MinSize, WordRegex. # SupportedStyles: percent, brackets Style/WordArray: diff --git a/Gemfile b/Gemfile index bb1be92..0f27fb6 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source ENV['GEM_SOURCE'] || 'https://rubygems.org' group :test do - gem 'voxpupuli-test', '~> 13.0', :require => false + gem 'voxpupuli-test', '~> 14.0', :require => false gem 'puppet_metadata', '~> 6.0', :require => false gem 'ruby-augeas', :require => false gem 'simplecov', :require => false @@ -21,7 +21,7 @@ group :system_tests do end group :release do - gem 'voxpupuli-release', '~> 5.0', :require => false + gem 'voxpupuli-release', '~> 5.3', :require => false end gem 'rake', :require => false diff --git a/spec/spec_helper_local.rb b/spec/spec_helper_local.rb index 0cc3a79..da3fe97 100644 --- a/spec/spec_helper_local.rb +++ b/spec/spec_helper_local.rb @@ -19,6 +19,7 @@ end include RSpec::Mocks::ExampleMethods + Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules') # There's no real need to make this version dependent, but it helps find