Skip to content

Commit

Permalink
rubocop: autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Sep 19, 2024
1 parent 6671506 commit f4b8094
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ jobs:
- "3.3"
- "3.2"
- "3.1"
include:
- ruby_version: '3.2'
puppet_gem_version: '~> 8.0' # puppet8'
puppet_gem_version:
- '~> 8.0'
runs_on:
- "ubuntu-latest"
- "windows-latest"
Expand Down
8 changes: 4 additions & 4 deletions lib/puppet/modulebuilder/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def validate_path_encoding!(path)
return unless /[^\x00-\x7F]/.match?(path)

raise ArgumentError, format("'%<path>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.
Expand Down Expand Up @@ -232,7 +232,7 @@ def build_package
entry_meta[:mode] = orig_mode | min_mode

if entry_meta[:mode] != orig_mode
logger.debug(format('Updated permissions of packaged \'%<entry>s\' to %<new_mode>s', entry: entry,
logger.debug(format('Updated permissions of packaged \'%<entry>s\' to %<new_mode>s', entry:,
new_mode: (entry_meta[:mode] & 0o7777).to_s(8)))
end

Expand Down Expand Up @@ -352,7 +352,7 @@ def release_name
#
# @return [nil]
def validate_ustar_path!(path)
raise ArgumentError, format("The path '%<path>s' is longer than 256 bytes.", path: path) if path.bytesize > 256
raise ArgumentError, format("The path '%<path>s' is longer than 256 bytes.", path:) if path.bytesize > 256

if path.bytesize <= 100
prefix = ''
Expand All @@ -377,7 +377,7 @@ def validate_ustar_path!(path)
raise ArgumentError, \
format("'%<path>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
Expand Down

0 comments on commit f4b8094

Please sign in to comment.