@@ -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