omnibus 3.2.0.rc.2 → 3.2.0.rc.3
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/CHANGELOG.md +2 -1
- data/lib/omnibus/builder.rb +31 -3
- data/lib/omnibus/cli/base.rb +1 -1
- data/lib/omnibus/generator_files/README.md.erb +2 -2
- data/lib/omnibus/version.rb +1 -1
- data/omnibus.gemspec +1 -1
- metadata +16 -16
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f4a2b6643628a27e2deb75bce09e814bc8123f37
         | 
| 4 | 
            +
              data.tar.gz: 85427f574979495b58b8877bd3cce27934faab20
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 70a83fbaaf120dfb4d1fffa18e915a1a53d56866836f43878a2726d2f01e664a66995a0b42ab298e878f76d543d50d717eb5c823c0ddf4492d374549cdf784e4
         | 
| 7 | 
            +
              data.tar.gz: c7c17973cb801f25c2870522f723431aa875510798810384c1cdb9783fd4b25c6169ada1b0dbb7b428b281089456e541fff1164f855ec9fce1472fb3eaafa60f
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            Omnibus Ruby CHANGELOG
         | 
| 2 2 | 
             
            ======================
         | 
| 3 3 |  | 
| 4 | 
            -
            v3.2.0.rc. | 
| 4 | 
            +
            v3.2.0.rc.3 (July 21, 2014)
         | 
| 5 5 | 
             
            ---------------------------
         | 
| 6 6 | 
             
            - Make build commands output during `log.info` instead of `log.debug`
         | 
| 7 7 | 
             
            - Refactor Chef Sugar into an includable module, permitting DSL methods in both Software and Project definitions
         | 
| @@ -70,6 +70,7 @@ v3.2.0.rc.2 (July 17, 2014) | |
| 70 70 | 
             
            - Require `net/http`, `net/https`, and `net/ftp` in the base fetcher module
         | 
| 71 71 | 
             
            - Use -R, not -W1 on FreeBSD's compile flags
         | 
| 72 72 | 
             
            - Expand all paths relative to the project_root
         | 
| 73 | 
            +
            - Various documentation fixes and updates
         | 
| 73 74 |  | 
| 74 75 | 
             
            ### Potentially breaking changes
         | 
| 75 76 | 
             
            - Merged `Package` and `Artifact` into the same class and updated API - this was considered an **internal** API so it is not a violation of semver
         | 
    
        data/lib/omnibus/builder.rb
    CHANGED
    
    | @@ -14,7 +14,6 @@ | |
| 14 14 | 
             
            # limitations under the License.
         | 
| 15 15 | 
             
            #
         | 
| 16 16 |  | 
| 17 | 
            -
            require 'bundler'
         | 
| 18 17 | 
             
            require 'fileutils'
         | 
| 19 18 | 
             
            require 'ostruct'
         | 
| 20 19 | 
             
            require 'mixlib/shellout'
         | 
| @@ -592,7 +591,7 @@ module Omnibus | |
| 592 591 | 
             
                # Execute the given command object. This method also wraps the following
         | 
| 593 592 | 
             
                # operations:
         | 
| 594 593 | 
             
                #
         | 
| 595 | 
            -
                #   - Reset bundler's environment using  | 
| 594 | 
            +
                #   - Reset bundler's environment using {with_clean_env}
         | 
| 596 595 | 
             
                #   - Instrument (time/measure) the individual command's execution
         | 
| 597 596 | 
             
                #   - Retry failed commands in accordance with {Config#build_retries}
         | 
| 598 597 | 
             
                #
         | 
| @@ -600,7 +599,7 @@ module Omnibus | |
| 600 599 | 
             
                #   the command object to build
         | 
| 601 600 | 
             
                #
         | 
| 602 601 | 
             
                def execute(command)
         | 
| 603 | 
            -
                   | 
| 602 | 
            +
                  with_clean_env do
         | 
| 604 603 | 
             
                    measure(command.description) do
         | 
| 605 604 | 
             
                      with_retries do
         | 
| 606 605 | 
             
                        command.run(self)
         | 
| @@ -647,6 +646,35 @@ module Omnibus | |
| 647 646 | 
             
                  end
         | 
| 648 647 | 
             
                end
         | 
| 649 648 |  | 
| 649 | 
            +
                #
         | 
| 650 | 
            +
                # Execute the given command, removing any Ruby-specific environment
         | 
| 651 | 
            +
                # variables. This is an "enhanced" version of +Bundler.with_clean_env+,
         | 
| 652 | 
            +
                # which only removes Bundler-specific values. We need to remove all
         | 
| 653 | 
            +
                # values, specifically:
         | 
| 654 | 
            +
                #
         | 
| 655 | 
            +
                # - GEM_PATH
         | 
| 656 | 
            +
                # - GEM_HOME
         | 
| 657 | 
            +
                # - GEM_ROOT
         | 
| 658 | 
            +
                # - BUNDLE_GEMFILE
         | 
| 659 | 
            +
                # - RUBYOPT
         | 
| 660 | 
            +
                #
         | 
| 661 | 
            +
                # The original environment restored at the end of this call.
         | 
| 662 | 
            +
                #
         | 
| 663 | 
            +
                # @param [Proc] block
         | 
| 664 | 
            +
                #   the block to execute with the cleaned environment
         | 
| 665 | 
            +
                #
         | 
| 666 | 
            +
                def with_clean_env(&block)
         | 
| 667 | 
            +
                  original = ENV.to_hash
         | 
| 668 | 
            +
             | 
| 669 | 
            +
                  ENV.delete('RUBYOPT')
         | 
| 670 | 
            +
                  ENV.delete_if { |k,_| k.start_with?('BUNDLE_') }
         | 
| 671 | 
            +
                  ENV.delete_if { |k,_| k.start_with?('GEM_') }
         | 
| 672 | 
            +
             | 
| 673 | 
            +
                  block.call
         | 
| 674 | 
            +
                ensure
         | 
| 675 | 
            +
                  ENV.replace(original.to_hash)
         | 
| 676 | 
            +
                end
         | 
| 677 | 
            +
             | 
| 650 678 | 
             
                #
         | 
| 651 679 | 
             
                # Find a file amonst all local files, "remote" local files, and
         | 
| 652 680 | 
             
                # {Config#software_gems}.
         | 
    
        data/lib/omnibus/cli/base.rb
    CHANGED
    
    
| @@ -85,14 +85,14 @@ liking, you can bring up an individual build environment using the `kitchen` | |
| 85 85 | 
             
            command.
         | 
| 86 86 |  | 
| 87 87 | 
             
            ```shell
         | 
| 88 | 
            -
            $ bin/kitchen converge ubuntu- | 
| 88 | 
            +
            $ bin/kitchen converge ubuntu-1204
         | 
| 89 89 | 
             
            ```
         | 
| 90 90 |  | 
| 91 91 | 
             
            Then login to the instance and build the project as described in the Usage
         | 
| 92 92 | 
             
            section:
         | 
| 93 93 |  | 
| 94 94 | 
             
            ```shell
         | 
| 95 | 
            -
            $ bundle exec kitchen login ubuntu- | 
| 95 | 
            +
            $ bundle exec kitchen login ubuntu-1204
         | 
| 96 96 | 
             
            [vagrant@ubuntu...] $ cd <%= config[:name] %>
         | 
| 97 97 | 
             
            [vagrant@ubuntu...] $ bundle install
         | 
| 98 98 | 
             
            [vagrant@ubuntu...] $ ...
         | 
    
        data/lib/omnibus/version.rb
    CHANGED
    
    
    
        data/omnibus.gemspec
    CHANGED
    
    | @@ -21,7 +21,6 @@ Gem::Specification.new do |gem| | |
| 21 21 | 
             
              gem.test_files = gem.files.grep(/^(test|spec|features)\//)
         | 
| 22 22 | 
             
              gem.require_paths = ['lib']
         | 
| 23 23 |  | 
| 24 | 
            -
              gem.add_dependency 'bundler'
         | 
| 25 24 | 
             
              gem.add_dependency 'chef-sugar',      '~> 1.2'
         | 
| 26 25 | 
             
              gem.add_dependency 'mixlib-shellout', '~> 1.4'
         | 
| 27 26 | 
             
              gem.add_dependency 'ohai',            '~> 7.2.0.rc'
         | 
| @@ -29,6 +28,7 @@ Gem::Specification.new do |gem| | |
| 29 28 | 
             
              gem.add_dependency 'uber-s3'
         | 
| 30 29 | 
             
              gem.add_dependency 'thor',            '~> 0.18'
         | 
| 31 30 |  | 
| 31 | 
            +
              gem.add_development_dependency 'bundler'
         | 
| 32 32 | 
             
              gem.add_development_dependency 'artifactory', '~> 1.2'
         | 
| 33 33 | 
             
              gem.add_development_dependency 'aruba',       '~> 0.5'
         | 
| 34 34 | 
             
              gem.add_development_dependency 'fauxhai',     '~> 2.1'
         | 
    
        metadata
    CHANGED
    
    | @@ -1,29 +1,15 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: omnibus
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.2.0.rc. | 
| 4 | 
            +
              version: 3.2.0.rc.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Chef Software, Inc.
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014-07- | 
| 11 | 
            +
            date: 2014-07-21 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 | 
            -
            - !ruby/object:Gem::Dependency
         | 
| 14 | 
            -
              name: bundler
         | 
| 15 | 
            -
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 | 
            -
                requirements:
         | 
| 17 | 
            -
                - - ">="
         | 
| 18 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: '0'
         | 
| 20 | 
            -
              type: :runtime
         | 
| 21 | 
            -
              prerelease: false
         | 
| 22 | 
            -
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 | 
            -
                requirements:
         | 
| 24 | 
            -
                - - ">="
         | 
| 25 | 
            -
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: '0'
         | 
| 27 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 14 | 
             
              name: chef-sugar
         | 
| 29 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -108,6 +94,20 @@ dependencies: | |
| 108 94 | 
             
                - - "~>"
         | 
| 109 95 | 
             
                  - !ruby/object:Gem::Version
         | 
| 110 96 | 
             
                    version: '0.18'
         | 
| 97 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 98 | 
            +
              name: bundler
         | 
| 99 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 100 | 
            +
                requirements:
         | 
| 101 | 
            +
                - - ">="
         | 
| 102 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 103 | 
            +
                    version: '0'
         | 
| 104 | 
            +
              type: :development
         | 
| 105 | 
            +
              prerelease: false
         | 
| 106 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 107 | 
            +
                requirements:
         | 
| 108 | 
            +
                - - ">="
         | 
| 109 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 110 | 
            +
                    version: '0'
         | 
| 111 111 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 112 112 | 
             
              name: artifactory
         | 
| 113 113 | 
             
              requirement: !ruby/object:Gem::Requirement
         |