lib/gepub.rb in gepub-0.6.4.4 vs lib/gepub.rb in gepub-0.6.4.5

- old
+ new

@@ -4,14 +4,21 @@ def key(x) index(x) end end class String - def force_encodeing(x) + def force_to_bin self end end +else + class String + def force_to_bin + force_encoding('us-ascii') + end + end end + require 'gepub/version' require 'gepub/xml_util' require 'gepub/meta' require 'gepub/datemeta'