has_image 0.2.1 → 0.2.2
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.
- data/CHANGELOG +3 -0
 - data/lib/has_image/storage.rb +1 -2
 - data/test/processor_test.rb +1 -1
 - metadata +2 -2
 
    
        data/CHANGELOG
    CHANGED
    
    
    
        data/lib/has_image/storage.rb
    CHANGED
    
    | 
         @@ -140,9 +140,8 @@ module HasImage 
     | 
|
| 
       140 
140 
     | 
    
         
             
                def install_main_image(id, name)
         
     | 
| 
       141 
141 
     | 
    
         
             
                  FileUtils.mkdir_p path_for(id)
         
     | 
| 
       142 
142 
     | 
    
         
             
                  main = processor.resize(@temp_file, @options[:resize_to])
         
     | 
| 
       143 
     | 
    
         
            -
                  main.tempfile.close
         
     | 
| 
       144 
143 
     | 
    
         
             
                  file = File.open(File.join(path_for(id), file_name_for(name)), "w")
         
     | 
| 
       145 
     | 
    
         
            -
                  file.write(IO.read(main. 
     | 
| 
      
 144 
     | 
    
         
            +
                  file.write(IO.read(main.path))
         
     | 
| 
       146 
145 
     | 
    
         
             
                  file.close
         
     | 
| 
       147 
146 
     | 
    
         
             
                  main.tempfile.close!
         
     | 
| 
       148 
147 
     | 
    
         
             
                end
         
     | 
    
        data/test/processor_test.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: has_image
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Norman Clarke
         
     | 
| 
         @@ -9,7 +9,7 @@ autorequire: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            date: 2008- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2008-09-10 00:00:00 -03:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |