bundler 1.12.4 → 1.12.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b5433fc9cc8573aa85b617097a9c959a633b4fc
4
- data.tar.gz: 53fe7741d85bcc26b81211e9b51ab6056e907f3e
3
+ metadata.gz: 6879f22286c10e34a40f3287efd41ac222878fb2
4
+ data.tar.gz: a6fac6da4a88d86e8e4d7a34b39a350b0a961cff
5
5
  SHA512:
6
- metadata.gz: e738d624fbd192e6d6fd01ac413675e5e15e3f514618530bf36451798ee4798e73f6dd5f5b1b5b7acf151cc5326ec4c0f828424914d209d36d351b31d356cd8f
7
- data.tar.gz: 11996eed9e6045a19e039044e151bdb010b013c697d8abbdef9d6d3cd5157e2c70de3087c130617f5bdee95f53243459e3ea83053c401055a706542b61d0e789
6
+ metadata.gz: ffb3c32b1c28b5e68f8fb169a1b2ff2d92aad3cc37686903c1342900941253e0f6ad8a165677905f8dffc4d7261ca05c6cd61b7c7343cac6956b908b309395fc
7
+ data.tar.gz: 9e6e9598a0487349a7e33de0b30ac79eaa8596ad94b94b51c4d05241d8e7effede9037e5f7954ceac79b17aa64f5be7dcbed358a90040ca77719dd7a7fea3efd
@@ -1,3 +1,10 @@
1
+ ## 1.12.5 (2016-05-25)
2
+
3
+ Bugfixes:
4
+ - only take over `--help` on `bundle exec` when the first two arguments are `exec` and `--help` (#4596, @segiddins)
5
+ - don't require `require: true` dependencies that are excluded via `env` or `install_if` (@BrianHawley)
6
+ - reduce the number of threads used simultaneously by bundler (#4367, @will-in-wi)
7
+
1
8
  ## 1.12.4 (2016-05-16)
2
9
 
3
10
  Bugfixes:
@@ -438,35 +438,20 @@ module Bundler
438
438
  def self.reformatted_help_args(args)
439
439
  bundler_commands = all_commands.keys
440
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 }
444
- command = args.select {|a| bundler_commands.include? a }
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
441
+ exec_commands = %w(e ex exe exec)
442
+ help_used = args.index {|a| help_flags.include? a }
443
+ exec_used = args.index {|a| exec_commands.include? a }
444
+ command = args.find {|a| bundler_commands.include? a }
445
+ if exec_used && help_used
446
+ if exec_used + help_used == 1
462
447
  %w(help exec)
463
448
  else
464
449
  args
465
450
  end
466
- elsif command.empty?
451
+ elsif command.nil?
467
452
  abort("Could not find command \"#{args.join(" ")}\".")
468
453
  else
469
- ["help", command.first]
454
+ ["help", command || args].flatten.compact
470
455
  end
471
456
  end
472
457
 
@@ -89,7 +89,7 @@ module Bundler
89
89
  worker_name = "Compact Index (#{display_uri.host})"
90
90
  worker = Bundler::Worker.new(25, worker_name, func)
91
91
  inputs.each {|input| worker.enq(input) }
92
- inputs.map { worker.deq }
92
+ inputs.map { worker.deq }.tap { worker.stop }
93
93
  end
94
94
  end
95
95
  end
@@ -69,7 +69,7 @@ module Bundler
69
69
  Error details
70
70
 
71
71
  #{e.class}: #{e.message}
72
- #{e.backtrace.join("\n ")}
72
+ #{e.backtrace && e.backtrace.join("\n ")}
73
73
 
74
74
  #{Bundler::Env.new.report(:print_gemfile => false, :print_gemspecs => false).gsub(/\n/, "\n ").strip}
75
75
  --- TEMPLATE END ----------------------------------------------------------------
@@ -68,9 +68,9 @@ module Bundler
68
68
  groups = [:default] if groups.empty?
69
69
 
70
70
  @definition.dependencies.each do |dep|
71
- # Skip the dependency if it is not in any of the requested
72
- # groups
73
- next unless (dep.groups & groups).any? && dep.current_platform?
71
+ # Skip the dependency if it is not in any of the requested groups, or
72
+ # not for the current platform, or doesn't match the gem constraints.
73
+ next unless (dep.groups & groups).any? && dep.should_include?
74
74
 
75
75
  required_file = nil
76
76
 
@@ -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.4" unless defined?(::Bundler::VERSION)
10
+ VERSION = "1.12.5" 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
4
+ version: 1.12.5
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-05-16 00:00:00.000000000 Z
14
+ date: 2016-05-25 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.5.1
356
+ rubygems_version: 2.6.4
357
357
  signing_key:
358
358
  specification_version: 4
359
359
  summary: The best way to manage your application's dependencies