travis-deploy 0.2.0 → 0.2.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/travis/deploy/config.rb +6 -2
 - data/travis-deploy.gemspec +1 -1
 - metadata +4 -3
 
    
        data/lib/travis/deploy/config.rb
    CHANGED
    
    | 
         @@ -18,7 +18,7 @@ module Travis 
     | 
|
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
                  def invoke
         
     | 
| 
       20 
20 
     | 
    
         
             
                    store unless options['source']
         
     | 
| 
       21 
     | 
    
         
            -
                    push
         
     | 
| 
      
 21 
     | 
    
         
            +
                    push unless @env == 'development'
         
     | 
| 
       22 
22 
     | 
    
         
             
                  end
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
                  def pretend
         
     | 
| 
         @@ -48,9 +48,13 @@ module Travis 
     | 
|
| 
       48 
48 
     | 
    
         
             
                      @keychain ||= Keychain.new(app, shell)
         
     | 
| 
       49 
49 
     | 
    
         
             
                    end
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
      
 51 
     | 
    
         
            +
                    def development_config
         
     | 
| 
      
 52 
     | 
    
         
            +
                      { development: Builder.new(keychain, 'development').build }
         
     | 
| 
      
 53 
     | 
    
         
            +
                    end
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
       51 
55 
     | 
    
         
             
                    def store
         
     | 
| 
       52 
56 
     | 
    
         
             
                      backup if backup?
         
     | 
| 
       53 
     | 
    
         
            -
                      File.open(filename, 'w+') { |f| f.write( 
     | 
| 
      
 57 
     | 
    
         
            +
                      File.open(filename, 'w+') { |f| f.write(YAML.dump(development_config)) }
         
     | 
| 
       54 
58 
     | 
    
         
             
                    end
         
     | 
| 
       55 
59 
     | 
    
         | 
| 
       56 
60 
     | 
    
         
             
                    def push
         
     | 
    
        data/travis-deploy.gemspec
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: travis-deploy
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.2.1
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date:  
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2014-04-08 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: thor
         
     | 
| 
         @@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       125 
125 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       126 
126 
     | 
    
         
             
            requirements: []
         
     | 
| 
       127 
127 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       128 
     | 
    
         
            -
            rubygems_version: 1.8. 
     | 
| 
      
 128 
     | 
    
         
            +
            rubygems_version: 1.8.23
         
     | 
| 
       129 
129 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       130 
130 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       131 
131 
     | 
    
         
             
            summary: A command-line interface to Travis CI
         
     | 
| 
         @@ -136,3 +136,4 @@ test_files: 
     | 
|
| 
       136 
136 
     | 
    
         
             
            - spec/travis/deploy/deploy_spec.rb
         
     | 
| 
       137 
137 
     | 
    
         
             
            - spec/travis/deploy/secure_key_spec.rb
         
     | 
| 
       138 
138 
     | 
    
         
             
            - spec/travis/keychain_spec.rb
         
     | 
| 
      
 139 
     | 
    
         
            +
            has_rdoc: 
         
     |