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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c28a4a8921cc595ea37a968efe8127a9ac3da2044ff76168bfe076761965a93
4
- data.tar.gz: 937005a9d7e8dea011d3872e42f470bded405821186e414bcea64b0cd9953367
3
+ metadata.gz: 894aecadb8f5ec90d9082d7db669df082325280ca33e695ed4ee3fc9551a2d63
4
+ data.tar.gz: 2ed5bad249f235f5ba54551801ba7f0c2e23c3931d213b2876e56fa845ab205b
5
5
  SHA512:
6
- metadata.gz: 142c021bc1f27154292f8ce8a8b52ba5742cea07d34d3d7bf5b69700655bb83ae51be5ca89ac4444863711d66d1289116c9be5379d4e7d893f4ef70d29c7aef0
7
- data.tar.gz: f3a5b027c3be795db544b320b66edcdf537577f580fc231e7ee40e8bdad6935e5d1beb57f9c27e704e6a8c5b1d2b5ba1faf0333ca6dde5aa0724d982eec9b43d
6
+ metadata.gz: 4b11691740a94a81033b8188f1ddcd3da1863134e2830b08bd5acc339b0ceefb3f4e9f75689b3e56df6f9d858613e3daa3a1d114b65c3787456b3837f6e8952f
7
+ data.tar.gz: 1c6aba5e90200c2511360a81c434cc5c6bf096958853a6d76d7e2cd3969cc53f27cf9a5e28b9bf3eb398d4e0b7892fb66a83369f674e33bd2f51dcd1920b1dbf
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "better-faraday"
6
- s.version = "1.1.1"
6
+ s.version = "1.1.2"
7
7
  s.author = "Yaroslav Konoplov"
8
8
  s.email = "eahome00@gmail.com"
9
9
  s.summary = "Extends Faraday with useful features."
@@ -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.respond_to?(:=~) && Faraday.secrets.any? { |s| key =~ s }
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?)token\b/i]
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.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: 2019-12-23 00:00:00.000000000 Z
11
+ date: 2020-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday