diff --git a/lib/puppet/modulebuilder/builder.rb b/lib/puppet/modulebuilder/builder.rb index eb19d85..179b13b 100644 --- a/lib/puppet/modulebuilder/builder.rb +++ b/lib/puppet/modulebuilder/builder.rb @@ -376,7 +376,7 @@ def validate_ustar_path!(path) return unless path.bytesize > 100 || prefix.bytesize > 155 - raise ArgumentError, \ + raise ArgumentError, format("'%s' could not be split at a directory separator into two " \ 'parts, the first having a maximum length of 155 bytes and the ' \ 'second having a maximum length of 100 bytes.', path: path) diff --git a/puppet-modulebuilder.gemspec b/puppet-modulebuilder.gemspec index f726f5f..c8b4ced 100644 --- a/puppet-modulebuilder.gemspec +++ b/puppet-modulebuilder.gemspec @@ -27,7 +27,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'minitar', '>= 0.9', '< 2' spec.add_dependency 'pathspec', '>= 0.2.1', '< 3.0.0' - spec.add_development_dependency 'voxpupuli-rubocop', '~> 3.0.0' + spec.add_development_dependency 'voxpupuli-rubocop', '~> 4.0.0' spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0') end