dependabot-bundler 0.182.2 → 0.182.3

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: b6e8b17a6202f2d8376e6c74105653cb6b2f1b509a15eaefe449b7e2910cd176
4
- data.tar.gz: 497ece32e4c87242d7a265d9285d4f5b39035d484dca5c94da19ff468edf8666
3
+ metadata.gz: 2f9930097ef435f9b3bf76a340d065b02b92cd537c14978ede57a8343b90d897
4
+ data.tar.gz: b41d593a3b1ece997045749d93309cb2b3c0171114c59073fed23eea4a29a126
5
5
  SHA512:
6
- metadata.gz: c4e3b2c446bd563b4c92cecdcab9eb8b562f8f85be7cf910f0906fd22dd03490f0ec28e5dbe28028d4ff1a40499e875bb5f6a8da3e27ede67ee81e9a6f372e26
7
- data.tar.gz: 21132929ba3121c4c91aa5756e156e1c43336a3bb711df73df7293de171168e34b15176dc1f028928dda5c2056a4ca4788310a1c39a02af204d52721a280a544
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(bundler_version: bundler_major_version)
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" => 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(bundler_version:)
65
- File.join(native_helpers_root, "v#{bundler_version}")
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.2
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.2
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.2
26
+ version: 0.182.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debase
29
29
  requirement: !ruby/object:Gem::Requirement