better-faraday 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/better-faraday.gemspec +1 -1
- data/lib/better-faraday.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 894aecadb8f5ec90d9082d7db669df082325280ca33e695ed4ee3fc9551a2d63
|
4
|
+
data.tar.gz: 2ed5bad249f235f5ba54551801ba7f0c2e23c3931d213b2876e56fa845ab205b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b11691740a94a81033b8188f1ddcd3da1863134e2830b08bd5acc339b0ceefb3f4e9f75689b3e56df6f9d858613e3daa3a1d114b65c3787456b3837f6e8952f
|
7
|
+
data.tar.gz: 1c6aba5e90200c2511360a81c434cc5c6bf096958853a6d76d7e2cd3969cc53f27cf9a5e28b9bf3eb398d4e0b7892fb66a83369f674e33bd2f51dcd1920b1dbf
|
data/better-faraday.gemspec
CHANGED
data/lib/better-faraday.rb
CHANGED
@@ -165,7 +165,7 @@ module Faraday
|
|
165
165
|
return data.map(&method(:__protect_data)) if ::Array === data
|
166
166
|
return data unless ::Hash === data
|
167
167
|
data.each_with_object({}) do |(key, value), memo|
|
168
|
-
memo[key] = if key.
|
168
|
+
memo[key] = if key.to_s.underscore.tr("_", " ").yield_self { |k| Faraday.secrets.any? { |s| k.match?(s) } }
|
169
169
|
"SECRET"
|
170
170
|
else
|
171
171
|
__protect_data(value)
|
@@ -186,5 +186,5 @@ module Faraday
|
|
186
186
|
attr_accessor :secrets
|
187
187
|
end
|
188
188
|
|
189
|
-
self.secrets = [/\bpass(?:word|phrase)\b/i, /\bauthorization\b/i, /\bsecret\b/i, /\b(:?access?
|
189
|
+
self.secrets = [/\bpass(?:word|phrase)\b/i, /\bauthorization\b/i, /\bsecret\b/i, /\b(:?access)?token\b/i]
|
190
190
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better-faraday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav Konoplov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|