octokit 4.23.0 → 4.24.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of octokit might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/octokit/client.rb +1 -0
- data/lib/octokit/error.rb +3 -3
- data/lib/octokit/version.rb +1 -1
- data/lib/octokit.rb +3 -5
- 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: 1799b946b7c31e79fac5c7119b602d1722151236d02e732a664870a8227f218e
|
4
|
+
data.tar.gz: 21496697905a025d01e370816a828ddb7ac4201a9ec845ec0d1290d77c44f858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad2e6793ef84011dd8e290d18773a0c8c5f24e3a584ccdc24d64696382cd6bfca146cd07f6fe7e8b1ee40b9f564a4a2298453bd0c548374c01c7b9e47150bd7
|
7
|
+
data.tar.gz: 9ef11f4b675a4b08d7d5fafbbccad82b2c1f05488c89604c59af6488222e44e55952a286166e8a3f9658523c3707b6ce35c8942d83dbcbbfae8a6f0b360e8940
|
data/lib/octokit/client.rb
CHANGED
data/lib/octokit/error.rb
CHANGED
@@ -180,7 +180,7 @@ module Octokit
|
|
180
180
|
def response_error_summary
|
181
181
|
return nil unless data.is_a?(Hash) && !Array(data[:errors]).empty?
|
182
182
|
|
183
|
-
summary = "\nError summary:\n"
|
183
|
+
summary = +"\nError summary:\n"
|
184
184
|
summary << data[:errors].map do |error|
|
185
185
|
if error.is_a? Hash
|
186
186
|
error.map { |k,v| " #{k}: #{v}" }
|
@@ -195,8 +195,8 @@ module Octokit
|
|
195
195
|
def build_error_message
|
196
196
|
return nil if @response.nil?
|
197
197
|
|
198
|
-
message =
|
199
|
-
message << redact_url(@response[:url].to_s) + ": "
|
198
|
+
message = +"#{@response[:method].to_s.upcase} "
|
199
|
+
message << redact_url(@response[:url].to_s.dup) + ": "
|
200
200
|
message << "#{@response[:status]} - "
|
201
201
|
message << "#{response_message}" unless response_message.nil?
|
202
202
|
message << "#{response_error}" unless response_error.nil?
|
data/lib/octokit/version.rb
CHANGED
data/lib/octokit.rb
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
require 'octokit/default'
|
2
|
-
require 'octokit/
|
2
|
+
require 'octokit/client'
|
3
|
+
require 'octokit/enterprise_admin_client'
|
4
|
+
require 'octokit/enterprise_management_console_client'
|
3
5
|
|
4
6
|
# Ruby toolkit for the GitHub API
|
5
7
|
module Octokit
|
6
|
-
autoload(:Client, File.join(__dir__, 'octokit/client'))
|
7
|
-
autoload(:EnterpriseAdminClient, File.join(__dir__, 'octokit/enterprise_admin_client'))
|
8
|
-
autoload(:EnterpriseManagementConsoleClient, File.join(__dir__, 'octokit/enterprise_management_console_client'))
|
9
|
-
|
10
8
|
class << self
|
11
9
|
include Octokit::Configurable
|
12
10
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octokit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wynn Netherland
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-06-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|