octokit 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/octokit/error.rb +8 -1
- data/lib/octokit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d44855c0b13d2ddb541a71260a87b83f6f0b946
|
4
|
+
data.tar.gz: dbadd6111fea871f5d64f219a5b2cc28bd322a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d82fe3cb2e713167702f9ec433e838f192763234c541389df9fb8946c58273453112c371868ae91ca1ff893804f14bd40f448862e189307b84de49c7699164
|
7
|
+
data.tar.gz: 052cf9fe17d0ea1b3fc51b3a4e73f532352da3288bd978195568068691d4e9f4ecc89114fab5491fc24acdc52f1490850cca63a48d3f1649596a8c150992db49
|
data/lib/octokit/error.rb
CHANGED
@@ -122,7 +122,7 @@ module Octokit
|
|
122
122
|
return nil if @response.nil?
|
123
123
|
|
124
124
|
message = "#{@response[:method].to_s.upcase} "
|
125
|
-
message <<
|
125
|
+
message << redact_url(@response[:url].to_s) + ": "
|
126
126
|
message << "#{@response[:status]} - "
|
127
127
|
message << "#{response_message}" unless response_message.nil?
|
128
128
|
message << "#{response_error}" unless response_error.nil?
|
@@ -130,6 +130,13 @@ module Octokit
|
|
130
130
|
message << " // See: #{documentation_url}" unless documentation_url.nil?
|
131
131
|
message
|
132
132
|
end
|
133
|
+
|
134
|
+
def redact_url(url_string)
|
135
|
+
%w[client_secret access_token].each do |token|
|
136
|
+
url_string.gsub!(/#{token}=\S+/, "#{token}=(redacted)") if url_string.include? token
|
137
|
+
end
|
138
|
+
url_string
|
139
|
+
end
|
133
140
|
end
|
134
141
|
|
135
142
|
# Raised on errors in the 400-499 range
|
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: 2.6.
|
4
|
+
version: 2.6.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: 2013-11-
|
13
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|