shutl_resource 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,14 +39,17 @@ module Faraday
39
39
  end
40
40
 
41
41
  def request_debug(env)
42
- request_headers = strip_auth env[:request_headers]
42
+ request_headers = obfuscate_auth env[:request_headers]
43
43
 
44
44
  debug_message("Request", request_headers, env[:body])
45
45
  end
46
46
 
47
- def strip_auth(headers)
47
+ def obfuscate_auth(headers)
48
48
  headers.dup.tap do |h|
49
- h["Authorization"] = h["Authorization"][0..3] << "***" << h["Authorization"][-4..-1]
49
+ if auth = h["Authorization"]
50
+ #display first few and last few characters
51
+ h["Authorization"] = "#{auth[0..10]}****#{auth[-4..-1]}"
52
+ end
50
53
  end
51
54
  end
52
55
 
@@ -1,5 +1,5 @@
1
1
  module Shutl
2
2
  module Resource
3
- VERSION = '1.3.4'
3
+ VERSION = '1.3.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shutl_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: