--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello group.  New to ruby and needing the ability to unzip EAR files.  Isn't
an EAR file technically just a zip file?  I've been able to untar tarballs
and unzip zip files in Ruby but failed for ear files.  Any pointers
appreciated.


Error msg: bad value for range

def unzip(zipfile, dest)
	zf =3D Zip::ZipFile.open(zipfile)
	zf.each do |entry|
		begin
			file=3Dfile_to_basename(entry)
			File.makedirs("#{dest}/#{file}") unless File.exists? "#{dest}/#{file}"
			zf.extract(entry, "#{dest}/#{entry.name}")
		rescue Exception =3D> e
			log("Error while unzipping: #{dest}/#{file}: #{e}", 1)
		end
	end=20
end =20


--dDRMvlgZJXvWKvBx
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEbN/epXfXwRYlDA0RAhQ+AJ4uadJWeInzNVHNVOK+JS78xyV9IgCfQNXq
ygmlAHWO7CG2Lmkt86wqqq8=
=bstn
-----END PGP SIGNATURE-----

--dDRMvlgZJXvWKvBx--

Hello group.  New to ruby and needing the ability to unzip EAR files.  Isn't
an EAR file technically just a zip file?  I've been able to untar tarballs
and unzip zip files in Ruby but failed for ear files.  Any pointers
appreciated.


Error msg: bad value for range

def unzip(zipfile, dest)
	zf =3D Zip::ZipFile.open(zipfile)
	zf.each do |entry|
		begin
			file=3Dfile_to_basename(entry)
			File.makedirs("#{dest}/#{file}") unless File.exists? "#{dest}/#{file}"
			zf.extract(entry, "#{dest}/#{entry.name}")
		rescue Exception =3D> e
			log("Error while unzipping: #{dest}/#{file}: #{e}", 1)
		end
	end=20
end =20

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEbN/epXfXwRYlDA0RAhQ+AJ4uadJWeInzNVHNVOK+JS78xyV9IgCfQNXq
ygmlAHWO7CG2Lmkt86wqqq8=
=bstn
-----END PGP SIGNATURE-----