dependabot-bundler 0.202.0 → 0.205.0

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: 8feea92af53db6b41f4b68d301eaecdf6eba2e66f00f015777c6e9a9894517af
4
- data.tar.gz: ff672ec7774bed521ba47670ca3ad6e1f50d142f3e59d95535b547405e420eb1
3
+ metadata.gz: 03c990f83c04d4ed7920ef28352206cd89255c1790dbfcdc1007bb660cc5cd4f
4
+ data.tar.gz: ee6a5f051811f1d1a240a1fdae4505e53a8e740afb422bf03c3fc486f6e65a04
5
5
  SHA512:
6
- metadata.gz: f366e86b9dd215602b66e1421bcd9a246846fd81254cc297a57396808895ec9b96235ce196f7891b529a7b28325b698e5d434367f2723710612a691546444110
7
- data.tar.gz: 8d495944702d9bc8977824b8f713ef6a19cb87223093bb67111b63af8d590945eabb25e53da4fe227f868dd5a256a90b95585d879627436a7f428c4e8925aacf
6
+ metadata.gz: 0032bf9ed2e45d78293b844e85a8b478bb0451a4f447815d58338c92579d041114139452699901133ab1614f75ef25350c24e65a43e0be63ae31e28f8f1632af
7
+ data.tar.gz: 4fc5e9510d792ac820db0dacaf4d5903711cf02a28d7c721a96b33501154b62c3e3cd80fd784d251c7f49bb44468403f99e653ac6600b0694d9e02d74ae2a136
data/helpers/v1/run.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler"
3
+ gem "bundler", "~> 1.17"
4
+ require "bundler/setup"
4
5
  require "json"
5
6
 
6
7
  $LOAD_PATH.unshift(File.expand_path("./lib", __dir__))
data/helpers/v2/build CHANGED
@@ -20,8 +20,6 @@ cp -r \
20
20
 
21
21
  cd "$install_dir"
22
22
 
23
- # NOTE: Sets `BUNDLED WITH` to match the installed v2 version in Gemfile.lock
24
- # forcing specs and native helpers to run with the same version
25
- BUNDLER_VERSION=2.3.18 bundle config --local path ".bundle"
26
- BUNDLER_VERSION=2.3.18 bundle config --local without "test"
27
- BUNDLER_VERSION=2.3.18 bundle install
23
+ bundle config --local path ".bundle"
24
+ bundle config --local without "test"
25
+ bundle install
data/helpers/v2/run.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler"
3
+ gem "bundler", "~> 2.3"
4
+ require "bundler/setup"
4
5
  require "json"
5
6
 
6
7
  $LOAD_PATH.unshift(File.expand_path("./lib", __dir__))
@@ -3,8 +3,8 @@
3
3
  module Dependabot
4
4
  module Bundler
5
5
  module Helpers
6
- V1 = "1.17.3"
7
- V2 = "2.3.18"
6
+ V1 = "1"
7
+ V2 = "2"
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
@@ -15,7 +15,7 @@ module Dependabot
15
15
  end
16
16
 
17
17
  def build(script)
18
- [timeout_command, :bundle, :exec, :ruby, script].compact.join(" ")
18
+ [timeout_command, :ruby, script].compact.join(" ")
19
19
  end
20
20
 
21
21
  private
@@ -35,8 +35,7 @@ module Dependabot
35
35
 
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
- bundler_major_version = bundler_version.split(".").first
39
- helpers_path = versioned_helper_path(bundler_major_version)
38
+ helpers_path = versioned_helper_path(bundler_version)
40
39
  ::Bundler.with_original_env do
41
40
  command = BundleCommand.
42
41
  new(options[:timeout_per_operation_seconds]).
@@ -46,8 +45,6 @@ module Dependabot
46
45
  function: function,
47
46
  args: args,
48
47
  env: {
49
- # Bundler will pick the matching installed major version
50
- "BUNDLER_VERSION" => installed_bundler_version(bundler_major_version),
51
48
  "BUNDLE_GEMFILE" => File.join(helpers_path, "Gemfile"),
52
49
  # Prevent the GEM_HOME from being set to a folder owned by root
53
50
  "GEM_HOME" => File.join(helpers_path, ".bundle")
@@ -65,13 +62,6 @@ module Dependabot
65
62
  File.join(native_helpers_root, "v#{bundler_major_version}")
66
63
  end
67
64
 
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
73
- end
74
-
75
65
  def self.native_helpers_root
76
66
  helpers_root = ENV["DEPENDABOT_NATIVE_HELPERS_PATH"]
77
67
  return File.join(helpers_root, "bundler") unless helpers_root.nil?
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.202.0
4
+ version: 0.205.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-26 00:00:00.000000000 Z
11
+ date: 2022-08-04 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.202.0
19
+ version: 0.205.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.202.0
26
+ version: 0.205.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debase
29
29
  requirement: !ruby/object:Gem::Requirement