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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7abf6a2c9179b01ec754c12ea122c53010ce0cedc46631e3a3a725daec1ed409
4
- data.tar.gz: 13e23b71f45c6a36f330221d6bb9ee0769974ca77f07c32138262c65f84b59d7
3
+ metadata.gz: 1799b946b7c31e79fac5c7119b602d1722151236d02e732a664870a8227f218e
4
+ data.tar.gz: 21496697905a025d01e370816a828ddb7ac4201a9ec845ec0d1290d77c44f858
5
5
  SHA512:
6
- metadata.gz: ae5965ed9aa64796fdb7073c9d2ea4d977df22dd428f21674504e6a46b32b743a63b8e22ad53991b6b0db5cc8eb0586250f733f7bd6e30ca11d632960b44d75c
7
- data.tar.gz: e50fb32abc9045813a533bd28e8b69890d9fdac9f8fe05fca37f1064f14708c654fe0086d78172fb9ab134ab35fcedbd5d58867c54d6c8bfa651a143d38a6fb4
6
+ metadata.gz: 0ad2e6793ef84011dd8e290d18773a0c8c5f24e3a584ccdc24d64696382cd6bfca146cd07f6fe7e8b1ee40b9f564a4a2298453bd0c548374c01c7b9e47150bd7
7
+ data.tar.gz: 9ef11f4b675a4b08d7d5fafbbccad82b2c1f05488c89604c59af6488222e44e55952a286166e8a3f9658523c3707b6ce35c8942d83dbcbbfae8a6f0b360e8940
@@ -2,6 +2,7 @@ require 'octokit/connection'
2
2
  require 'octokit/warnable'
3
3
  require 'octokit/arguments'
4
4
  require 'octokit/repo_arguments'
5
+ require 'octokit/configurable'
5
6
  require 'octokit/authentication'
6
7
  require 'octokit/gist'
7
8
  require 'octokit/rate_limit'
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 = "#{@response[:method].to_s.upcase} "
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?
@@ -5,7 +5,7 @@ module Octokit
5
5
 
6
6
  # Current minor release.
7
7
  # @return [Integer]
8
- MINOR = 23
8
+ MINOR = 24
9
9
 
10
10
  # Current patch level.
11
11
  # @return [Integer]
data/lib/octokit.rb CHANGED
@@ -1,12 +1,10 @@
1
1
  require 'octokit/default'
2
- require 'octokit/configurable'
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.23.0
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-05-26 00:00:00.000000000 Z
13
+ date: 2022-06-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler