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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3c93c22ec89fe88cd7225e53b51f4367109dcc5
4
- data.tar.gz: db75eca98eb9622a9299668d7c8d5e77868b73f5
3
+ metadata.gz: e73070d64f11cc9e5a6b723cc54d196ba46bd157
4
+ data.tar.gz: 288593a0ed9fe0d9cef8251414fa8773c127cc6f
5
5
  SHA512:
6
- metadata.gz: 2cb458c1bfb71fd70fc1fc5145caa97c391aead8dddbc8fbc292de9ea310bdc47d3b15f5b63c0dc7325e6e53a502a2be0bfc5a5a7c6921aa653407d15e2920fa
7
- data.tar.gz: 799ce18e825ddc8027b9ac06553874e094262f0f1d23951cf863b28fc402d4f5d1eb37f95c21fecf6d668f19730cd6810242eb533fd6e5241226f4d29d486589
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
@@ -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.0' # TODO: does not work with 1.11.x yet
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
 
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Patch
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
  end
5
5
  end
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.0
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.0
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.0
60
+ version: '1.10'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: bundler-fixture
63
63
  requirement: !ruby/object:Gem::Requirement