bundler 1.12.1 → 1.12.2
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.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/bundler/cli.rb +27 -3
- data/lib/bundler/definition.rb +1 -1
- data/lib/bundler/version.rb +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f54e9406657c9cbddf32e89288ac35910b1529a2
         | 
| 4 | 
            +
              data.tar.gz: cc760f3dd023d2a9159b62d930abf0a2cda52333
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: b66eee7c1e92eb57df7fad62c4811a08cffaf25650ecf3f53d479b793bae0ebfd2e10017042d784cbf8df0beb6cfe8f023c08737b8d310fe0f172149ab54244c
         | 
| 7 | 
            +
              data.tar.gz: 7b7cf53500de4c9359e1a136a3b0703412bd98cd0e88bb599855ad45f6231e388bd95d2e35a73fe2001869c15114f896e476f620e94e42e25d5523c2dbd11d6b
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,3 +1,9 @@ | |
| 1 | 
            +
            ## 1.12.2 (2016-05-04)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            Bugfixes:
         | 
| 4 | 
            +
              - fix modifying a frozen string when the resolver conflicts on dependencies with requirements (#4520, @grzuy)
         | 
| 5 | 
            +
              - fix `bundle exec foo --help` not showing the invoked command's help (#4480, @b-ggs)
         | 
| 6 | 
            +
             | 
| 1 7 | 
             
            ## 1.12.1 (2016-04-30)
         | 
| 2 8 |  | 
| 3 9 | 
             
            Bugfixes:
         | 
    
        data/lib/bundler/cli.rb
    CHANGED
    
    | @@ -437,13 +437,37 @@ module Bundler | |
| 437 437 | 
             
                # into the corresponding `bundle help #{command}` call
         | 
| 438 438 | 
             
                def self.reformatted_help_args(args)
         | 
| 439 439 | 
             
                  bundler_commands = all_commands.keys
         | 
| 440 | 
            +
                  help_flags = %w(--help -h)
         | 
| 441 | 
            +
                  exec_commands = %w(exec e)
         | 
| 442 | 
            +
                  help_used = args.select {|a| help_flags.include? a }
         | 
| 443 | 
            +
                  exec_used = args.select {|a| exec_commands.include? a }
         | 
| 440 444 | 
             
                  command = args.select {|a| bundler_commands.include? a }
         | 
| 441 | 
            -
                  if  | 
| 445 | 
            +
                  if exec_used.any? && help_used.any?
         | 
| 446 | 
            +
                    regex = /
         | 
| 447 | 
            +
                        ( # Matches `exec --help` or `exec --help foo`
         | 
| 448 | 
            +
                          (#{exec_commands.join("|")})
         | 
| 449 | 
            +
                          \s
         | 
| 450 | 
            +
                          (#{help_flags.join("|")})
         | 
| 451 | 
            +
                          (.+)*
         | 
| 452 | 
            +
                        )|
         | 
| 453 | 
            +
                        ( # Matches `--help exec` or `--help exec foo`
         | 
| 454 | 
            +
                          (#{help_flags.join("|")})
         | 
| 455 | 
            +
                          \s
         | 
| 456 | 
            +
                          (#{exec_commands.join("|")})
         | 
| 457 | 
            +
                          (.+)*
         | 
| 458 | 
            +
                        )
         | 
| 459 | 
            +
                      /x
         | 
| 460 | 
            +
                    arg_str = args.join(" ")
         | 
| 461 | 
            +
                    if arg_str =~ regex
         | 
| 462 | 
            +
                      %w(help exec)
         | 
| 463 | 
            +
                    else
         | 
| 464 | 
            +
                      args
         | 
| 465 | 
            +
                    end
         | 
| 466 | 
            +
                  elsif command.empty?
         | 
| 442 467 | 
             
                    abort("Could not find command \"#{args.join(" ")}\".")
         | 
| 443 468 | 
             
                  else
         | 
| 444 | 
            -
                     | 
| 469 | 
            +
                    ["help", command.first]
         | 
| 445 470 | 
             
                  end
         | 
| 446 | 
            -
                  ["help", command]
         | 
| 447 471 | 
             
                end
         | 
| 448 472 |  | 
| 449 473 | 
             
              private
         | 
    
        data/lib/bundler/definition.rb
    CHANGED
    
    | @@ -428,7 +428,7 @@ module Bundler | |
| 428 428 | 
             
                end
         | 
| 429 429 |  | 
| 430 430 | 
             
                def pretty_dep(dep, source = false)
         | 
| 431 | 
            -
                  msg =  | 
| 431 | 
            +
                  msg = String.new(dep.name)
         | 
| 432 432 | 
             
                  msg << " (#{dep.requirement})" unless dep.requirement == Gem::Requirement.default
         | 
| 433 433 | 
             
                  msg << " from the `#{dep.source}` source" if source && dep.source
         | 
| 434 434 | 
             
                  msg
         | 
    
        data/lib/bundler/version.rb
    CHANGED
    
    | @@ -7,5 +7,5 @@ module Bundler | |
| 7 7 | 
             
              # We're doing this because we might write tests that deal
         | 
| 8 8 | 
             
              # with other versions of bundler and we are unsure how to
         | 
| 9 9 | 
             
              # handle this better.
         | 
| 10 | 
            -
              VERSION = "1.12. | 
| 10 | 
            +
              VERSION = "1.12.2" unless defined?(::Bundler::VERSION)
         | 
| 11 11 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: bundler
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.12. | 
| 4 | 
            +
              version: 1.12.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - André Arko
         | 
| @@ -11,7 +11,7 @@ authors: | |
| 11 11 | 
             
            autorequire: 
         | 
| 12 12 | 
             
            bindir: exe
         | 
| 13 13 | 
             
            cert_chain: []
         | 
| 14 | 
            -
            date: 2016-04 | 
| 14 | 
            +
            date: 2016-05-04 00:00:00.000000000 Z
         | 
| 15 15 | 
             
            dependencies:
         | 
| 16 16 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 17 17 | 
             
              name: automatiek
         | 
| @@ -353,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 353 353 | 
             
                  version: 1.3.6
         | 
| 354 354 | 
             
            requirements: []
         | 
| 355 355 | 
             
            rubyforge_project: 
         | 
| 356 | 
            -
            rubygems_version: 2. | 
| 356 | 
            +
            rubygems_version: 2.5.1
         | 
| 357 357 | 
             
            signing_key: 
         | 
| 358 358 | 
             
            specification_version: 4
         | 
| 359 359 | 
             
            summary: The best way to manage your application's dependencies
         |