octokit 4.25.0 → 4.25.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fb998f706df43131e06c214bd4db92440fe39efa77569b1e883f0a31a8fa8f4
4
- data.tar.gz: 9ae3da4441db278a0a143b6d6cd38734beb6060ecc8339b002c483156da6069a
3
+ metadata.gz: 6695a62a334c075c819ed311e120304371fa63ebfd7845934f14f05e55a48650
4
+ data.tar.gz: b524bb910c9b0ec61175cd5a51eaef2e661e2aaf98febf2ada808c25a9b78a50
5
5
  SHA512:
6
- metadata.gz: d01307c7c2a1ab08c1867ffcdbd26633c83844834345637acbde2dc794b02cf219181e3d90031beda91169812483a1637b3c2cf7af5028a01b03ce7b58d95785
7
- data.tar.gz: 30da625ea0b0d89b1cc000ffee759fb3f8a4289940190281899a397c15dce692ebf3dced181b2a9e863ea7a118b7f23fefe491da8f1af0650c3e6d8856edd479
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 *FARADAY_BASIC_AUTH_KEYS, @login, @password
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
@@ -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 *FARADAY_BASIC_AUTH_KEYS, @login, @password
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?
@@ -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 *FARADAY_BASIC_AUTH_KEYS, @login, @password
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 *FARADAY_BASIC_AUTH_KEYS, @client_id, @client_secret
116
+ http.request(*FARADAY_BASIC_AUTH_KEYS, @client_id, @client_secret)
117
117
  end
118
118
  end
119
119
  end
@@ -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
- end
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
 
@@ -11,7 +11,7 @@ module Octokit
11
11
 
12
12
  # Current patch level.
13
13
  # @return [Integer]
14
- PATCH = 0
14
+ PATCH = 1
15
15
 
16
16
  # Full release version.
17
17
  # @return [String]
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.0
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-06-15 00:00:00.000000000 Z
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.1.2
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