bundler 1.14.2 → 1.14.3
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/CHANGELOG.md +7 -0
- data/lib/bundler/definition.rb +3 -2
- data/lib/bundler/resolver.rb +7 -4
- data/lib/bundler/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfda683805022f66fb558637cf980dabfe07056c
|
4
|
+
data.tar.gz: 718e6c198cfcc5ad05a45ac395ad9ab5afcb0c83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '094cf4d2ef082b9a2d47ce30c0edc25af7f14a2bfad2aecc4b407efd962a8fea306af7e34f3ce5987a505b2cba528cecbb352717482305462c17ff4d7d106cb4'
|
7
|
+
data.tar.gz: e230e123af453843bd39dcbbab9fa256ecd792b85f022733b1cf1b040263da29b9754e5e9c4374fe8a4040eda7b2a50e9210776bdc46504b28d2239eb40f9d83
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 1.14.3 (2017-01-24)
|
2
|
+
|
3
|
+
Bugfixes:
|
4
|
+
|
5
|
+
- fix the resolver attemting to activate ruby-platform gems when the bundle is only for other platforms (#5349, #5356, @segiddins)
|
6
|
+
- avoid re-resolving a locked gemfile that uses `gemspec` and includes development dependencies (#5349, @segiddins)
|
7
|
+
|
1
8
|
## 1.14.2 (2017-01-22)
|
2
9
|
|
3
10
|
Bugfixes:
|
data/lib/bundler/definition.rb
CHANGED
@@ -249,7 +249,7 @@ module Bundler
|
|
249
249
|
else
|
250
250
|
# Run a resolve against the locally available gems
|
251
251
|
Bundler.ui.debug("Found changes from the lockfile, re-resolving dependencies because #{change_reason}")
|
252
|
-
last_resolve.merge Resolver.resolve(expanded_dependencies, index, source_requirements, last_resolve, gem_version_promoter, additional_base_requirements_for_resolve)
|
252
|
+
last_resolve.merge Resolver.resolve(expanded_dependencies, index, source_requirements, last_resolve, gem_version_promoter, additional_base_requirements_for_resolve, platforms)
|
253
253
|
end
|
254
254
|
end
|
255
255
|
end
|
@@ -691,7 +691,8 @@ module Bundler
|
|
691
691
|
dep.platforms.concat(@platforms.map {|p| Dependency::REVERSE_PLATFORM_MAP[p] }.flatten(1)).uniq!
|
692
692
|
end
|
693
693
|
end
|
694
|
-
|
694
|
+
dependency_without_type = proc {|d| Gem::Dependency.new(d.name, *d.requirement.as_list) }
|
695
|
+
Set.new(@dependencies.map(&dependency_without_type)) != Set.new(@locked_deps.map(&dependency_without_type))
|
695
696
|
end
|
696
697
|
|
697
698
|
# Remove elements from the locked specs that are expired. This will most
|
data/lib/bundler/resolver.rb
CHANGED
@@ -175,14 +175,15 @@ module Bundler
|
|
175
175
|
# ==== Returns
|
176
176
|
# <GemBundle>,nil:: If the list of dependencies can be resolved, a
|
177
177
|
# collection of gemspecs is returned. Otherwise, nil is returned.
|
178
|
-
def self.resolve(requirements, index, source_requirements = {}, base = [], gem_version_promoter = GemVersionPromoter.new, additional_base_requirements = [])
|
178
|
+
def self.resolve(requirements, index, source_requirements = {}, base = [], gem_version_promoter = GemVersionPromoter.new, additional_base_requirements = [], platforms = nil)
|
179
|
+
platforms = Set.new(platforms) if platforms
|
179
180
|
base = SpecSet.new(base) unless base.is_a?(SpecSet)
|
180
|
-
resolver = new(index, source_requirements, base, gem_version_promoter, additional_base_requirements)
|
181
|
+
resolver = new(index, source_requirements, base, gem_version_promoter, additional_base_requirements, platforms)
|
181
182
|
result = resolver.start(requirements)
|
182
183
|
SpecSet.new(result)
|
183
184
|
end
|
184
185
|
|
185
|
-
def initialize(index, source_requirements, base, gem_version_promoter, additional_base_requirements)
|
186
|
+
def initialize(index, source_requirements, base, gem_version_promoter, additional_base_requirements, platforms)
|
186
187
|
@index = index
|
187
188
|
@source_requirements = source_requirements
|
188
189
|
@base = base
|
@@ -194,6 +195,7 @@ module Bundler
|
|
194
195
|
@base_dg.add_vertex(ls.name, DepProxy.new(dep, ls.platform), true)
|
195
196
|
end
|
196
197
|
additional_base_requirements.each {|d| @base_dg.add_vertex(d.name, d) }
|
198
|
+
@platforms = platforms
|
197
199
|
@gem_version_promoter = gem_version_promoter
|
198
200
|
end
|
199
201
|
|
@@ -308,7 +310,8 @@ module Bundler
|
|
308
310
|
|
309
311
|
def requirement_satisfied_by?(requirement, activated, spec)
|
310
312
|
return false unless requirement.matches_spec?(spec) || spec.source.is_a?(Source::Gemspec)
|
311
|
-
spec.activate_platform!(requirement.__platform) ||
|
313
|
+
spec.activate_platform!(requirement.__platform) if !@platforms || @platforms.include?(requirement.__platform)
|
314
|
+
true
|
312
315
|
end
|
313
316
|
|
314
317
|
def sort_dependencies(dependencies, activated, conflicts)
|
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.14.
|
10
|
+
VERSION = "1.14.3" 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.14.
|
4
|
+
version: 1.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Arko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-01-
|
12
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: automatiek
|
@@ -389,9 +389,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
389
389
|
version: 1.3.6
|
390
390
|
requirements: []
|
391
391
|
rubyforge_project:
|
392
|
-
rubygems_version: 2.6.
|
392
|
+
rubygems_version: 2.6.9
|
393
393
|
signing_key:
|
394
394
|
specification_version: 4
|
395
395
|
summary: The best way to manage your application's dependencies
|
396
396
|
test_files: []
|
397
|
-
has_rdoc:
|