finapps 5.2.0 → 5.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +7 -0
- data/lib/finapps/rest/documents_orders.rb +9 -10
- data/lib/finapps/version.rb +1 -1
- data/spec/rest/documents_orders_spec.rb +12 -15
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1876da28473c212167549859f20839e6166cf63eb8175fdb787b1a3ddcd589ca
|
4
|
+
data.tar.gz: 1a6b376f154fc2b7dbdc4a935b30b5277c672ddf378e2a691ef0ebb40a29364e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ea0899aaa9171da4a52e7b97ef2bfb2f20574fb6970af9c28bd935cfd3b660a271b32b0cf4d9a3c56839fa27dea373e8289cc64d7bcae6632f142de77010b7a
|
7
|
+
data.tar.gz: '016696c481689ca7817e2728a8aa7edbf337cd3fa0a075dec8f4d0254afda854d79baa5f42359dc804adb3d84f6cf45da96a760627478b13052cbccf116f494e'
|
@@ -90,16 +90,15 @@ module FinApps
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def with_space_search(term)
|
93
|
-
[
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
]
|
93
|
+
[{"applicant.email": term},
|
94
|
+
{"applicant.first_name": term},
|
95
|
+
{"applicant.last_name": term},
|
96
|
+
{"applicant.external_id": term},
|
97
|
+
{
|
98
|
+
reference_no: {
|
99
|
+
"$regex": "^#{term}", "$options": 'i'
|
100
|
+
}
|
101
|
+
}]
|
103
102
|
end
|
104
103
|
|
105
104
|
def tag_query(tag)
|
data/lib/finapps/version.rb
CHANGED
@@ -52,11 +52,10 @@ RSpec.describe FinApps::REST::DocumentsOrders do
|
|
52
52
|
"#{versioned_api_path}/documents/orders?"\
|
53
53
|
'filter=%7B%22$or%22:%5B%7B%22applicant.email%22:'\
|
54
54
|
'%22term%22%7D,%7B%22applicant.first_name%22:%22term%22%7D,'\
|
55
|
-
'%7B%22applicant.last_name%22
|
56
|
-
'%22term%22%7D,%7B%22reference_no%22
|
57
|
-
'%22$options%22:%22i%22%7D%7D%5D,'\
|
58
|
-
'%22consumer_id%22:%22valid_consumer_id%22%7D&'
|
59
|
-
'page=2&requested=25&sort=tag '
|
55
|
+
'%7B%22applicant.last_name%22:%22term%22%7D,'\
|
56
|
+
'%7B%22applicant.external_id%22:%22term%22%7D,%7B%22reference_no%22:'\
|
57
|
+
'%7B%22$regex%22:%22%5Eterm%22,%22$options%22:%22i%22%7D%7D%5D,'\
|
58
|
+
'%22consumer_id%22:%22valid_consumer_id%22%7D&page=2&requested=25&sort=tag'
|
60
59
|
|
61
60
|
expect(WebMock).to have_requested(:get, url)
|
62
61
|
end
|
@@ -69,16 +68,14 @@ RSpec.describe FinApps::REST::DocumentsOrders do
|
|
69
68
|
url =
|
70
69
|
"#{versioned_api_path}/documents/orders?"\
|
71
70
|
'filter=%7B%22$or%22:%5B%7B%22applicant.email%22:'\
|
72
|
-
'%22Blue%20Jay%22%7D
|
73
|
-
'%
|
74
|
-
'%7B%22applicant.
|
75
|
-
'%22Blue%20Jay%22%7D
|
76
|
-
'%
|
77
|
-
'%22
|
78
|
-
'%
|
79
|
-
'%7B%22applicant.last_name%22:%
|
80
|
-
'%7B%22applicant.first_name%22:%22Jay%22%7D,'\
|
81
|
-
'%7B%22applicant.last_name%22:%22Jay%22%7D%5D%7D&page=2'
|
71
|
+
'%22Blue%20Jay%22%7D,%7B%22applicant.first_name%22:'\
|
72
|
+
'%22Blue%20Jay%22%7D,%7B%22applicant.last_name%22:'\
|
73
|
+
'%22Blue%20Jay%22%7D,%7B%22applicant.external_id%22:'\
|
74
|
+
'%22Blue%20Jay%22%7D,%7B%22reference_no%22:%7B%22$regex%22:'\
|
75
|
+
'%22%5EBlue%20Jay%22,%22$options%22:%22i%22%7D%7D,'\
|
76
|
+
'%7B%22applicant.first_name%22:%22Blue%22%7D,%7B%22'\
|
77
|
+
'applicant.last_name%22:%22Blue%22%7D,%7B%22applicant.first_name%22:'\
|
78
|
+
'%22Jay%22%7D,%7B%22applicant.last_name%22:%22Jay%22%7D%5D%7D&page=2'
|
82
79
|
|
83
80
|
expect(WebMock).to have_requested(:get, url)
|
84
81
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: finapps_core
|
@@ -280,6 +280,7 @@ extra_rdoc_files:
|
|
280
280
|
- LICENSE.txt
|
281
281
|
files:
|
282
282
|
- ".codeclimate.yml"
|
283
|
+
- ".github/dependabot.yml"
|
283
284
|
- ".github/release-drafter.yml"
|
284
285
|
- ".github/workflows/ci.yaml"
|
285
286
|
- ".github/workflows/release-drafter.yml"
|