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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aea11664f44be0b77bfab832db28875277969127
4
- data.tar.gz: 0d18a6aaca5d748a4f2410fd76b5b1f552171ebf
3
+ metadata.gz: 6d44855c0b13d2ddb541a71260a87b83f6f0b946
4
+ data.tar.gz: dbadd6111fea871f5d64f219a5b2cc28bd322a4b
5
5
  SHA512:
6
- metadata.gz: e398e4984360a0f587cb9b869cc70ae40663a8555762eea838ca188525affb0fc1d47ff73bee5ecb1fa511907452a3e97621771dfac0125d6faafb42c94f6208
7
- data.tar.gz: 7ebab468e733cf771eb5e4fc43af6c5cfe3bb7df304156f3efe60f02adc5d007978e8ce0a1e644e0ce4ceaca05ec256287b7f780ef1b68ec3db22778357441cf
6
+ metadata.gz: 17d82fe3cb2e713167702f9ec433e838f192763234c541389df9fb8946c58273453112c371868ae91ca1ff893804f14bd40f448862e189307b84de49c7699164
7
+ data.tar.gz: 052cf9fe17d0ea1b3fc51b3a4e73f532352da3288bd978195568068691d4e9f4ecc89114fab5491fc24acdc52f1490850cca63a48d3f1649596a8c150992db49
@@ -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 << "#{@response[:url].to_s}: "
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
@@ -2,6 +2,6 @@ module Octokit
2
2
 
3
3
  # Current version
4
4
  # @return [String]
5
- VERSION = "2.6.0".freeze
5
+ VERSION = "2.6.1".freeze
6
6
 
7
7
  end
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.0
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-14 00:00:00.000000000 Z
13
+ date: 2013-11-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler