lib/drydock/tar_writer.rb in dry-dock-0.1.5 vs lib/drydock/tar_writer.rb in dry-dock-0.1.6
- old
+ new
@@ -3,10 +3,10 @@
class TarWriter < ::Gem::Package::TarWriter
def add_entry(name, mode: 0644, mtime: Time.now, uid: 0, gid: 0)
check_closed
- raise Gem::Package::NonSeekableIO unless @io.respond_to?(:pos=)
+ fail Gem::Package::NonSeekableIO unless @io.respond_to?(:pos=)
name, prefix = split_name(name)
init_pos = @io.pos
@io.write "\0" * 512 # placeholder for the header