@@ -198,7 +198,7 @@ def validate_path_encoding!(path)
198198 return unless /[^\x00 -\x7F ]/ . match? ( path )
199199
200200 raise ArgumentError , format ( "'%<path>s' can only include ASCII characters in its path or " \
201- 'filename in order to be compatible with a wide range of hosts.' , path : path )
201+ 'filename in order to be compatible with a wide range of hosts.' , path :)
202202 end
203203
204204 # Creates a gzip compressed tarball of the build directory.
@@ -231,7 +231,7 @@ def build_package
231231 entry_meta [ :mode ] = orig_mode | min_mode
232232
233233 if entry_meta [ :mode ] != orig_mode
234- logger . debug ( format ( 'Updated permissions of packaged \'%<entry>s\' to %<new_mode>s' , entry : entry ,
234+ logger . debug ( format ( 'Updated permissions of packaged \'%<entry>s\' to %<new_mode>s' , entry :,
235235 new_mode : ( entry_meta [ :mode ] & 0o7777 ) . to_s ( 8 ) ) )
236236 end
237237
@@ -351,7 +351,7 @@ def release_name
351351 #
352352 # @return [nil]
353353 def validate_ustar_path! ( path )
354- raise ArgumentError , format ( "The path '%<path>s' is longer than 256 bytes." , path : path ) if path . bytesize > 256
354+ raise ArgumentError , format ( "The path '%<path>s' is longer than 256 bytes." , path :) if path . bytesize > 256
355355
356356 if path . bytesize <= 100
357357 prefix = ''
@@ -376,7 +376,7 @@ def validate_ustar_path!(path)
376376 raise ArgumentError , \
377377 format ( "'%<path>s' could not be split at a directory separator into two " \
378378 'parts, the first having a maximum length of 155 bytes and the ' \
379- 'second having a maximum length of 100 bytes.' , path : path )
379+ 'second having a maximum length of 100 bytes.' , path :)
380380 end
381381
382382 private
0 commit comments