dependabot-common 0.134.1 → 0.134.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dependabot/shared_helpers.rb +3 -14
- data/lib/dependabot/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af0aee377b66b5d3f01d1179fc2e0fd74af78e19ec1e599df3cdbd33f0ddce83
|
4
|
+
data.tar.gz: 69dceffc5ffd585b9334e6a423b7f83cdfee05356153745e008689014f58c2a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05d0810790fdbe28267121eb5925ad2f4c09237fb2f653e2d278e9f11797b5a6b6a891159ddf3f9341c822e7f230602787c4066c0c0f3a35843f22779bc1cf8d
|
7
|
+
data.tar.gz: 041a97b12c437c40f27667a0e29c786366f1a99a32e0f08de71fe1124e9e21d480f5b0a33386d77e8d39485ec66c7cce993a873cd6d97efb41debffa61de5c78
|
@@ -75,17 +75,13 @@ module Dependabot
|
|
75
75
|
start = Time.now
|
76
76
|
stdin_data = JSON.dump(function: function, args: args)
|
77
77
|
cmd = allow_unsafe_shell_command ? command : escape_command(command)
|
78
|
-
|
79
|
-
# NOTE: For debugging native helpers in specs and dry-run: outputs the
|
80
|
-
# bash command to run in the tmp directory created by
|
81
|
-
# in_a_temporary_directory
|
78
|
+
env_cmd = [env, cmd].compact
|
82
79
|
if ENV["DEBUG_FUNCTION"] == function
|
83
|
-
|
80
|
+
escaped_stdin_data = stdin_data.gsub("\"", "\\\"")
|
81
|
+
puts "$ cd #{Dir.pwd} && echo \"#{escaped_stdin_data}\" | #{env_cmd.join(' ')}"
|
84
82
|
# Pause execution so we can run helpers inside the temporary directory
|
85
83
|
byebug # rubocop:disable Lint/Debugger
|
86
84
|
end
|
87
|
-
|
88
|
-
env_cmd = [env, cmd].compact
|
89
85
|
stdout, stderr, process = Open3.capture3(*env_cmd, stdin_data: stdin_data)
|
90
86
|
time_taken = Time.now - start
|
91
87
|
|
@@ -290,12 +286,5 @@ module Dependabot
|
|
290
286
|
error_context: error_context
|
291
287
|
)
|
292
288
|
end
|
293
|
-
|
294
|
-
def self.helper_subprocess_bash_command(command:, stdin_data:, env:)
|
295
|
-
escaped_stdin_data = stdin_data.gsub("\"", "\\\"")
|
296
|
-
env_keys = env ? env.compact.map { |k, v| "#{k}=#{v}" }.join(" ") + " " : ""
|
297
|
-
"$ cd #{Dir.pwd} && echo \"#{escaped_stdin_data}\" | #{env_keys}#{command}"
|
298
|
-
end
|
299
|
-
private_class_method :helper_subprocess_bash_command
|
300
289
|
end
|
301
290
|
end
|
data/lib/dependabot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-common
|
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: aws-sdk-codecommit
|
@@ -284,14 +284,14 @@ dependencies:
|
|
284
284
|
requirements:
|
285
285
|
- - "~>"
|
286
286
|
- !ruby/object:Gem::Version
|
287
|
-
version: 1.
|
287
|
+
version: 1.11.0
|
288
288
|
type: :development
|
289
289
|
prerelease: false
|
290
290
|
version_requirements: !ruby/object:Gem::Requirement
|
291
291
|
requirements:
|
292
292
|
- - "~>"
|
293
293
|
- !ruby/object:Gem::Version
|
294
|
-
version: 1.
|
294
|
+
version: 1.11.0
|
295
295
|
- !ruby/object:Gem::Dependency
|
296
296
|
name: simplecov
|
297
297
|
requirement: !ruby/object:Gem::Requirement
|