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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb7fa5f9cc69b67a9339f9f7170c8901999d0007e6b6e74de7d7b55b36bc09d3
4
- data.tar.gz: c5158bda3a8ac90ec2255c3bfda5f8c3dbb8e9815bd74b9d5df0f8bfa601024e
3
+ metadata.gz: a972fe37b721aec7b586be96a1ed98e98cdfb70d9dd869be0319a3bf83ac25a1
4
+ data.tar.gz: eb06d72f5653ea1c5eb69182599fa4bbd9750cf7039ec8f48aa1186c501fc90a
5
5
  SHA512:
6
- metadata.gz: b691e41b1e7ba08ad1a732f81333febe97cc68e30244ad7f8aea76b7660b7af5b47ae60542610f797340cc25bf9bc6f673dc893a19dd27e0b83583a19a8c99d8
7
- data.tar.gz: 969de4e7e4f840c590c0758af55a53bb28838b05cf63a84d9c389bd99b5493df23cb06a5020f25c8531a906d67be4da014b5e888929e4734c83f18d6f47a87e0
6
+ metadata.gz: 3f05bc8c520110b2c5140559079fabc9f9926fc29dc137b96da92294a323f5ac7ea1c08529ef2d1fb8dd826663152c30e3288812f2d6d17f53123aa0a9c526b9
7
+ data.tar.gz: aba5218bdac249c22e8f892e5f879394b952b5e6d002126e24df1fb670bd75191cd1b887c120a9b03dbd8a7537979e62ebf26ac2c9f426278e8605534d35fa35
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.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
- URI.open uri do |input|
1060
- tmpdir.mkdir unless tmpdir.directory?
1061
- path.open('w') do |output|
1062
- while buf = input.read(2 ** 16)
1063
- output.write buf
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubysketch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - xordog