rubysketch 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rubysketch/processing.rb +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a972fe37b721aec7b586be96a1ed98e98cdfb70d9dd869be0319a3bf83ac25a1
|
4
|
+
data.tar.gz: eb06d72f5653ea1c5eb69182599fa4bbd9750cf7039ec8f48aa1186c501fc90a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f05bc8c520110b2c5140559079fabc9f9926fc29dc137b96da92294a323f5ac7ea1c08529ef2d1fb8dd826663152c30e3288812f2d6d17f53123aa0a9c526b9
|
7
|
+
data.tar.gz: aba5218bdac249c22e8f892e5f879394b952b5e6d002126e24df1fb670bd75191cd1b887c120a9b03dbd8a7537979e62ebf26ac2c9f426278e8605534d35fa35
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
@@ -1056,11 +1056,14 @@ module RubySketch
|
|
1056
1056
|
path = tmpdir + Digest::SHA1.hexdigest(uri)
|
1057
1057
|
path = path.sub_ext ext
|
1058
1058
|
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1059
|
+
unless path.file?
|
1060
|
+
p "getting #{uri}"
|
1061
|
+
URI.open uri do |input|
|
1062
|
+
tmpdir.mkdir unless tmpdir.directory?
|
1063
|
+
path.open('w') do |output|
|
1064
|
+
while buf = input.read(2 ** 16)
|
1065
|
+
output.write buf
|
1066
|
+
end
|
1064
1067
|
end
|
1065
1068
|
end
|
1066
1069
|
end
|