finapps_core 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/finapps_core/rest/resources.rb +0 -2
- data/lib/finapps_core/version.rb +1 -1
- metadata +1 -3
- data/spec/utils/parameter_filter_spec.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2598b9e0ae484f324278f61c621ca8e8214409c135005bc15f1c82c446f9c81f
|
4
|
+
data.tar.gz: 2185524adcfb1c96a21f096d1c110a4c3d0902a6efc35a280f9c6b1bfbd94599
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c20ec805487242e9c39850cf6687ce4a3b2d6d3a53062d4f72665dd8794da54379aa4ccebadc7c284b34977867db8a56594a84f25011efead0dce9cbaecbcef7
|
7
|
+
data.tar.gz: 9092d6ec2716da95b708671f9c5845d58e8604a34912e2a6be1ec3e6065ca9aca7c5c67c6b5131040f32d413ef2d7dd226e355b31bc7398a66811ae188074176
|
@@ -2,14 +2,12 @@
|
|
2
2
|
|
3
3
|
require_relative '../utils/loggeable'
|
4
4
|
require_relative '../utils/validatable'
|
5
|
-
require_relative '../utils/parameter_filter'
|
6
5
|
|
7
6
|
module FinAppsCore
|
8
7
|
module REST
|
9
8
|
class Resources # :nodoc:
|
10
9
|
include FinAppsCore::Utils::Loggeable
|
11
10
|
include FinAppsCore::Utils::Validatable
|
12
|
-
include FinAppsCore::Utils::ParameterFilter
|
13
11
|
require 'erb'
|
14
12
|
|
15
13
|
attr_reader :client
|
data/lib/finapps_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
@@ -294,7 +294,6 @@ files:
|
|
294
294
|
- spec/support/fixtures/resource_not_found.json
|
295
295
|
- spec/support/fixtures/resources.json
|
296
296
|
- spec/support/fixtures/unauthorized.json
|
297
|
-
- spec/utils/parameter_filter_spec.rb
|
298
297
|
- spec/utils/validatable_spec.rb
|
299
298
|
homepage: https://github.com/finapps/ruby-client-core
|
300
299
|
licenses:
|
@@ -333,7 +332,6 @@ test_files:
|
|
333
332
|
- spec/rest/configuration_spec.rb
|
334
333
|
- spec/rest/resources_spec.rb
|
335
334
|
- spec/support/fake_api.rb
|
336
|
-
- spec/utils/parameter_filter_spec.rb
|
337
335
|
- spec/utils/validatable_spec.rb
|
338
336
|
- spec/spec_helpers/client.rb
|
339
337
|
- spec/spec_helper.rb
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
class FakeClass
|
4
|
-
include FinAppsCore::Utils::ParameterFilter
|
5
|
-
end
|
6
|
-
|
7
|
-
RSpec.describe FinAppsCore::Utils::ParameterFilter do
|
8
|
-
describe '#skip_sensitive_data' do
|
9
|
-
context 'when provided with sensitive data' do
|
10
|
-
let(:unfiltered_params) do
|
11
|
-
{
|
12
|
-
password: 'FinApps@123',
|
13
|
-
password_confirm: 'FinApps@123',
|
14
|
-
token: '123456',
|
15
|
-
login: 'sammysosa',
|
16
|
-
username: 'johnny',
|
17
|
-
name: 'george',
|
18
|
-
account: {
|
19
|
-
routing_no: '2316151651',
|
20
|
-
account_no: '987984654'
|
21
|
-
},
|
22
|
-
tpr_id: 'asdfasdf5465w1e65r4we654r',
|
23
|
-
'x-tenant-token': '498798465132154987498'
|
24
|
-
}
|
25
|
-
end
|
26
|
-
let(:filtered_params) do
|
27
|
-
{
|
28
|
-
password: '[REDACTED]',
|
29
|
-
password_confirm: '[REDACTED]',
|
30
|
-
token: '[REDACTED]',
|
31
|
-
login: '[REDACTED]',
|
32
|
-
username: '[REDACTED]',
|
33
|
-
name: 'george',
|
34
|
-
account: {
|
35
|
-
routing_no: '[REDACTED]',
|
36
|
-
account_no: '[REDACTED]'
|
37
|
-
},
|
38
|
-
tpr_id: '[REDACTED]',
|
39
|
-
'x-tenant-token': '[REDACTED]'
|
40
|
-
}
|
41
|
-
end
|
42
|
-
|
43
|
-
it 'filters out sensitive values' do
|
44
|
-
expect(FakeClass.new.skip_sensitive_data(unfiltered_params)).to eq(filtered_params)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|