dependabot-bundler 0.182.2 → 0.182.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dependabot/bundler/native_helpers.rb +11 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f9930097ef435f9b3bf76a340d065b02b92cd537c14978ede57a8343b90d897
|
|
4
|
+
data.tar.gz: b41d593a3b1ece997045749d93309cb2b3c0171114c59073fed23eea4a29a126
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e73af493a593ad30a02e6ab5aa4bd49f60083fdf9443eb96e270eb909478664ef3749a3e7b0550a024ae0564ebfea03f5023dcf9bedb12644dbaa5bee25741a
|
|
7
|
+
data.tar.gz: f3f3d4553df9ae695e18904435bac8ac916bf0640db2d7ba5f9e097fc59388bcd2d290a53759292382a4ef338ecbef29bfabc069b868d5214013b4ab477957ff
|
|
@@ -36,7 +36,7 @@ module Dependabot
|
|
|
36
36
|
def self.run_bundler_subprocess(function:, args:, bundler_version:, options: {})
|
|
37
37
|
# Run helper suprocess with all bundler-related ENV variables removed
|
|
38
38
|
bundler_major_version = bundler_version.split(".").first
|
|
39
|
-
helpers_path = versioned_helper_path(
|
|
39
|
+
helpers_path = versioned_helper_path(bundler_major_version)
|
|
40
40
|
::Bundler.with_original_env do
|
|
41
41
|
command = BundleCommand.
|
|
42
42
|
new(options[:timeout_per_operation_seconds]).
|
|
@@ -47,7 +47,7 @@ module Dependabot
|
|
|
47
47
|
args: args,
|
|
48
48
|
env: {
|
|
49
49
|
# Bundler will pick the matching installed major version
|
|
50
|
-
"BUNDLER_VERSION" =>
|
|
50
|
+
"BUNDLER_VERSION" => installed_bundler_version(bundler_major_version),
|
|
51
51
|
"BUNDLE_GEMFILE" => File.join(helpers_path, "Gemfile"),
|
|
52
52
|
# Prevent the GEM_HOME from being set to a folder owned by root
|
|
53
53
|
"GEM_HOME" => File.join(helpers_path, ".bundle")
|
|
@@ -61,8 +61,15 @@ module Dependabot
|
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
-
def self.versioned_helper_path(
|
|
65
|
-
File.join(native_helpers_root, "v#{
|
|
64
|
+
def self.versioned_helper_path(bundler_major_version)
|
|
65
|
+
File.join(native_helpers_root, "v#{bundler_major_version}")
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Maps the major version unto the specific version we have installed
|
|
69
|
+
def self.installed_bundler_version(bundler_major_version)
|
|
70
|
+
return Helpers::V1 if bundler_major_version == "1"
|
|
71
|
+
|
|
72
|
+
Helpers::V2
|
|
66
73
|
end
|
|
67
74
|
|
|
68
75
|
def self.native_helpers_root
|
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.182.
|
|
4
|
+
version: 0.182.3
|
|
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.182.
|
|
19
|
+
version: 0.182.3
|
|
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.182.
|
|
26
|
+
version: 0.182.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: debase
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|