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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cea5014538128815ea1ee0d391d71280e703663a69dad5ee6a9f8c30059b33d
4
- data.tar.gz: d12e2a67cc6b8aea8b95be0ac1908941464ae5fb77b15ee94fff757a80bf6675
3
+ metadata.gz: 9b039d63f92d02f3430b4be1ab22424a3b469477e78ebaf1ee83c5d4deb9671e
4
+ data.tar.gz: 7547c11aff791bb4b96dc30f90bf6533fa753aefe5d82149a9b4b6c0419dd652
5
5
  SHA512:
6
- metadata.gz: 766afa6f3226f4ebbf46a3a9e6b14eb3c2b9d28da0a24e1b5a0ad4f3c6e6e7e01047c1902d070cbbbf007ba0b963c282ec17baf98618634befe3e2ffdde5f67d
7
- data.tar.gz: 01a5c62d6ee5ee5a5462625af55f4df60d480f3f9a642668aa16173be7a1af013e85b11ba13443ce6614cc76a60d2f18b34b5edc3c1415e9a22e39a927e980e7
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] +
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.125.1"
4
+ VERSION = "0.125.2"
5
5
  end
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.1
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-05 00:00:00.000000000 Z
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