bundler-patch 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/bundler-patch.gemspec +1 -1
- data/lib/bundler/patch/conservative_resolver.rb +10 -0
- data/lib/bundler/patch/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: e73070d64f11cc9e5a6b723cc54d196ba46bd157
|
4
|
+
data.tar.gz: 288593a0ed9fe0d9cef8251414fa8773c127cc6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15e6134b2f6851ae6ecbb9293f61c3a547a3f7be3a32d56ec096c463593dc6713def084b1693ce82bd62540cb2aa5c6d5c00d870f97913162bcb1c6e46312582
|
7
|
+
data.tar.gz: 7378f5539c13b5af2b9c0190aeca169b1dcf3a120262a7be7b5a6d9a9743123534080a87b60dc091eb04014ae571b3d4b6aa508977bb5503958e5c7be6e37a9f
|
data/README.md
CHANGED
@@ -8,6 +8,8 @@ current version, over the latest minor releases or the latest major releases.
|
|
8
8
|
This is somewhat opposite from `bundle update` which prefers newest/major
|
9
9
|
versions first.
|
10
10
|
|
11
|
+
Works with Bundler 1.10.x and higher. Last confirmed with 1.12.0.rc.4.
|
12
|
+
|
11
13
|
## Installation
|
12
14
|
|
13
15
|
$ gem install bundler-patch
|
data/bundler-patch.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_dependency 'bundler-advise', '~> 1.0', '>= 1.0.3'
|
23
23
|
spec.add_dependency 'slop', '~> 4.0'
|
24
|
-
spec.add_dependency 'bundler', '~> 1.10
|
24
|
+
spec.add_dependency 'bundler', '~> 1.10'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler-fixture', '~> 1.3'
|
27
27
|
spec.add_development_dependency 'pry'
|
@@ -2,6 +2,16 @@ module Bundler::Patch
|
|
2
2
|
class ConservativeResolver < Bundler::Resolver
|
3
3
|
attr_accessor :locked_specs, :gems_to_update, :strict, :minor_preferred, :prefer_minimal
|
4
4
|
|
5
|
+
def initialize(index, source_requirements, base)
|
6
|
+
# hack for 1.10 and 1.11 support
|
7
|
+
case Bundler::Resolver.instance_method(:initialize).arity
|
8
|
+
when 3
|
9
|
+
super(index, source_requirements, base)
|
10
|
+
when 4
|
11
|
+
super(index, source_requirements, base, nil)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
5
15
|
def search_for(dependency)
|
6
16
|
res = super(dependency)
|
7
17
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-patch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chrismo
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.10
|
53
|
+
version: '1.10'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.10
|
60
|
+
version: '1.10'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: bundler-fixture
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|