bin/mapsnatcher in mapsnatcher-0.1.1 vs bin/mapsnatcher in mapsnatcher-0.1.2
- old
+ new
@@ -165,10 +165,10 @@
if File.exists? temp
# Load the backup file
img = Image.read(temp).first
else
blob = URI.open(build_url url, x, y).read
- File.open(temp, "w") { |f| f.write blob }
+ File.open(temp, "wb") { |f| f.write blob }
img = Image.from_blob(blob).first
end
row.push img
end