rubysketch 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rubysketch/processing.rb +1 -2
- 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: aeebec01d05ee86260f24da80e85d4ac04bb41029145d8d47e7acc800919e00d
         | 
| 4 | 
            +
              data.tar.gz: d227536ed72e88ef159c347c8ace10ff20532d52cbeb4588956f0c6e794283d7
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9e144994fd11251d589853d0c6439b2d9924a4e76751b6c6147ad1bc4ebb6081d720f1bca5a77b9c1e69228fb4ab87b4807d463db3ca565243a1261f098caed1
         | 
| 7 | 
            +
              data.tar.gz: fd03275e8730519d1095d60f1dbbca5a33ddc93f2e412ff32548f22c678cbe614bdd42fd9166de7c8dac9370d698a95482c2f71575d8c6bdac581d57bd5722fb
         | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.2. | 
| 1 | 
            +
            0.2.5
         | 
| @@ -1054,14 +1054,13 @@ module RubySketch | |
| 1054 1054 | 
             
                # @private
         | 
| 1055 1055 | 
             
                private def getImage__ (uri, ext)
         | 
| 1056 1056 | 
             
                  ext ||= File.extname uri
         | 
| 1057 | 
            -
                  raise "unsupported image type" unless ext =~ /^\.?(png)$/i
         | 
| 1057 | 
            +
                  raise "unsupported image type -- #{ext}" unless ext =~ /^\.?(png)$/i
         | 
| 1058 1058 |  | 
| 1059 1059 | 
             
                  tmpdir = Pathname(Dir.tmpdir) + Digest::SHA1.hexdigest(self.class.name)
         | 
| 1060 1060 | 
             
                  path   = tmpdir + Digest::SHA1.hexdigest(uri)
         | 
| 1061 1061 | 
             
                  path   = path.sub_ext ext
         | 
| 1062 1062 |  | 
| 1063 1063 | 
             
                  unless path.file?
         | 
| 1064 | 
            -
                    p "getting #{uri}"
         | 
| 1065 1064 | 
             
                    URI.open uri do |input|
         | 
| 1066 1065 | 
             
                      tmpdir.mkdir unless tmpdir.directory?
         | 
| 1067 1066 | 
             
                      path.open('w') do |output|
         |