lib/ronin/formatting/extensions/binary/string.rb in ronin-support-0.5.0.rc2 vs lib/ronin/formatting/extensions/binary/string.rb in ronin-support-0.5.0
- old
+ new
@@ -23,12 +23,11 @@
require 'ronin/binary/hexdump/parser'
require 'ronin/binary/template'
begin
require 'zlib'
-rescue Gem::LoadError => e
- raise(e)
rescue ::LoadError
+ $stderr.puts "WARNING: Ruby was not compiled with zlib support"
end
class String
alias unpack_original unpack