dependabot-bundler 0.134.1 → 0.134.2
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/helpers/{v1/build → build} +0 -9
- data/helpers/{v1/lib → lib}/functions.rb +0 -0
- data/helpers/{v1/lib → lib}/functions/conflicting_dependency_resolver.rb +0 -0
- data/helpers/{v1/lib → lib}/functions/dependency_source.rb +0 -0
- data/helpers/{v1/lib → lib}/functions/file_parser.rb +0 -0
- data/helpers/{v1/lib → lib}/functions/force_updater.rb +0 -0
- data/helpers/{v1/lib → lib}/functions/lockfile_updater.rb +0 -0
- data/helpers/{v1/lib → lib}/functions/version_resolver.rb +0 -0
- data/helpers/{v1/monkey_patches → monkey_patches}/definition_bundler_version_patch.rb +0 -0
- data/helpers/{v1/monkey_patches → monkey_patches}/definition_ruby_version_patch.rb +0 -0
- data/helpers/{v1/monkey_patches → monkey_patches}/git_source_patch.rb +0 -0
- data/helpers/{v1/run.rb → run.rb} +0 -0
- data/lib/dependabot/bundler/file_parser.rb +4 -9
- data/lib/dependabot/bundler/file_updater.rb +2 -7
- data/lib/dependabot/bundler/file_updater/lockfile_updater.rb +2 -7
- data/lib/dependabot/bundler/native_helpers.rb +2 -31
- data/lib/dependabot/bundler/update_checker/conflicting_dependency_resolver.rb +2 -9
- data/lib/dependabot/bundler/update_checker/force_updater.rb +2 -7
- data/lib/dependabot/bundler/update_checker/latest_version_finder/dependency_source.rb +6 -18
- data/lib/dependabot/bundler/update_checker/shared_bundler_helpers.rb +4 -9
- data/lib/dependabot/bundler/update_checker/version_resolver.rb +2 -7
- metadata +18 -21
- data/helpers/v1/.gitignore +0 -8
- data/helpers/v1/Gemfile +0 -16
- data/lib/dependabot/bundler/helpers.rb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2bcdbe551e6ff3f077707ac6d98f1ac1790ecc7cd9d1b2b022fece85020c518e
|
|
4
|
+
data.tar.gz: 7ca334b4843d2aabe419e39c688bd28d12f9af009a2741fc9fce3feffb98be45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5c0a9ca7e54167e4fcadbf3b1a71fab53ce2eca2278fd51d02b6fba4d4c9251106f3a0ae50c6e7857b08779c7e304df95e31bef3afb6469a4f1da5e7968796e
|
|
7
|
+
data.tar.gz: 1cc1bc4e2877a324e2b5993dc2b4e4af17380fdf1112b464a73467377335a5de1e329142bef92e7b61cd8de7743c49513d0d3e9e5114eb7888b931a164b9e9b3
|
data/helpers/{v1/build → build}
RENAMED
|
@@ -8,20 +8,11 @@ if [ -z "$install_dir" ]; then
|
|
|
8
8
|
exit 1
|
|
9
9
|
fi
|
|
10
10
|
|
|
11
|
-
if [ ! -d "$install_dir" ]; then
|
|
12
|
-
mkdir -p "$install_dir"
|
|
13
|
-
fi
|
|
14
|
-
|
|
15
11
|
helpers_dir="$(dirname "${BASH_SOURCE[0]}")"
|
|
16
12
|
cp -r \
|
|
17
13
|
"$helpers_dir/lib" \
|
|
18
14
|
"$helpers_dir/monkey_patches" \
|
|
19
15
|
"$helpers_dir/run.rb" \
|
|
20
|
-
"$helpers_dir/Gemfile" \
|
|
21
16
|
"$install_dir"
|
|
22
17
|
|
|
23
18
|
cd "$install_dir"
|
|
24
|
-
|
|
25
|
-
# NOTE: Sets `BUNDLED WITH` to match the installed v1 version in Gemfile.lock
|
|
26
|
-
# forcing specs and native helpers to run with the same version
|
|
27
|
-
BUNDLER_VERSION=1 bundle install
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,7 +5,6 @@ require "dependabot/file_parsers"
|
|
|
5
5
|
require "dependabot/file_parsers/base"
|
|
6
6
|
require "dependabot/bundler/file_updater/lockfile_updater"
|
|
7
7
|
require "dependabot/bundler/native_helpers"
|
|
8
|
-
require "dependabot/bundler/helpers"
|
|
9
8
|
require "dependabot/bundler/version"
|
|
10
9
|
require "dependabot/shared_helpers"
|
|
11
10
|
require "dependabot/errors"
|
|
@@ -130,8 +129,8 @@ module Dependabot
|
|
|
130
129
|
repo_contents_path) do
|
|
131
130
|
write_temporary_dependency_files
|
|
132
131
|
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
SharedHelpers.run_helper_subprocess(
|
|
133
|
+
command: NativeHelpers.helper_path,
|
|
135
134
|
function: "parsed_gemfile",
|
|
136
135
|
args: {
|
|
137
136
|
gemfile_name: gemfile.name,
|
|
@@ -160,8 +159,8 @@ module Dependabot
|
|
|
160
159
|
repo_contents_path) do
|
|
161
160
|
write_temporary_dependency_files
|
|
162
161
|
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
SharedHelpers.run_helper_subprocess(
|
|
163
|
+
command: NativeHelpers.helper_path,
|
|
165
164
|
function: "parsed_gemspec",
|
|
166
165
|
args: {
|
|
167
166
|
gemspec_name: file.name,
|
|
@@ -299,10 +298,6 @@ module Dependabot
|
|
|
299
298
|
select { |f| f.name.end_with?(".rb") }.
|
|
300
299
|
reject { |f| f.name == "gems.rb" }
|
|
301
300
|
end
|
|
302
|
-
|
|
303
|
-
def bundler_version
|
|
304
|
-
@bundler_version ||= Helpers.bundler_version(lockfile)
|
|
305
|
-
end
|
|
306
301
|
end
|
|
307
302
|
end
|
|
308
303
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
require "dependabot/file_updaters"
|
|
4
4
|
require "dependabot/file_updaters/base"
|
|
5
5
|
require "dependabot/bundler/native_helpers"
|
|
6
|
-
require "dependabot/bundler/helpers"
|
|
7
6
|
require "dependabot/file_updaters/vendor_updater"
|
|
8
7
|
|
|
9
8
|
module Dependabot
|
|
@@ -76,8 +75,8 @@ module Dependabot
|
|
|
76
75
|
return @vendor_cache_dir if defined?(@vendor_cache_dir)
|
|
77
76
|
|
|
78
77
|
@vendor_cache_dir =
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
SharedHelpers.run_helper_subprocess(
|
|
79
|
+
command: NativeHelpers.helper_path,
|
|
81
80
|
function: "vendor_cache_dir",
|
|
82
81
|
args: {
|
|
83
82
|
dir: repo_contents_path
|
|
@@ -160,10 +159,6 @@ module Dependabot
|
|
|
160
159
|
select { |file| file.name.end_with?(".gemspec") }.
|
|
161
160
|
reject(&:support_file?)
|
|
162
161
|
end
|
|
163
|
-
|
|
164
|
-
def bundler_version
|
|
165
|
-
@bundler_version ||= Helpers.bundler_version(lockfile)
|
|
166
|
-
end
|
|
167
162
|
end
|
|
168
163
|
end
|
|
169
164
|
end
|
|
@@ -6,7 +6,6 @@ require "dependabot/shared_helpers"
|
|
|
6
6
|
require "dependabot/errors"
|
|
7
7
|
require "dependabot/bundler/file_updater"
|
|
8
8
|
require "dependabot/bundler/native_helpers"
|
|
9
|
-
require "dependabot/bundler/helpers"
|
|
10
9
|
|
|
11
10
|
module Dependabot
|
|
12
11
|
module Bundler
|
|
@@ -65,8 +64,8 @@ module Dependabot
|
|
|
65
64
|
) do |tmp_dir|
|
|
66
65
|
write_temporary_dependency_files
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
SharedHelpers.run_helper_subprocess(
|
|
68
|
+
command: NativeHelpers.helper_path,
|
|
70
69
|
function: "update_lockfile",
|
|
71
70
|
args: {
|
|
72
71
|
gemfile_name: gemfile.name,
|
|
@@ -302,10 +301,6 @@ module Dependabot
|
|
|
302
301
|
|
|
303
302
|
lockfile.content.match?(/BUNDLED WITH\s+2/m)
|
|
304
303
|
end
|
|
305
|
-
|
|
306
|
-
def bundler_version
|
|
307
|
-
@bundler_version ||= Helpers.bundler_version(lockfile)
|
|
308
|
-
end
|
|
309
304
|
end
|
|
310
305
|
end
|
|
311
306
|
end
|
|
@@ -1,39 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "dependabot/shared_helpers"
|
|
4
|
-
|
|
5
3
|
module Dependabot
|
|
6
4
|
module Bundler
|
|
7
5
|
module NativeHelpers
|
|
8
|
-
def self.
|
|
9
|
-
|
|
10
|
-
command: helper_path(bundler_version: bundler_version),
|
|
11
|
-
function: function,
|
|
12
|
-
args: args,
|
|
13
|
-
env: {
|
|
14
|
-
# Bundler will pick the matching installed major version
|
|
15
|
-
"BUNDLER_VERSION" => bundler_version,
|
|
16
|
-
# Force bundler to use the helper Gemfile that has been bundled with
|
|
17
|
-
# v1, otherwise it will point to core's bundler/Gemfile which will
|
|
18
|
-
# be bundled with v2 once it's installed
|
|
19
|
-
"BUNDLE_GEMFILE" => File.join(versioned_helper_path(bundler_version: bundler_version), "Gemfile"),
|
|
20
|
-
# Unset ruby env set by running dependabot-core with bundle exec,
|
|
21
|
-
# forcing bundler to reset them from helpers/v1
|
|
22
|
-
"RUBYLIB" => nil,
|
|
23
|
-
"RUBYOPT" => nil,
|
|
24
|
-
"GEM_PATH" => nil,
|
|
25
|
-
"GEM_HOME" => nil
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
def self.versioned_helper_path(bundler_version:)
|
|
31
|
-
native_helper_version = "v#{bundler_version}"
|
|
32
|
-
File.join(native_helpers_root, native_helper_version)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def self.helper_path(bundler_version:)
|
|
36
|
-
"bundle exec ruby #{File.join(versioned_helper_path(bundler_version: bundler_version), 'run.rb')}"
|
|
6
|
+
def self.helper_path
|
|
7
|
+
"bundle exec ruby #{File.join(native_helpers_root, 'run.rb')}"
|
|
37
8
|
end
|
|
38
9
|
|
|
39
10
|
def self.native_helpers_root
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "dependabot/bundler/update_checker"
|
|
4
4
|
require "dependabot/bundler/native_helpers"
|
|
5
|
-
require "dependabot/bundler/helpers"
|
|
6
5
|
require "dependabot/shared_helpers"
|
|
7
6
|
|
|
8
7
|
module Dependabot
|
|
@@ -29,8 +28,8 @@ module Dependabot
|
|
|
29
28
|
# * requirement [String] the requirement on the target_dependency
|
|
30
29
|
def conflicting_dependencies(dependency:, target_version:)
|
|
31
30
|
in_a_native_bundler_context(error_handling: false) do |tmp_dir|
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
SharedHelpers.run_helper_subprocess(
|
|
32
|
+
command: NativeHelpers.helper_path,
|
|
34
33
|
function: "conflicting_dependencies",
|
|
35
34
|
args: {
|
|
36
35
|
dir: tmp_dir,
|
|
@@ -43,12 +42,6 @@ module Dependabot
|
|
|
43
42
|
)
|
|
44
43
|
end
|
|
45
44
|
end
|
|
46
|
-
|
|
47
|
-
private
|
|
48
|
-
|
|
49
|
-
def bundler_version
|
|
50
|
-
@bundler_version ||= Helpers.bundler_version(lockfile)
|
|
51
|
-
end
|
|
52
45
|
end
|
|
53
46
|
end
|
|
54
47
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
require "dependabot/bundler/file_parser"
|
|
4
4
|
require "dependabot/bundler/file_updater/lockfile_updater"
|
|
5
5
|
require "dependabot/bundler/native_helpers"
|
|
6
|
-
require "dependabot/bundler/helpers"
|
|
7
6
|
require "dependabot/bundler/update_checker"
|
|
8
7
|
require "dependabot/bundler/update_checker/requirements_updater"
|
|
9
8
|
require "dependabot/errors"
|
|
@@ -44,8 +43,8 @@ module Dependabot
|
|
|
44
43
|
|
|
45
44
|
def force_update
|
|
46
45
|
in_a_native_bundler_context(error_handling: false) do |tmp_dir|
|
|
47
|
-
updated_deps, specs =
|
|
48
|
-
|
|
46
|
+
updated_deps, specs = SharedHelpers.run_helper_subprocess(
|
|
47
|
+
command: NativeHelpers.helper_path,
|
|
49
48
|
function: "force_update",
|
|
50
49
|
args: {
|
|
51
50
|
dir: tmp_dir,
|
|
@@ -147,10 +146,6 @@ module Dependabot
|
|
|
147
146
|
|
|
148
147
|
lockfile.content.match?(/BUNDLED WITH\s+2/m)
|
|
149
148
|
end
|
|
150
|
-
|
|
151
|
-
def bundler_version
|
|
152
|
-
@bundler_version ||= Helpers.bundler_version(lockfile)
|
|
153
|
-
end
|
|
154
149
|
end
|
|
155
150
|
end
|
|
156
151
|
end
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "dependabot/bundler/native_helpers"
|
|
4
|
-
require "dependabot/bundler/helpers"
|
|
5
|
-
|
|
6
3
|
module Dependabot
|
|
7
4
|
module Bundler
|
|
8
5
|
class UpdateChecker
|
|
@@ -56,8 +53,8 @@ module Dependabot
|
|
|
56
53
|
|
|
57
54
|
SharedHelpers.with_git_configured(credentials: credentials) do
|
|
58
55
|
in_a_native_bundler_context do |tmp_dir|
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
SharedHelpers.run_helper_subprocess(
|
|
57
|
+
command: NativeHelpers.helper_path,
|
|
61
58
|
function: "depencency_source_latest_git_version",
|
|
62
59
|
args: {
|
|
63
60
|
dir: tmp_dir,
|
|
@@ -101,8 +98,8 @@ module Dependabot
|
|
|
101
98
|
def private_registry_versions
|
|
102
99
|
@private_registry_versions ||=
|
|
103
100
|
in_a_native_bundler_context do |tmp_dir|
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
SharedHelpers.run_helper_subprocess(
|
|
102
|
+
command: NativeHelpers.helper_path,
|
|
106
103
|
function: "private_registry_versions",
|
|
107
104
|
args: {
|
|
108
105
|
dir: tmp_dir,
|
|
@@ -121,8 +118,8 @@ module Dependabot
|
|
|
121
118
|
return @source_type = RUBYGEMS unless gemfile
|
|
122
119
|
|
|
123
120
|
@source_type = in_a_native_bundler_context do |tmp_dir|
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
SharedHelpers.run_helper_subprocess(
|
|
122
|
+
command: NativeHelpers.helper_path,
|
|
126
123
|
function: "dependency_source_type",
|
|
127
124
|
args: {
|
|
128
125
|
dir: tmp_dir,
|
|
@@ -138,15 +135,6 @@ module Dependabot
|
|
|
138
135
|
dependency_files.find { |f| f.name == "Gemfile" } ||
|
|
139
136
|
dependency_files.find { |f| f.name == "gems.rb" }
|
|
140
137
|
end
|
|
141
|
-
|
|
142
|
-
def lockfile
|
|
143
|
-
dependency_files.find { |f| f.name == "Gemfile.lock" } ||
|
|
144
|
-
dependency_files.find { |f| f.name == "gems.locked" }
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
def bundler_version
|
|
148
|
-
@bundler_version ||= Helpers.bundler_version(lockfile)
|
|
149
|
-
end
|
|
150
138
|
end
|
|
151
139
|
end
|
|
152
140
|
end
|
|
@@ -4,7 +4,6 @@ require "excon"
|
|
|
4
4
|
|
|
5
5
|
require "dependabot/bundler/update_checker"
|
|
6
6
|
require "dependabot/bundler/native_helpers"
|
|
7
|
-
require "dependabot/bundler/helpers"
|
|
8
7
|
require "dependabot/shared_helpers"
|
|
9
8
|
require "dependabot/errors"
|
|
10
9
|
|
|
@@ -164,8 +163,8 @@ module Dependabot
|
|
|
164
163
|
|
|
165
164
|
def inaccessible_git_dependencies
|
|
166
165
|
in_a_native_bundler_context(error_handling: false) do |tmp_dir|
|
|
167
|
-
git_specs =
|
|
168
|
-
|
|
166
|
+
git_specs = SharedHelpers.run_helper_subprocess(
|
|
167
|
+
command: NativeHelpers.helper_path,
|
|
169
168
|
function: "git_specs",
|
|
170
169
|
args: {
|
|
171
170
|
dir: tmp_dir,
|
|
@@ -188,8 +187,8 @@ module Dependabot
|
|
|
188
187
|
|
|
189
188
|
def jfrog_source
|
|
190
189
|
in_a_native_bundler_context(error_handling: false) do |dir|
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
SharedHelpers.run_helper_subprocess(
|
|
191
|
+
command: NativeHelpers.helper_path,
|
|
193
192
|
function: "jfrog_source",
|
|
194
193
|
args: {
|
|
195
194
|
dir: dir,
|
|
@@ -237,10 +236,6 @@ module Dependabot
|
|
|
237
236
|
|
|
238
237
|
lockfile.content.match?(/BUNDLED WITH\s+2/m)
|
|
239
238
|
end
|
|
240
|
-
|
|
241
|
-
def bundler_version
|
|
242
|
-
@bundler_version ||= Helpers.bundler_version(lockfile)
|
|
243
|
-
end
|
|
244
239
|
end
|
|
245
240
|
end
|
|
246
241
|
end
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require "excon"
|
|
4
4
|
|
|
5
|
-
require "dependabot/bundler/helpers"
|
|
6
5
|
require "dependabot/bundler/update_checker"
|
|
7
6
|
require "dependabot/bundler/file_updater/lockfile_updater"
|
|
8
7
|
require "dependabot/bundler/requirement"
|
|
@@ -76,8 +75,8 @@ module Dependabot
|
|
|
76
75
|
# some errors we want to handle specifically ourselves, including
|
|
77
76
|
# potentially retrying in the case of the Ruby version being locked
|
|
78
77
|
in_a_native_bundler_context(error_handling: false) do |tmp_dir|
|
|
79
|
-
details =
|
|
80
|
-
|
|
78
|
+
details = SharedHelpers.run_helper_subprocess(
|
|
79
|
+
command: NativeHelpers.helper_path,
|
|
81
80
|
function: "resolve_version",
|
|
82
81
|
args: {
|
|
83
82
|
dependency_name: dependency.name,
|
|
@@ -219,10 +218,6 @@ module Dependabot
|
|
|
219
218
|
|
|
220
219
|
lockfile.content.match?(/BUNDLED WITH\s+2/m)
|
|
221
220
|
end
|
|
222
|
-
|
|
223
|
-
def bundler_version
|
|
224
|
-
@bundler_version ||= Helpers.bundler_version(lockfile)
|
|
225
|
-
end
|
|
226
221
|
end
|
|
227
222
|
end
|
|
228
223
|
end
|
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.134.
|
|
4
|
+
version: 0.134.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-03-
|
|
11
|
+
date: 2021-03-03 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.134.
|
|
19
|
+
version: 0.134.2
|
|
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.134.
|
|
26
|
+
version: 0.134.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: byebug
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -100,14 +100,14 @@ dependencies:
|
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 1.
|
|
103
|
+
version: 1.11.0
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 1.
|
|
110
|
+
version: 1.11.0
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: simplecov
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -185,20 +185,18 @@ executables: []
|
|
|
185
185
|
extensions: []
|
|
186
186
|
extra_rdoc_files: []
|
|
187
187
|
files:
|
|
188
|
-
- helpers/
|
|
189
|
-
- helpers/
|
|
190
|
-
- helpers/
|
|
191
|
-
- helpers/
|
|
192
|
-
- helpers/
|
|
193
|
-
- helpers/
|
|
194
|
-
- helpers/
|
|
195
|
-
- helpers/
|
|
196
|
-
- helpers/
|
|
197
|
-
- helpers/
|
|
198
|
-
- helpers/
|
|
199
|
-
- helpers/
|
|
200
|
-
- helpers/v1/monkey_patches/git_source_patch.rb
|
|
201
|
-
- helpers/v1/run.rb
|
|
188
|
+
- helpers/build
|
|
189
|
+
- helpers/lib/functions.rb
|
|
190
|
+
- helpers/lib/functions/conflicting_dependency_resolver.rb
|
|
191
|
+
- helpers/lib/functions/dependency_source.rb
|
|
192
|
+
- helpers/lib/functions/file_parser.rb
|
|
193
|
+
- helpers/lib/functions/force_updater.rb
|
|
194
|
+
- helpers/lib/functions/lockfile_updater.rb
|
|
195
|
+
- helpers/lib/functions/version_resolver.rb
|
|
196
|
+
- helpers/monkey_patches/definition_bundler_version_patch.rb
|
|
197
|
+
- helpers/monkey_patches/definition_ruby_version_patch.rb
|
|
198
|
+
- helpers/monkey_patches/git_source_patch.rb
|
|
199
|
+
- helpers/run.rb
|
|
202
200
|
- lib/dependabot/bundler.rb
|
|
203
201
|
- lib/dependabot/bundler/file_fetcher.rb
|
|
204
202
|
- lib/dependabot/bundler/file_fetcher/child_gemfile_finder.rb
|
|
@@ -218,7 +216,6 @@ files:
|
|
|
218
216
|
- lib/dependabot/bundler/file_updater/lockfile_updater.rb
|
|
219
217
|
- lib/dependabot/bundler/file_updater/requirement_replacer.rb
|
|
220
218
|
- lib/dependabot/bundler/file_updater/ruby_requirement_setter.rb
|
|
221
|
-
- lib/dependabot/bundler/helpers.rb
|
|
222
219
|
- lib/dependabot/bundler/metadata_finder.rb
|
|
223
220
|
- lib/dependabot/bundler/native_helpers.rb
|
|
224
221
|
- lib/dependabot/bundler/requirement.rb
|
data/helpers/v1/.gitignore
DELETED
data/helpers/v1/Gemfile
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# TODO: Look into removing this. "find" used to get required from common's
|
|
4
|
-
# gemspec so we've added it here for backwards compatability during bundler 2
|
|
5
|
-
# rollout.
|
|
6
|
-
#
|
|
7
|
-
# NOTE: If we don't require it and a customers `.gemspec` uses Find without
|
|
8
|
-
# requiring it, we'll start raising a DependencyFileNotEvaluatable error which
|
|
9
|
-
# is probably the right thing to do
|
|
10
|
-
require "find"
|
|
11
|
-
|
|
12
|
-
source "https://rubygems.org"
|
|
13
|
-
|
|
14
|
-
# NOTE: This is intentionally left blank as it's currently only used to force
|
|
15
|
-
# bundler to use v1 when executing native helpers by pointing the BUNDLE_GEMFILE
|
|
16
|
-
# env to this Gemfile in Dependabot::Bundler::NativeHelpers
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Dependabot
|
|
4
|
-
module Bundler
|
|
5
|
-
module Helpers
|
|
6
|
-
V1 = "1"
|
|
7
|
-
V2 = "2"
|
|
8
|
-
|
|
9
|
-
# TODO: Add support for bundler v2
|
|
10
|
-
# return "v2" if lockfile.content.match?(/BUNDLED WITH\s+2/m)
|
|
11
|
-
def self.bundler_version(_lockfile)
|
|
12
|
-
V1
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|