octokit 4.25.0 → 4.25.1
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/octokit/client/pub_sub_hubbub.rb +1 -1
- data/lib/octokit/client.rb +1 -1
- data/lib/octokit/connection.rb +2 -2
- data/lib/octokit/default.rb +1 -2
- data/lib/octokit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6695a62a334c075c819ed311e120304371fa63ebfd7845934f14f05e55a48650
|
|
4
|
+
data.tar.gz: b524bb910c9b0ec61175cd5a51eaef2e661e2aaf98febf2ada808c25a9b78a50
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f67309dce35a4ced6b92a0ccee172029b8e3abb43b5756324a59317cfe151730078397f77549a4d378caccad870a02430585932eb07a5a02508064f92832d58
|
|
7
|
+
data.tar.gz: 935a184f81f8a7836811aa3e9a6f94303bb6b924167db7ff7ded77e45fdd31ff34fabce1d4a54590eb6eacccceedf0518dbfb1e8e6075b4adf9e2f9fea88a267
|
|
@@ -91,7 +91,7 @@ module Octokit
|
|
|
91
91
|
conn = Faraday.new(url: @api_endpoint) do |http|
|
|
92
92
|
http.headers[:user_agent] = user_agent
|
|
93
93
|
if basic_authenticated?
|
|
94
|
-
http.request
|
|
94
|
+
http.request(*FARADAY_BASIC_AUTH_KEYS, @login, @password)
|
|
95
95
|
elsif token_authenticated?
|
|
96
96
|
http.request :authorization, 'token', @access_token
|
|
97
97
|
end
|
data/lib/octokit/client.rb
CHANGED
|
@@ -252,7 +252,7 @@ module Octokit
|
|
|
252
252
|
conn_opts[:ssl] = { verify_mode: @ssl_verify_mode } if @ssl_verify_mode
|
|
253
253
|
conn = Faraday.new(conn_opts) do |http|
|
|
254
254
|
if basic_authenticated?
|
|
255
|
-
http.request
|
|
255
|
+
http.request(*FARADAY_BASIC_AUTH_KEYS, @login, @password)
|
|
256
256
|
elsif token_authenticated?
|
|
257
257
|
http.request :authorization, 'token', @access_token
|
|
258
258
|
elsif bearer_authenticated?
|
data/lib/octokit/connection.rb
CHANGED
|
@@ -107,13 +107,13 @@ module Octokit
|
|
|
107
107
|
http.headers[:content_type] = 'application/json'
|
|
108
108
|
http.headers[:user_agent] = user_agent
|
|
109
109
|
if basic_authenticated?
|
|
110
|
-
http.request
|
|
110
|
+
http.request(*FARADAY_BASIC_AUTH_KEYS, @login, @password)
|
|
111
111
|
elsif token_authenticated?
|
|
112
112
|
http.request :authorization, 'token', @access_token
|
|
113
113
|
elsif bearer_authenticated?
|
|
114
114
|
http.request :authorization, 'Bearer', @bearer_token
|
|
115
115
|
elsif application_authenticated?
|
|
116
|
-
http.request
|
|
116
|
+
http.request(*FARADAY_BASIC_AUTH_KEYS, @client_id, @client_secret)
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
119
|
end
|
data/lib/octokit/default.rb
CHANGED
|
@@ -35,8 +35,7 @@ module Octokit
|
|
|
35
35
|
# so we use it only when it's available.
|
|
36
36
|
if defined?(Faraday::Request::Retry)
|
|
37
37
|
builder.use Faraday::Request::Retry, exceptions: [Octokit::ServerError]
|
|
38
|
-
|
|
39
|
-
if defined?(Faraday::Retry::Middleware)
|
|
38
|
+
elsif defined?(Faraday::Retry::Middleware)
|
|
40
39
|
builder.use Faraday::Retry::Middleware, exceptions: [Octokit::ServerError]
|
|
41
40
|
end
|
|
42
41
|
|
data/lib/octokit/version.rb
CHANGED
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.25.
|
|
4
|
+
version: 4.25.1
|
|
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-07-01 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
182
182
|
- !ruby/object:Gem::Version
|
|
183
183
|
version: 1.3.5
|
|
184
184
|
requirements: []
|
|
185
|
-
rubygems_version: 3.
|
|
185
|
+
rubygems_version: 3.3.7
|
|
186
186
|
signing_key:
|
|
187
187
|
specification_version: 4
|
|
188
188
|
summary: Ruby toolkit for working with the GitHub API
|