bundler 1.10.5 → 1.10.6

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: 2462b2530c9588977f9eca5df458b9f9cd50f5cf
4
- data.tar.gz: 3e4c22647357a52bdcea5edcdc4b66af60ab1c1d
3
+ metadata.gz: 7b5b82f62ba26e1ac9da898f780001baab80d27e
4
+ data.tar.gz: 72988f3a780eea7870f3c1306ffa455aa33cffce
5
5
  SHA512:
6
- metadata.gz: 0a871b02641e097cb07274f6944e9391950c14e4ac859ac7fe739f75786e37364f851b9b4fab058659bf504918438ff1343207d12f5a7f6bbdb32107404dcce8
7
- data.tar.gz: a1ea05745751c4f07e5a33bf17ac507a2c4c706c23d3304791ed2618afc1456b85571d2370c67fa4fa2f93c76a35c1ceffaae6154528682435cbd5db4181099a
6
+ metadata.gz: d70d3b9ac2f6f76bd2a301e03c6b515e1468030c85daf2dc678ab0475582ba6fc289238f3e9d80656c75ff783426c10850b317c4c5922dda6e98f768945ee064
7
+ data.tar.gz: a8c44a1a6b8d8eb4497d39ad64fd9bf2693e280b5eb9ba410d6112ae8f635acaa7901ef75355961edabbcee040e302f206ff4bfe2d6402bc512241c02d5962b9
@@ -45,7 +45,6 @@ env:
45
45
  - RGV=v2.4.8
46
46
 
47
47
  matrix:
48
- fast_finish: true
49
48
  include:
50
49
  # Ruby 2.2, Rubygems 2.4.5 and up (RG 2.4 is included by the matrix above)
51
50
  # Ruby 2.1, Rubygems 2.2.2 and up
@@ -1,3 +1,15 @@
1
+ ## 1.10.6 (2015-07-22)
2
+
3
+ Workarounds:
4
+
5
+ - only warn on invalid gemspecs (@indirect)
6
+
7
+ Bugfixes:
8
+
9
+ - fix installing dependencies in the correct order (#3799, @pducks32)
10
+ - fix sorting of mixed DependencyLists (#3762, @tony-spataro-rs)
11
+ - fix `install_if` conditionals when using the block form (@danieltdt)
12
+
1
13
  ## 1.10.5 (2015-06-24)
2
14
 
3
15
  Workarounds:
@@ -371,8 +371,9 @@ module Bundler
371
371
  spec
372
372
  end
373
373
  rescue Gem::InvalidSpecificationException => e
374
- raise InvalidOption, "The gemspec at #{file} is not valid. " \
374
+ Bundler.ui.warn "The gemspec at #{file} is not valid. " \
375
375
  "The validation error was '#{e.message}'"
376
+ nil
376
377
  end
377
378
 
378
379
  def clear_gemspec_cache
@@ -345,13 +345,13 @@ module Bundler
345
345
  end
346
346
 
347
347
  desc "gem GEM [OPTIONS]", "Creates a skeleton for creating a rubygem"
348
- method_option :bin, :type => :boolean, :default => false, :aliases => '-b', :desc => "Generate a binary for your library. Set a default with `bundle config gem.mit true`."
348
+ method_option :bin, :type => :boolean, :default => false, :aliases => '-b', :desc => "Generate a binary for your library."
349
349
  method_option :coc, :type => :boolean, :desc => "Generate a code of conduct file. Set a default with `bundle config gem.coc true`."
350
350
  method_option :edit, :type => :string, :aliases => "-e", :required => false, :banner => "EDITOR",
351
351
  :lazy_default => [ENV['BUNDLER_EDITOR'], ENV['VISUAL'], ENV['EDITOR']].find{|e| !e.nil? && !e.empty? },
352
352
  :desc => "Open generated gemspec in the specified editor (defaults to $EDITOR or $BUNDLER_EDITOR)"
353
353
  method_option :ext, :type => :boolean, :default => false, :desc => "Generate the boilerplate for C extension code"
354
- method_option :mit, :type => :boolean, :desc => "Generate an MIT license file"
354
+ method_option :mit, :type => :boolean, :desc => "Generate an MIT license file. Set a default with `bundle config gem.mit true`."
355
355
  method_option :test, :type => :string, :lazy_default => 'rspec', :aliases => '-t', :banner => "rspec",
356
356
  :desc => "Generate a test directory for your library, either rspec or minitest. Set a default with `bundle config gem.test rspec`."
357
357
  def gem(name)
@@ -186,7 +186,7 @@ module Bundler
186
186
  @install_conditionals.concat args
187
187
  blk.call
188
188
  ensure
189
- args.each { @groups.pop }
189
+ args.each { @install_conditionals.pop }
190
190
  end
191
191
 
192
192
  def platforms(*platforms)
@@ -35,10 +35,9 @@ class ParallelInstaller
35
35
 
36
36
  # Checks installed dependencies against spec's dependencies to make
37
37
  # sure needed dependencies have been installed.
38
- def dependencies_installed?(remaining_specs)
39
- installed_specs = remaining_specs.reject(&:installed?).map(&:name)
40
- already_installed = lambda {|dep| installed_specs.include? dep.name }
41
- dependencies.all? {|d| already_installed[d] }
38
+ def dependencies_installed?(all_specs)
39
+ installed_specs = all_specs.select(&:installed?).map(&:name)
40
+ dependencies.all? {|d| installed_specs.include? d.name }
42
41
  end
43
42
 
44
43
  # Represents only the non-development dependencies and the ones that
@@ -52,8 +52,6 @@ module Bundler
52
52
  @_remote_specification = spec
53
53
  end
54
54
 
55
- private
56
-
57
55
  # Create a delegate used for sorting. This strategy is copied from
58
56
  # RubyGems 2.23 and ensures that Bundler's specifications can be
59
57
  # compared and sorted with RubyGems' own specifications.
@@ -67,6 +65,8 @@ module Bundler
67
65
  [@name, @version, @platform == Gem::Platform::RUBY ? -1 : 1]
68
66
  end
69
67
 
68
+ private
69
+
70
70
  def _remote_specification
71
71
  @_remote_specification ||= @spec_fetcher.fetch_spec([@name, @version, @platform])
72
72
  end
@@ -83,7 +83,7 @@ module Bundler
83
83
  FileUtils.mkdir_p(destination.dirname)
84
84
  FileUtils.rm_rf(destination)
85
85
  git_retry %|clone --no-checkout --quiet "#{path}" "#{destination}"|
86
- File.chmod((0777 & ~File.umask), destination)
86
+ File.chmod(((File.stat(destination).mode | 0777) & ~File.umask), destination)
87
87
  end
88
88
 
89
89
  SharedHelpers.chdir(destination) do
@@ -26,7 +26,7 @@ TODO: Write usage instructions here
26
26
 
27
27
  ## Development
28
28
 
29
- After checking out the repo, run `bin/setup` to install dependencies.<% if config[:test] %> Then, run `rake <%= config[:test].sub('mini', '') %>` to run the tests.<% end %> You can also run `bin/console` for an interactive prompt that will allow you to experiment.<% if config[:bin] %> Run `bundle exec <%= config[:name] %>` to use the gem in this directory, ignoring other installed copies of this gem.<% end %>
29
+ After checking out the repo, run `bin/setup` to install dependencies.<% if config[:test] %> Then, run `rake <%= config[:test].sub('mini', '').sub('rspec', 'spec') %>` to run the tests.<% end %> You can also run `bin/console` for an interactive prompt that will allow you to experiment.<% if config[:bin] %> Run `bundle exec <%= config[:name] %>` to use the gem in this directory, ignoring other installed copies of this gem.<% end %>
30
30
 
31
31
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
32
 
@@ -2,5 +2,5 @@ module Bundler
2
2
  # We're doing this because we might write tests that deal
3
3
  # with other versions of bundler and we are unsure how to
4
4
  # handle this better.
5
- VERSION = "1.10.5" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.10.6" unless defined?(::Bundler::VERSION)
6
6
  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.10.5
4
+ version: 1.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-06-24 00:00:00.000000000 Z
14
+ date: 2015-07-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mustache
@@ -316,8 +316,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  version: 1.3.6
317
317
  requirements: []
318
318
  rubyforge_project:
319
- rubygems_version: 2.4.5
319
+ rubygems_version: 2.4.8
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: The best way to manage your application's dependencies
323
323
  test_files: []
324
+ has_rdoc: