prm 0.1.4 → 0.1.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.
- data/bin/prm +1 -1
 - data/lib/prm/repo.rb +6 -2
 - metadata +4 -4
 
    
        data/bin/prm
    CHANGED
    
    
    
        data/lib/prm/repo.rb
    CHANGED
    
    | 
         @@ -371,8 +371,9 @@ module SNAP 
     | 
|
| 
       371 
371 
     | 
    
         
             
                                file = p.split(/[_]/)
         
     | 
| 
       372 
372 
     | 
    
         
             
                                mtime = File.mtime(p)
         
     | 
| 
       373 
373 
     | 
    
         
             
                                date_in_mil = mtime.to_f
         
     | 
| 
       374 
     | 
    
         
            -
                                
         
     | 
| 
       375 
     | 
    
         
            -
             
     | 
| 
      
 374 
     | 
    
         
            +
                                if File.directory?(p)
         
     | 
| 
      
 375 
     | 
    
         
            +
                                  next
         
     | 
| 
      
 376 
     | 
    
         
            +
                                elsif !package_hash.has_key?(file[0])
         
     | 
| 
       376 
377 
     | 
    
         
             
                                    package_hash[file[0]] = { "name" => p, "time" => date_in_mil }
         
     | 
| 
       377 
378 
     | 
    
         
             
                                else
         
     | 
| 
       378 
379 
     | 
    
         
             
                                    if date_in_mil > package_hash[file[0]]["time"]
         
     | 
| 
         @@ -396,6 +397,9 @@ module SNAP 
     | 
|
| 
       396 
397 
     | 
    
         | 
| 
       397 
398 
     | 
    
         
             
                        FileUtils.ln_s "#{new_snap}", "#{path}/dists/#{r}/#{snapname}", :force => true
         
     | 
| 
       398 
399 
     | 
    
         
             
                        puts "Created #{snapname} snapshot of #{component} with --recent flag\n"
         
     | 
| 
      
 400 
     | 
    
         
            +
                        self.component = snapshot
         
     | 
| 
      
 401 
     | 
    
         
            +
                        self.snapshot = false
         
     | 
| 
      
 402 
     | 
    
         
            +
                        self.create
         
     | 
| 
       399 
403 
     | 
    
         
             
                    end
         
     | 
| 
       400 
404 
     | 
    
         
             
                  else
         
     | 
| 
       401 
405 
     | 
    
         
             
                    FileUtils.cp_r(Dir["#{path}/dists/#{r}/#{component}/*"], "#{path}/dists/#{r}/#{new_snap}")
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: prm
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 17
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 1
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 5
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.1.5
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Brett Gailey
         
     | 
| 
         @@ -15,7 +15,7 @@ autorequire: 
     | 
|
| 
       15 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date: 2013-07- 
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2013-07-18 00:00:00 -07:00
         
     | 
| 
       19 
19 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       20 
20 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       21 
21 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |