e_way_client 1.0.0 → 1.0.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: b96e3780eac694bca18368004607db96a971fb89
4
- data.tar.gz: 2b55a24950cba236dfa92ef740181693ce5549b2
3
+ metadata.gz: 154821233c68a3592b877056551246820916ddea
4
+ data.tar.gz: ca935dfcf0796dd75a0faa050d8a37cfba20211e
5
5
  SHA512:
6
- metadata.gz: c1f6aed8b29895913909bfadaca0f8ac7ee411fdfae9bb0e9fd64dbf16fc014e75c4c7fc9087367ced5542e74d6b466606d206790604b21441fce706b2b6b08b
7
- data.tar.gz: 1253e4356837ea62423d7387ddd76270075233d1d4d26288770cfc05266dedf8f6dc50b0c9032fa2ee9fd67c46a1e59f7d8c54e5daeda362e51ff050224ce474
6
+ metadata.gz: 422484b0271160775f621634d7569824183ad011333588d221fcfdc41764ed31b8d97cbc07356c1dc3e3d1b90879670c7100d56cf51f0ac6d771fb0729a83113
7
+ data.tar.gz: 334c2713d80d5eeefd925a119eda1cdf290d48bc9f5201366d52c920afa57cde8459c445ac847bd0c5dc3d372812eb98d56067cee0d1df4bfec3669ac904a6c8
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /spec/config.yml
11
+ /spec/log/*.log
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [1.0.1] - 2017-02-16
8
+ ### Fixed
9
+ - Fixed logging of sensitive information
10
+
7
11
  ## [1.0.0] - 2017-02-15
8
12
  ### Fixed
9
13
  - Fixed broken `api_client_base`
data/e_way_client.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  spec.add_dependency "virtus", "~> 1.0"
33
33
  spec.add_dependency "api_client_base", "~> 1.0"
34
- spec.add_dependency "soap_client", "~> 0.3.0"
34
+ spec.add_dependency "soap_client", "~> 1.0"
35
35
  spec.add_dependency "deep_fetch"
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 1.13"
@@ -11,6 +11,7 @@ module EWayClient
11
11
  attribute :logger, Object
12
12
  attribute :message, Hash, lazy: true, default: :default_message
13
13
  attribute :action, Symbol, lazy: true, default: :default_action
14
+ attribute :scrub_directives, Array[Hash], default: :default_scrub_directives
14
15
  attribute(:soap_client_args, Hash, {
15
16
  lazy: true,
16
17
  default: :default_soap_client_args,
@@ -26,10 +27,14 @@ module EWayClient
26
27
  GenActionName.(self.class)
27
28
  end
28
29
 
30
+ def default_scrub_directives
31
+ [ {name: {matches: /password/i}} ]
32
+ end
33
+
29
34
  def default_soap_client_args
30
35
  SOAP_ATTRS.each_with_object({}) do |attr, hash|
31
36
  hash[attr] = self.send(attr)
32
- end
37
+ end.merge(scrub: scrub_directives)
33
38
  end
34
39
 
35
40
  end
@@ -1,3 +1,3 @@
1
1
  module EWayClient
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e_way_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-15 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.0
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.0
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: deep_fetch
57
57
  requirement: !ruby/object:Gem::Requirement