diff --git a/lib/puppet/modulebuilder/builder.rb b/lib/puppet/modulebuilder/builder.rb index af7cea1..95b1700 100644 --- a/lib/puppet/modulebuilder/builder.rb +++ b/lib/puppet/modulebuilder/builder.rb @@ -198,7 +198,7 @@ def validate_path_encoding!(path) return unless /[^\x00-\x7F]/.match?(path) raise ArgumentError, format("'%s' can only include ASCII characters in its path or " \ - 'filename in order to be compatible with a wide range of hosts.', path: path) + 'filename in order to be compatible with a wide range of hosts.', path:) end # Creates a gzip compressed tarball of the build directory. @@ -231,7 +231,7 @@ def build_package entry_meta[:mode] = orig_mode | min_mode if entry_meta[:mode] != orig_mode - logger.debug(format('Updated permissions of packaged \'%s\' to %s', entry: entry, + logger.debug(format('Updated permissions of packaged \'%s\' to %s', entry:, new_mode: (entry_meta[:mode] & 0o7777).to_s(8))) end @@ -351,7 +351,7 @@ def release_name # # @return [nil] def validate_ustar_path!(path) - raise ArgumentError, format("The path '%s' is longer than 256 bytes.", path: path) if path.bytesize > 256 + raise ArgumentError, format("The path '%s' is longer than 256 bytes.", path:) if path.bytesize > 256 if path.bytesize <= 100 prefix = '' @@ -376,7 +376,7 @@ def validate_ustar_path!(path) 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) + 'second having a maximum length of 100 bytes.', path:) end private