Fix war generation

bug/bundler_fix
Meatballs 2013-08-23 20:06:57 +01:00
parent cf5ddfeebf
commit 09ceeb5de2
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ class Entry
attr_reader :data
def initialize(fname, data, compmeth, timestamp=nil, attrs=nil, xtra=nil, comment=nil)
@name = fname.unpack("C*").pack("C*")
@data = data.unpack("C*").pack("C*")
@name = fname.unpack("C*").pack("C*") if fname
@data = data.unpack("C*").pack("C*") if data
@xtra = xtra
@xtra ||= ''
@comment = comment