dependabot-bundler 0.113.5 → 0.113.6

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
  SHA256:
3
- metadata.gz: a92695981767e86d6dd31d437dc9f30ac3812b8633a2d12b9b479d77b12a712f
4
- data.tar.gz: b474a2cefd9097017d39f6d4260db44ceb878eba917b8160d713e5cf53043ec7
3
+ metadata.gz: 5bc537f68ecb48a8d31acbeb8235c450e3009e2bcf61f14858b92ba891ddd3ce
4
+ data.tar.gz: 61b4d994eb21fe223208bbae141daa7cecff5d3079d33416ebacc2de454ee54e
5
5
  SHA512:
6
- metadata.gz: bbe94b833e9d80103628bc5c29e01269cd3d511719d68c6b329d0e2160132ff653dca3fe33d4cf650e06929c8e8c1630d8ce56b15b1356b1796791705a520e6e
7
- data.tar.gz: c2134ab5b324eebfdfd39c3e6254f3ade76365195e1ca861c56813214b8a1bb48e49f319720bc104b3267dbf1ef25c639465cb430eaf3ae0d7e9c36769e6edda
6
+ metadata.gz: 9b99e38ee8ff5ff54597de917725bc9d580558e8abd36e62c5707cd86fee1cf465aa89b17189f4a54d26c454843f328f0918e4aeec01756ca2b546da9ceb4261
7
+ data.tar.gz: a23c3d3a703bc0e0d2144a338f8a707d79c683d105287c2537cc2baa20e6bb83f87d4b919e5ce00c86df313919d9142f2627c0dcbac872578d77e98674e71067
@@ -172,6 +172,8 @@ module Dependabot
172
172
  map(&:name).map(&:to_s)
173
173
  allowed_new_unlocks = all_deps - top_level - dependencies_to_unlock
174
174
 
175
+ raise if allowed_new_unlocks.none?
176
+
175
177
  # Unlock any sub-dependencies that Bundler reports caused the
176
178
  # conflict
177
179
  potentials_deps =
@@ -181,10 +183,15 @@ module Dependabot
181
183
  tree.find { |req| allowed_new_unlocks.include?(req.name) }
182
184
  end.compact.map(&:name)
183
185
 
184
- # If there's nothing more we can unlock, give up
185
- raise if potentials_deps.none?
186
+ # If there are specific dependencies we can unlock, unlock them
187
+ if potentials_deps.any?
188
+ return dependencies_to_unlock.append(*potentials_deps)
189
+ end
186
190
 
187
- dependencies_to_unlock.append(*potentials_deps)
191
+ # Fall back to unlocking *all* sub-dependencies. This is required
192
+ # because Bundler's VersionConflict objects don't include enough
193
+ # information to chart the full path through all conflicts unwound
194
+ dependencies_to_unlock.append(*allowed_new_unlocks)
188
195
  end
189
196
 
190
197
  def build_definition(dependencies_to_unlock)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.113.5
4
+ version: 0.113.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.113.5
19
+ version: 0.113.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.113.5
26
+ version: 0.113.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '12'
61
+ version: '13'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '12'
68
+ version: '13'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement