content_server 1.3.0 → 1.3.1
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/lib/content_data/content_data.rb +3 -3
 - data/lib/content_server/version.rb +1 -1
 - metadata +1 -1
 
| 
         @@ -253,11 +253,11 @@ module ContentData 
     | 
|
| 
       253 
253 
     | 
    
         
             
                  file = File.open(filename, 'w')
         
     | 
| 
       254 
254 
     | 
    
         
             
                  file.write("#{@contents_info.length}\n")
         
     | 
| 
       255 
255 
     | 
    
         
             
                  each_content { |checksum, size, content_mod_time|
         
     | 
| 
       256 
     | 
    
         
            -
                    file.write("#{checksum},#{size},#{ 
     | 
| 
      
 256 
     | 
    
         
            +
                    file.write("#{checksum},#{size},#{content_mod_time}\n")
         
     | 
| 
       257 
257 
     | 
    
         
             
                  }
         
     | 
| 
       258 
258 
     | 
    
         
             
                  file.write("#{@instances_info.length}\n")
         
     | 
| 
       259 
259 
     | 
    
         
             
                  each_instance { |checksum, size, _, instance_mod_time, server, path|
         
     | 
| 
       260 
     | 
    
         
            -
                    file.write("#{checksum},#{size},#{server},#{path},#{ 
     | 
| 
      
 260 
     | 
    
         
            +
                    file.write("#{checksum},#{size},#{server},#{path},#{instance_mod_time}\n")
         
     | 
| 
       261 
261 
     | 
    
         
             
                  }
         
     | 
| 
       262 
262 
     | 
    
         
             
                  file.close
         
     | 
| 
       263 
263 
     | 
    
         
             
                end
         
     | 
| 
         @@ -290,7 +290,7 @@ module ContentData 
     | 
|
| 
       290 
290 
     | 
    
         
             
                                   parameters[1].to_i,
         
     | 
| 
       291 
291 
     | 
    
         
             
                                   parameters[2],
         
     | 
| 
       292 
292 
     | 
    
         
             
                                   parameters[3],
         
     | 
| 
       293 
     | 
    
         
            -
                                    
     | 
| 
      
 293 
     | 
    
         
            +
                                   parameters[4].to_i)
         
     | 
| 
       294 
294 
     | 
    
         
             
                    end
         
     | 
| 
       295 
295 
     | 
    
         
             
                    i += 1
         
     | 
| 
       296 
296 
     | 
    
         
             
                  }
         
     |