md5sum 1.0.5 → 1.0.6
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/lib/md5sum/md5sum.rb +12 -4
 - data/md5sum.gemspec +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 387f14acfa969ce14d93b02fb5d77f4eb35c5fb3
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 896753e8900454a68e268b4312f53c0edf7b78ce
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 6c12d29a5497017a714c8147e18c0753c5973baff8de9755f791874aaeacf7adb671d3b3d824efc7912f85a7edf2df4f84786fa454c3a13d08a8ce4c9a408eb9
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 816241b3a727e330fbca4ad7141a957e58cc1db70924ddd44d65602f41ac176cded8d105149b091021c65d07001940caf9fa75f8add7020464374d1d8359e936
         
     | 
    
        data/lib/md5sum/md5sum.rb
    CHANGED
    
    | 
         @@ -89,6 +89,13 @@ class Md5sum 
     | 
|
| 
       89 
89 
     | 
    
         
             
                Md5sum.new(i)
         
     | 
| 
       90 
90 
     | 
    
         
             
              end
         
     | 
| 
       91 
91 
     | 
    
         | 
| 
      
 92 
     | 
    
         
            +
              # ========================================================================= #
         
     | 
| 
      
 93 
     | 
    
         
            +
              # === file?
         
     | 
| 
      
 94 
     | 
    
         
            +
              # ========================================================================= #
         
     | 
| 
      
 95 
     | 
    
         
            +
              def file?
         
     | 
| 
      
 96 
     | 
    
         
            +
                @input
         
     | 
| 
      
 97 
     | 
    
         
            +
              end
         
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
       92 
99 
     | 
    
         
             
              # ========================================================================= #
         
     | 
| 
       93 
100 
     | 
    
         
             
              # === return_md5sum
         
     | 
| 
       94 
101 
     | 
    
         
             
              #
         
     | 
| 
         @@ -134,9 +141,10 @@ end 
     | 
|
| 
       134 
141 
     | 
    
         | 
| 
       135 
142 
     | 
    
         
             
            if __FILE__ == $PROGRAM_NAME
         
     | 
| 
       136 
143 
     | 
    
         
             
              _ = Md5sum.new(ARGV, :do_not_run_yet)
         
     | 
| 
       137 
     | 
    
         
            -
               
     | 
| 
       138 
     | 
    
         
            -
             
     | 
| 
      
 144 
     | 
    
         
            +
              unless File.exist?(_.file?)
         
     | 
| 
      
 145 
     | 
    
         
            +
                _.reverse_md5 '61c12f4e84dc393aaa4849db9b78aa84'
         
     | 
| 
      
 146 
     | 
    
         
            +
              end
         
     | 
| 
       139 
147 
     | 
    
         
             
              _.run :do_show_the_result
         
     | 
| 
       140 
148 
     | 
    
         
             
            end
         
     | 
| 
       141 
     | 
    
         
            -
            #  
     | 
| 
       142 
     | 
    
         
            -
            #  
     | 
| 
      
 149 
     | 
    
         
            +
            # rubymd5sum RamonDekkersHightlight.avi
         
     | 
| 
      
 150 
     | 
    
         
            +
            # rubymd5sum
         
     | 
    
        data/md5sum.gemspec
    CHANGED