lib/jpeg.rb in jpeg-0.3.3 vs lib/jpeg.rb in jpeg-0.4.0
- old
+ new
@@ -1,6 +1,7 @@
require 'tempfile'
-require 'jpeg.so'
+require 'jpeg/jpeg'
+
class Jpeg
def self.open_buffer(str)
tmp = Tempfile::new("ruby-jpeg")
tmp.set_encoding Encoding::BINARY if tmp.respond_to?(:set_encoding)
tmp.puts str