six-updater 0.19.6-x86-mingw32 → 0.19.7-x86-mingw32
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/Rakefile +3 -3
 - data/lib/six/updater.rb +2 -2
 - data/lib/six/updater/mod.rb +3 -5
 - metadata +3 -3
 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -13,7 +13,7 @@ require 'rake/testtask' 
     | 
|
| 
       13 
13 
     | 
    
         
             
            spec = Gem::Specification.new do |s|
         
     | 
| 
       14 
14 
     | 
    
         
             
              s.platform = "x86-mingw32"
         
     | 
| 
       15 
15 
     | 
    
         
             
              s.name = 'six-updater'
         
     | 
| 
       16 
     | 
    
         
            -
              s.version = '0.19. 
     | 
| 
      
 16 
     | 
    
         
            +
              s.version = '0.19.7'
         
     | 
| 
       17 
17 
     | 
    
         
             
              s.has_rdoc = true
         
     | 
| 
       18 
18 
     | 
    
         
             
              s.extra_rdoc_files = ['README', 'LICENSE']
         
     | 
| 
       19 
19 
     | 
    
         
             
              s.summary = 'Your summary here'
         
     | 
| 
         @@ -35,7 +35,7 @@ end 
     | 
|
| 
       35 
35 
     | 
    
         
             
            spec3 = Gem::Specification.new do |s|
         
     | 
| 
       36 
36 
     | 
    
         
             
              s.platform = "x86-mswin32"
         
     | 
| 
       37 
37 
     | 
    
         
             
              s.name = 'six-updater'
         
     | 
| 
       38 
     | 
    
         
            -
              s.version = '0.19. 
     | 
| 
      
 38 
     | 
    
         
            +
              s.version = '0.19.7'
         
     | 
| 
       39 
39 
     | 
    
         
             
              s.has_rdoc = true
         
     | 
| 
       40 
40 
     | 
    
         
             
              s.extra_rdoc_files = ['README', 'LICENSE']
         
     | 
| 
       41 
41 
     | 
    
         
             
              s.summary = 'Your summary here'
         
     | 
| 
         @@ -56,7 +56,7 @@ end 
     | 
|
| 
       56 
56 
     | 
    
         | 
| 
       57 
57 
     | 
    
         
             
            spec2 = Gem::Specification.new do |s|
         
     | 
| 
       58 
58 
     | 
    
         
             
              s.name = 'six-updater'
         
     | 
| 
       59 
     | 
    
         
            -
              s.version = '0.19. 
     | 
| 
      
 59 
     | 
    
         
            +
              s.version = '0.19.7'
         
     | 
| 
       60 
60 
     | 
    
         
             
              s.has_rdoc = true
         
     | 
| 
       61 
61 
     | 
    
         
             
              s.extra_rdoc_files = ['README', 'LICENSE']
         
     | 
| 
       62 
62 
     | 
    
         
             
              s.summary = 'Your summary here'
         
     | 
    
        data/lib/six/updater.rb
    CHANGED
    
    | 
         @@ -31,7 +31,7 @@ case RUBY_VERSION 
     | 
|
| 
       31 
31 
     | 
    
         
             
            when /1\.8\.[0-9]/
         
     | 
| 
       32 
32 
     | 
    
         
             
              class Array
         
     | 
| 
       33 
33 
     | 
    
         
             
                def sample
         
     | 
| 
       34 
     | 
    
         
            -
                  self[rand 
     | 
| 
      
 34 
     | 
    
         
            +
                  self[rand(self.size)]
         
     | 
| 
       35 
35 
     | 
    
         
             
                end
         
     | 
| 
       36 
36 
     | 
    
         
             
              end
         
     | 
| 
       37 
37 
     | 
    
         
             
            end
         
     | 
| 
         @@ -39,7 +39,7 @@ end 
     | 
|
| 
       39 
39 
     | 
    
         
             
            module Six
         
     | 
| 
       40 
40 
     | 
    
         
             
              # TODO: Evaluate if this module should be a class instead?
         
     | 
| 
       41 
41 
     | 
    
         
             
              module Updater
         
     | 
| 
       42 
     | 
    
         
            -
                VERSION = '0.19. 
     | 
| 
      
 42 
     | 
    
         
            +
                VERSION = '0.19.7'
         
     | 
| 
       43 
43 
     | 
    
         
             
                COMPONENT = 'six-updater'
         
     | 
| 
       44 
44 
     | 
    
         
             
                LOG_LIMIT = 9999
         
     | 
| 
       45 
45 
     | 
    
         | 
    
        data/lib/six/updater/mod.rb
    CHANGED
    
    | 
         @@ -31,9 +31,6 @@ module Six 
     | 
|
| 
       31 
31 
     | 
    
         
             
                    @changed = false
         
     | 
| 
       32 
32 
     | 
    
         | 
| 
       33 
33 
     | 
    
         
             
                    @installed = if FileTest.exists?(File.join(@path, '.rsync'))
         
     | 
| 
       34 
     | 
    
         
            -
                      # TODO: Temporary, downcase all files and process the configs
         
     | 
| 
       35 
     | 
    
         
            -
                      Six::Cleanup.process(@path)
         
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
34 
     | 
    
         
             
                      @repository = RsyncRepo.new(@modconfig[:repository], @path, :log => log)
         
     | 
| 
       38 
35 
     | 
    
         
             
                      true
         
     | 
| 
       39 
36 
     | 
    
         
             
                    else
         
     | 
| 
         @@ -128,10 +125,10 @@ module Six 
     | 
|
| 
       128 
125 
     | 
    
         | 
| 
       129 
126 
     | 
    
         
             
                    @stat[:previous] = @repository.version
         
     | 
| 
       130 
127 
     | 
    
         
             
                    log.info "Current Version: #{@stat[:previous]}, checking for updates..."
         
     | 
| 
       131 
     | 
    
         
            -
                    done = @repository.update
         
     | 
| 
       132 
     | 
    
         
            -
                    @stat[:current] = @repository.version
         
     | 
| 
      
 128 
     | 
    
         
            +
                    done = begin; @repository.update; rescue => e; log.debug "#{e.class} #{e.message}: #{e.backtrace.join("\n")}"; nil; end
         
     | 
| 
       133 
129 
     | 
    
         | 
| 
       134 
130 
     | 
    
         
             
                    begin
         
     | 
| 
      
 131 
     | 
    
         
            +
                      @stat[:current] = @repository.version
         
     | 
| 
       135 
132 
     | 
    
         
             
                      @repository.status(true)
         
     | 
| 
       136 
133 
     | 
    
         
             
                    rescue => e
         
     | 
| 
       137 
134 
     | 
    
         
             
                      log.warn 'WARNING: Update seems to have completed but there was a status error..'
         
     | 
| 
         @@ -165,6 +162,7 @@ module Six 
     | 
|
| 
       165 
162 
     | 
    
         
             
                    unless done
         
     | 
| 
       166 
163 
     | 
    
         
             
                      log.warn 'WARNING: Update was unable to complete. This could be due to a server / connection problem, or due to files in use or out of synch repositories. Please make sure ArmA is closed, retry, otherwise reset and retry'
         
     | 
| 
       167 
164 
     | 
    
         
             
                      log_status
         
     | 
| 
      
 165 
     | 
    
         
            +
                      true
         
     | 
| 
       168 
166 
     | 
    
         
             
                      # TODO: Add display of stats for changed files etc
         
     | 
| 
       169 
167 
     | 
    
         
             
                    end
         
     | 
| 
       170 
168 
     | 
    
         
             
                  end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version 
     | 
|
| 
       5 
5 
     | 
    
         
             
              segments: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              - 0
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 19
         
     | 
| 
       8 
     | 
    
         
            -
              -  
     | 
| 
       9 
     | 
    
         
            -
              version: 0.19. 
     | 
| 
      
 8 
     | 
    
         
            +
              - 7
         
     | 
| 
      
 9 
     | 
    
         
            +
              version: 0.19.7
         
     | 
| 
       10 
10 
     | 
    
         
             
            platform: x86-mingw32
         
     | 
| 
       11 
11 
     | 
    
         
             
            authors: 
         
     | 
| 
       12 
12 
     | 
    
         
             
            - Sickboy
         
     | 
| 
         @@ -14,7 +14,7 @@ autorequire: 
     | 
|
| 
       14 
14 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       15 
15 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
            date: 2010-05- 
     | 
| 
      
 17 
     | 
    
         
            +
            date: 2010-05-23 00:00:00 +02:00
         
     | 
| 
       18 
18 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       19 
19 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       20 
20 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |