dependabot-bundler 0.160.0 → 0.160.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
  SHA256:
3
- metadata.gz: 0764b4f91a6505836f8a4351e9370e79b8a13e7cfeaf870d27e07f1efecc99e7
4
- data.tar.gz: 65b74101e5c82dc23a2ef0bf3de0b1f34266ffe0557c9143ff5de7550d1c8f36
3
+ metadata.gz: 191a073daaf7e5c9cc46184bfa27aa32985f5fd099a7ac51d7e5d391a65011b3
4
+ data.tar.gz: c1ed1bb33e2162b8af47b0ff829d1d9c43d5545e3ab5535418fc7900bb3c26db
5
5
  SHA512:
6
- metadata.gz: 2c1ebdf14094b10c3b330f5e75f1ed8d2db93646ffbbe714cb22c4a5aad5c4ef784b5ca9428e792c982d5d6b0451dbcc70fa8cfd7c9543bc8669217bf6ec3861
7
- data.tar.gz: 3f46ed39c6e90bb48a1e59710b0fc09e32d3f609ce078334d314beea310101bbb08e698d36a8716210fb8d8a9795a72af2d4da0b0ae58205ef869e9ff347efd9
6
+ metadata.gz: 58c2220e977f068febcf8df6f637489a3201718ee210716301ead513497900b181c7c2d67845e3a2fb3b8e3e5b86cf04db1b545f7bb96f4d9d1f8ce6135c614a
7
+ data.tar.gz: 429998c47da50a554324ad1cd7bf238f810547260a4e83232924c42df8beba23de9065fb9a22655d0463c6102f4c98d6eb8d19f7bf7dff8486bc174f91b42f96
data/helpers/v1/build CHANGED
@@ -20,6 +20,6 @@ cd "$install_dir"
20
20
 
21
21
  # NOTE: Sets `BUNDLED WITH` to match the installed v1 version in Gemfile.lock
22
22
  # forcing native helpers to run with the same version
23
- BUNDLER_VERSION=1 bundle config set --local path ".bundle"
24
- BUNDLER_VERSION=1 bundle config set --local without "test"
25
- BUNDLER_VERSION=1 bundle install
23
+ BUNDLER_VERSION=1.17.3 bundle config set --local path ".bundle"
24
+ BUNDLER_VERSION=1.17.3 bundle config set --local without "test"
25
+ BUNDLER_VERSION=1.17.3 bundle install
data/helpers/v2/build CHANGED
@@ -20,6 +20,6 @@ cd "$install_dir"
20
20
 
21
21
  # NOTE: Sets `BUNDLED WITH` to match the installed v2 version in Gemfile.lock
22
22
  # forcing specs and native helpers to run with the same version
23
- BUNDLER_VERSION=2 bundle config set --local path ".bundle"
24
- BUNDLER_VERSION=2 bundle config set --local without "test"
25
- BUNDLER_VERSION=2 bundle install
23
+ BUNDLER_VERSION=2.2.26 bundle config set --local path ".bundle"
24
+ BUNDLER_VERSION=2.2.26 bundle config set --local without "test"
25
+ BUNDLER_VERSION=2.2.26 bundle install
@@ -106,7 +106,7 @@ module Functions
106
106
  gemfile_name,
107
107
  lockfile_name,
108
108
  gems: gems_to_unlock + subdependencies,
109
- lock_shared_dependencies: true
109
+ conservative: true
110
110
  )
111
111
 
112
112
  # Remove the Gemfile / gemspec requirements on the gems we're
@@ -97,7 +97,7 @@ module Functions
97
97
  gemfile_name,
98
98
  lockfile_name,
99
99
  gems: dependencies_to_unlock,
100
- lock_shared_dependencies: true
100
+ conservative: true
101
101
  )
102
102
  end
103
103
 
@@ -3,8 +3,8 @@
3
3
  module Dependabot
4
4
  module Bundler
5
5
  module Helpers
6
- V1 = "1"
7
- V2 = "2"
6
+ V1 = "1.17.3"
7
+ V2 = "2.2.26"
8
8
  # If we are updating a project with no Gemfile.lock, we default to the
9
9
  # newest version we support
10
10
  DEFAULT = V2
@@ -31,7 +31,7 @@ module Dependabot
31
31
  if (matches = lockfile.content.match(BUNDLER_MAJOR_VERSION_REGEX))
32
32
  matches[:version]
33
33
  else
34
- FAILOVER
34
+ "1"
35
35
  end
36
36
  end
37
37
  end
@@ -8,17 +8,18 @@ module Dependabot
8
8
  module NativeHelpers
9
9
  def self.run_bundler_subprocess(function:, args:, bundler_version:)
10
10
  # Run helper suprocess with all bundler-related ENV variables removed
11
+ bundler_major_version = bundler_version.split(".").first
11
12
  ::Bundler.with_original_env do
12
13
  SharedHelpers.run_helper_subprocess(
13
- command: helper_path(bundler_version: bundler_version),
14
+ command: helper_path(bundler_version: bundler_major_version),
14
15
  function: function,
15
16
  args: args,
16
17
  env: {
17
18
  # Bundler will pick the matching installed major version
18
19
  "BUNDLER_VERSION" => bundler_version,
19
- "BUNDLE_GEMFILE" => File.join(versioned_helper_path(bundler_version: bundler_version), "Gemfile"),
20
+ "BUNDLE_GEMFILE" => File.join(versioned_helper_path(bundler_version: bundler_major_version), "Gemfile"),
20
21
  # Prevent the GEM_HOME from being set to a folder owned by root
21
- "GEM_HOME" => File.join(versioned_helper_path(bundler_version: bundler_version), ".bundle")
22
+ "GEM_HOME" => File.join(versioned_helper_path(bundler_version: bundler_major_version), ".bundle")
22
23
  }
23
24
  )
24
25
  rescue SharedHelpers::HelperSubprocessFailed => e
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.160.0
4
+ version: 0.160.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-18 00:00:00.000000000 Z
11
+ date: 2021-08-26 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.160.0
19
+ version: 0.160.1
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.160.0
26
+ version: 0.160.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement