Skip to content

Commit 36fbb42

Browse files
committed
rubocop: autofix
1 parent 6671506 commit 36fbb42

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121
- "3.3"
2222
- "3.2"
2323
- "3.1"
24+
puppet_gem_version:
25+
- '~> 8.0'
2426
include:
25-
- ruby_version: '3.2'
26-
puppet_gem_version: '~> 8.0' # puppet8'
27+
- ruby_version: '3.1'
28+
puppet_gem_version: '~> 7.0'
2729
runs_on:
2830
- "ubuntu-latest"
2931
- "windows-latest"
@@ -44,9 +46,12 @@ jobs:
4446
- "3.3"
4547
- "3.2"
4648
- "3.1"
49+
puppet_gem_version:
50+
- '~> 8.0'
51+
- 'https://github.com/puppetlabs/puppet'
4752
include:
48-
- ruby_version: '3.2'
49-
puppet_gem_version: 'https://github.com/puppetlabs/puppet' # puppet8'
53+
- ruby_version: '3.1'
54+
puppet_gem_version: '~> 7.0'
5055
runs_on:
5156
- "ubuntu-latest"
5257
- "windows-latest"

lib/puppet/modulebuilder/builder.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def validate_path_encoding!(path)
199199
return unless /[^\x00-\x7F]/.match?(path)
200200

201201
raise ArgumentError, format("'%<path>s' can only include ASCII characters in its path or " \
202-
'filename in order to be compatible with a wide range of hosts.', path: path)
202+
'filename in order to be compatible with a wide range of hosts.', path:)
203203
end
204204

205205
# Creates a gzip compressed tarball of the build directory.
@@ -232,7 +232,7 @@ def build_package
232232
entry_meta[:mode] = orig_mode | min_mode
233233

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

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

357357
if path.bytesize <= 100
358358
prefix = ''
@@ -377,7 +377,7 @@ def validate_ustar_path!(path)
377377
raise ArgumentError, \
378378
format("'%<path>s' could not be split at a directory separator into two " \
379379
'parts, the first having a maximum length of 155 bytes and the ' \
380-
'second having a maximum length of 100 bytes.', path: path)
380+
'second having a maximum length of 100 bytes.', path:)
381381
end
382382

383383
private

0 commit comments

Comments
 (0)