dependabot-common 0.125.1 → 0.125.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/lib/dependabot/shared_helpers.rb +8 -0
- data/lib/dependabot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b039d63f92d02f3430b4be1ab22424a3b469477e78ebaf1ee83c5d4deb9671e
|
4
|
+
data.tar.gz: 7547c11aff791bb4b96dc30f90bf6533fa753aefe5d82149a9b4b6c0419dd652
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f976fbacfa51ec2f84456878479fdc43f5f512543d8e6fec85b87c7b058f3d109bfaa5a8dd347c5c3729525a1cf44a7a0ac922671c879d281171bf6021c50e09
|
7
|
+
data.tar.gz: 8dc74b0f09ee0e6a5707ec9e369b48cb9c4f35687d5243f0ee971a8820bdc18bc9ae874b0489bd314c6a04ad1de88802928df19e049a41e37da04ba415ba1c18
|
@@ -83,6 +83,7 @@ module Dependabot
|
|
83
83
|
Shellwords.join(command_parts)
|
84
84
|
end
|
85
85
|
|
86
|
+
# rubocop:disable Metrics/MethodLength
|
86
87
|
def self.run_helper_subprocess(command:, function:, args:, env: nil,
|
87
88
|
stderr_to_stdout: false,
|
88
89
|
allow_unsafe_shell_command: false)
|
@@ -90,6 +91,12 @@ module Dependabot
|
|
90
91
|
stdin_data = JSON.dump(function: function, args: args)
|
91
92
|
cmd = allow_unsafe_shell_command ? command : escape_command(command)
|
92
93
|
env_cmd = [env, cmd].compact
|
94
|
+
if ENV["DEBUG_FUNCTION"] == function
|
95
|
+
escaped_stdin_data = stdin_data.gsub("\"", "\\\"")
|
96
|
+
puts "$ cd #{Dir.pwd} && echo \"#{escaped_stdin_data}\" | #{env_cmd.join(' ')}"
|
97
|
+
# Pause execution so we can run helpers inside the temporary directory
|
98
|
+
byebug # rubocop:disable Lint/Debugger
|
99
|
+
end
|
93
100
|
stdout, stderr, process = Open3.capture3(*env_cmd, stdin_data: stdin_data)
|
94
101
|
time_taken = Time.now - start
|
95
102
|
|
@@ -129,6 +136,7 @@ module Dependabot
|
|
129
136
|
error_context: error_context
|
130
137
|
)
|
131
138
|
end
|
139
|
+
# rubocop:enable Metrics/MethodLength
|
132
140
|
|
133
141
|
def self.excon_middleware
|
134
142
|
Excon.defaults[:middlewares] +
|
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.125.
|
4
|
+
version: 0.125.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-codecommit
|