spec/support/png_suite.rb in sugar_png-0.4.1 vs spec/support/png_suite.rb in sugar_png-0.5.0
- old
+ new
@@ -1,5 +1,6 @@
+#coding: binary
module PNGSuite
PNG_SUITE_URL = "http://www.schaik.com/pngsuite/PngSuite-2011apr25.tgz"
class << self
attr_accessor :dir
@@ -18,11 +19,11 @@
puts "[.] fetching PNG test-suite from #{PNG_SUITE_URL} .. "
data = open(PNG_SUITE_URL).read
fname = File.join(dir, "png_suite.tgz")
File.open(fname, "wb"){ |f| f<<data }
- puts "[.] unpacking .. "
- system "tar", "xzf", fname, "-C", dir
+ puts "[.] unpacking #{fname} .. "
+ system "tar", "xf", fname, "-C", dir
end
def each *prefixes
Dir[File.join(dir,"*.png")].each do |fname|
if prefixes.empty?