@@ -202,7 +202,7 @@ def validate_path_encoding!(path)
202202 return unless /[^\x00 -\x7F ]/ . match? ( path )
203203
204204 raise ArgumentError , format ( "'%<path>s' can only include ASCII characters in its path or " \
205- 'filename in order to be compatible with a wide range of hosts.' , path : path )
205+ 'filename in order to be compatible with a wide range of hosts.' , path :)
206206 end
207207
208208 # Creates a gzip compressed tarball of the build directory.
@@ -235,7 +235,7 @@ def build_package
235235 entry_meta [ :mode ] = orig_mode | min_mode
236236
237237 if entry_meta [ :mode ] != orig_mode
238- logger . debug ( format ( 'Updated permissions of packaged \'%<entry>s\' to %<new_mode>s' , entry : entry ,
238+ logger . debug ( format ( 'Updated permissions of packaged \'%<entry>s\' to %<new_mode>s' , entry :,
239239 new_mode : ( entry_meta [ :mode ] & 0o7777 ) . to_s ( 8 ) ) )
240240 end
241241
@@ -355,7 +355,7 @@ def release_name
355355 #
356356 # @return [nil]
357357 def validate_ustar_path! ( path )
358- raise ArgumentError , format ( "The path '%<path>s' is longer than 256 bytes." , path : path ) if path . bytesize > 256
358+ raise ArgumentError , format ( "The path '%<path>s' is longer than 256 bytes." , path :) if path . bytesize > 256
359359
360360 if path . bytesize <= 100
361361 prefix = ''
@@ -380,7 +380,7 @@ def validate_ustar_path!(path)
380380 raise ArgumentError , \
381381 format ( "'%<path>s' could not be split at a directory separator into two " \
382382 'parts, the first having a maximum length of 155 bytes and the ' \
383- 'second having a maximum length of 100 bytes.' , path : path )
383+ 'second having a maximum length of 100 bytes.' , path :)
384384 end
385385
386386 private
0 commit comments