dependabot-bundler 0.139.2 → 0.140.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/v1/spec/functions/version_resolver_spec.rb +1 -2
- data/helpers/v1/spec/shared_contexts.rb +3 -3
- data/helpers/v2/spec/functions/version_resolver_spec.rb +1 -2
- data/helpers/v2/spec/shared_contexts.rb +3 -3
- data/lib/dependabot/bundler/file_parser.rb +1 -1
- data/lib/dependabot/bundler/file_updater.rb +1 -1
- data/lib/dependabot/bundler/file_updater/lockfile_updater.rb +1 -1
- data/lib/dependabot/bundler/helpers.rb +1 -4
- data/lib/dependabot/bundler/update_checker/conflicting_dependency_resolver.rb +1 -1
- data/lib/dependabot/bundler/update_checker/force_updater.rb +1 -1
- data/lib/dependabot/bundler/update_checker/latest_version_finder/dependency_source.rb +1 -1
- data/lib/dependabot/bundler/update_checker/version_resolver.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bce8d52153fd3739d59eb3736a7c6c4dd9384047f71a02fb90024a33857b8897
|
4
|
+
data.tar.gz: 6860d643aeaedb2eb3d82e370d5e342a2fd4f92cbfc5eb957d03bd614cc36413
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1470f081ad88acde187ed65e92454e49ac8a991ace972654ffe51c91c58cd2580331916eba291e5f21d1ea1d0c43e6ea8151ab45eb4e587913425fcd81efd03
|
7
|
+
data.tar.gz: efabc72e5095ab55ab616f9bf140e05d2ff8272704af862fe13df49876e62c8722d0297cd40eca6629b24973785dddf20c7bd6b60a6fc9c7e35914b004c505c0
|
@@ -84,8 +84,7 @@ RSpec.describe Functions::VersionResolver do
|
|
84
84
|
stub_request(:get, old_index_url + "?gems=business,statesman").
|
85
85
|
to_return(
|
86
86
|
status: 200,
|
87
|
-
body: fixture("
|
88
|
-
"rubygems_responses",
|
87
|
+
body: fixture("rubygems_responses",
|
89
88
|
"dependencies-default-gemfile")
|
90
89
|
)
|
91
90
|
end
|
@@ -41,18 +41,18 @@ RSpec.shared_context "stub rubygems compact index" do
|
|
41
41
|
stub_request(:get, "https://index.rubygems.org/versions").
|
42
42
|
to_return(
|
43
43
|
status: 200,
|
44
|
-
body: fixture("
|
44
|
+
body: fixture("rubygems_responses", "index")
|
45
45
|
)
|
46
46
|
|
47
47
|
# Stub the Rubygems response for each dependency we have a fixture for
|
48
48
|
fixtures =
|
49
|
-
Dir[File.join("../../spec", "fixtures", "
|
49
|
+
Dir[File.join("../../spec", "fixtures", "rubygems_responses", "info-*")]
|
50
50
|
fixtures.each do |path|
|
51
51
|
dep_name = path.split("/").last.gsub("info-", "")
|
52
52
|
stub_request(:get, "https://index.rubygems.org/info/#{dep_name}").
|
53
53
|
to_return(
|
54
54
|
status: 200,
|
55
|
-
body: fixture("
|
55
|
+
body: fixture("rubygems_responses", "info-#{dep_name}")
|
56
56
|
)
|
57
57
|
end
|
58
58
|
end
|
@@ -84,8 +84,7 @@ RSpec.describe Functions::VersionResolver do
|
|
84
84
|
stub_request(:get, old_index_url + "?gems=business,statesman").
|
85
85
|
to_return(
|
86
86
|
status: 200,
|
87
|
-
body: fixture("
|
88
|
-
"rubygems_responses",
|
87
|
+
body: fixture("rubygems_responses",
|
89
88
|
"dependencies-default-gemfile")
|
90
89
|
)
|
91
90
|
end
|
@@ -42,18 +42,18 @@ RSpec.shared_context "stub rubygems compact index" do
|
|
42
42
|
stub_request(:get, "https://index.rubygems.org/versions").
|
43
43
|
to_return(
|
44
44
|
status: 200,
|
45
|
-
body: fixture("
|
45
|
+
body: fixture("rubygems_responses", "index")
|
46
46
|
)
|
47
47
|
|
48
48
|
# Stub the Rubygems response for each dependency we have a fixture for
|
49
49
|
fixtures =
|
50
|
-
Dir[File.join("../../spec", "fixtures", "
|
50
|
+
Dir[File.join("../../spec", "fixtures", "rubygems_responses", "info-*")]
|
51
51
|
fixtures.each do |path|
|
52
52
|
dep_name = path.split("/").last.gsub("info-", "")
|
53
53
|
stub_request(:get, "https://index.rubygems.org/info/#{dep_name}").
|
54
54
|
to_return(
|
55
55
|
status: 200,
|
56
|
-
body: fixture("
|
56
|
+
body: fixture("rubygems_responses", "info-#{dep_name}")
|
57
57
|
)
|
58
58
|
end
|
59
59
|
end
|
@@ -15,10 +15,7 @@ module Dependabot
|
|
15
15
|
|
16
16
|
BUNDLER_MAJOR_VERSION_REGEX = /BUNDLED WITH\s+(?<version>\d+)\./m.freeze
|
17
17
|
|
18
|
-
|
19
|
-
def self.bundler_version(lockfile, options:)
|
20
|
-
# TODO: Remove once bundler 2 is fully supported
|
21
|
-
return V1 unless options[:bundler_2_available]
|
18
|
+
def self.bundler_version(lockfile)
|
22
19
|
return DEFAULT unless lockfile
|
23
20
|
|
24
21
|
if (matches = lockfile.content.match(BUNDLER_MAJOR_VERSION_REGEX))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.140.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.140.0
|
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.
|
26
|
+
version: 0.140.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|