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 +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +12 -0
- data/lib/bundler.rb +2 -1
- data/lib/bundler/cli.rb +2 -2
- data/lib/bundler/dsl.rb +1 -1
- data/lib/bundler/installer/parallel_installer.rb +3 -4
- data/lib/bundler/remote_specification.rb +2 -2
- data/lib/bundler/source/git/git_proxy.rb +1 -1
- data/lib/bundler/templates/newgem/README.md.tt +1 -1
- data/lib/bundler/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b5b82f62ba26e1ac9da898f780001baab80d27e
|
4
|
+
data.tar.gz: 72988f3a780eea7870f3c1306ffa455aa33cffce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d70d3b9ac2f6f76bd2a301e03c6b515e1468030c85daf2dc678ab0475582ba6fc289238f3e9d80656c75ff783426c10850b317c4c5922dda6e98f768945ee064
|
7
|
+
data.tar.gz: a8c44a1a6b8d8eb4497d39ad64fd9bf2693e280b5eb9ba410d6112ae8f635acaa7901ef75355961edabbcee040e302f206ff4bfe2d6402bc512241c02d5962b9
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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:
|
data/lib/bundler.rb
CHANGED
@@ -371,8 +371,9 @@ module Bundler
|
|
371
371
|
spec
|
372
372
|
end
|
373
373
|
rescue Gem::InvalidSpecificationException => e
|
374
|
-
|
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
|
data/lib/bundler/cli.rb
CHANGED
@@ -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.
|
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)
|
data/lib/bundler/dsl.rb
CHANGED
@@ -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?(
|
39
|
-
installed_specs =
|
40
|
-
|
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
|
|
data/lib/bundler/version.rb
CHANGED
@@ -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
|
+
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.
|
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-
|
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.
|
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:
|