finapps 5.4.1 → 6.0.0

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: 9f2a3cc29031a78b597ac3fadc86765e2d53fd1a9d5461ab484f565c7b9142f1
4
- data.tar.gz: 03cd2d0d21472ed22851506db157dc464beebb691cfa12d7f37852630c8939af
3
+ metadata.gz: 2d1efcc9b8c7dcdc6a5e5e109059824df6e96a236b96f5005c740243dc452568
4
+ data.tar.gz: cc1c19c9d4eaab2d374234a2c68eef27dfe6b315338f80a9adb69c5f3b58f805
5
5
  SHA512:
6
- metadata.gz: 9f2c6a4534249d60fd3ee49fc29d810b47ebbc9984eddd55945bf0d1ba604d1062289bb0bbaee5e8b2c4174627ae243440c3a9ee3fe5dd28667490b341b82c53
7
- data.tar.gz: 65ca4b08c104b8c7201acb063b9d8c501143695dca17bbefc2b23451772878dd195a248c1f4e25a027203c2f3896c71013b666389f92f5839caf53a9bfd41ce2
6
+ metadata.gz: 6195fe1d05f38bb505ff9ff87789ea39737a41558482cc9bed279afe4f7299361a1909705bb9f70166af8e7b86d58889d0ee70f4287d0f82da18b321f7d1c724
7
+ data.tar.gz: dadddb249e1e3b386832994ef92146622f06c29085823756a1f90010e690e60e712009a5ba787abd4a7a12f1d2e552d9020020362a03de636a438804c383d0b6
@@ -20,7 +20,7 @@ jobs:
20
20
  runs-on: ${{ matrix.os }}
21
21
  steps:
22
22
  - name: Checkout source code
23
- uses: actions/checkout@v2
23
+ uses: actions/checkout@v2.3.4
24
24
 
25
25
  - name: Install required ruby version
26
26
  uses: ruby/setup-ruby@v1
@@ -11,7 +11,7 @@ jobs:
11
11
 
12
12
  steps:
13
13
  - name: Checkout source code
14
- uses: actions/checkout@v2
14
+ uses: actions/checkout@v2.3.4
15
15
  with:
16
16
  persist-credentials: false
17
17
  fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
@@ -7,7 +7,7 @@ jobs:
7
7
  label:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- - uses: mheap/github-action-required-labels@v1
10
+ - uses: mheap/github-action-required-labels@v1.1.2
11
11
  with:
12
12
  mode: minimum
13
13
  count: 1
data/finapps.gemspec CHANGED
@@ -20,15 +20,14 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = Dir['spec/**/*.rb']
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_runtime_dependency 'finapps_core', '~> 5.0', '>= 5.0.16'
23
+ spec.add_runtime_dependency 'finapps_core', '~> 6.0', '>= 6.0.0'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.16'
26
26
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
27
27
  spec.add_development_dependency 'rspec', '~> 3.10', '>= 3.10.0'
28
- spec.add_development_dependency 'rubocop', '~> 1.9', '>= 1.9.1'
29
28
  spec.add_development_dependency 'rubocop-performance', '~> 1.9', '>= 1.9.2'
30
29
  spec.add_development_dependency 'rubocop-rake', '~> 0.5', '>= 0.5.1'
31
- spec.add_development_dependency 'rubocop-rspec', '~> 2.2', '>= 2.2.0'
30
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.4', '>= 2.4.0'
32
31
  spec.add_development_dependency 'simplecov', '~> 0.21', '>= 0.21.2'
33
32
  spec.add_development_dependency 'simplecov-console', '~> 0.9'
34
33
  spec.add_development_dependency 'sinatra', '~> 2.1', '>= 2.1.0'
@@ -56,7 +56,7 @@ module FinApps
56
56
  def search_query(term)
57
57
  query = with_space_search(term).concat(name_search(term))
58
58
  {
59
- "$or": query
59
+ '$or': query
60
60
  }
61
61
  end
62
62
 
@@ -75,28 +75,28 @@ module FinApps
75
75
  return {} unless term
76
76
 
77
77
  query = with_space_search(term).concat(name_search(term))
78
- {"$or": query}
78
+ {'$or': query}
79
79
  end
80
80
 
81
81
  def name_search(term)
82
82
  search_arr = []
83
83
  if /\s/.match?(term)
84
84
  term.split.each do |t|
85
- search_arr.append("applicant.first_name": t)
86
- search_arr.append("applicant.last_name": t)
85
+ search_arr.append('applicant.first_name': t)
86
+ search_arr.append('applicant.last_name': t)
87
87
  end
88
88
  end
89
89
  search_arr
90
90
  end
91
91
 
92
92
  def with_space_search(term)
93
- [{"applicant.email": term},
94
- {"applicant.first_name": term},
95
- {"applicant.last_name": term},
96
- {"applicant.external_id": term},
93
+ [{'applicant.email': term},
94
+ {'applicant.first_name': term},
95
+ {'applicant.last_name': term},
96
+ {'applicant.external_id': term},
97
97
  {
98
98
  reference_no: {
99
- "$regex": "^#{term}", "$options": 'i'
99
+ '$regex': "^#{term}", '$options': 'i'
100
100
  }
101
101
  }]
102
102
  end
@@ -69,7 +69,7 @@ module FinApps
69
69
 
70
70
  def role_query(role)
71
71
  if role.is_a?(Array)
72
- {role: {"$in": role.map(&:to_i)}}
72
+ {role: {'$in': role.map(&:to_i)}}
73
73
  else
74
74
  {role: role.to_i}
75
75
  end
@@ -66,28 +66,28 @@ module FinApps
66
66
  return {} unless term
67
67
 
68
68
  query = search_query_object(term).concat(consumer_name_query(term))
69
- {"$or": query}
69
+ {'$or': query}
70
70
  end
71
71
 
72
72
  def consumer_name_query(term)
73
73
  search_arr = []
74
74
  if /\s/.match?(term)
75
75
  term.split.each do |t|
76
- search_arr.append("applicant.first_name": t)
77
- search_arr.append("applicant.last_name": t)
76
+ search_arr.append('applicant.first_name': t)
77
+ search_arr.append('applicant.last_name': t)
78
78
  end
79
79
  end
80
80
  search_arr
81
81
  end
82
82
 
83
83
  def search_query_object(term)
84
- [{public_id: {"$regex": "^#{term}", "$options": 'i'}},
85
- {"assignment.last_name": term},
86
- {"applicant.first_name": term},
87
- {"applicant.last_name": term},
84
+ [{public_id: {'$regex': "^#{term}", '$options': 'i'}},
85
+ {'assignment.last_name': term},
86
+ {'applicant.first_name': term},
87
+ {'applicant.last_name': term},
88
88
  {
89
- "requestor.reference_no": {
90
- "$regex": "^#{term}", "$options": 'i'
89
+ 'requestor.reference_no': {
90
+ '$regex': "^#{term}", '$options': 'i'
91
91
  }
92
92
  }]
93
93
  end
@@ -95,7 +95,7 @@ module FinApps
95
95
  def status_query(status)
96
96
  if status
97
97
  if status.is_a?(Array)
98
- {status: {"$in": status.map(&:to_i)}}
98
+ {status: {'$in': status.map(&:to_i)}}
99
99
  else
100
100
  {status: status.to_i}
101
101
  end
@@ -107,7 +107,7 @@ module FinApps
107
107
  def assignment_query(assignment)
108
108
  # translate "" to null assignment
109
109
  if assignment
110
- {"assignment.operator_id": assignment.empty? ? nil : assignment}
110
+ {'assignment.operator_id': assignment.empty? ? nil : assignment}
111
111
  else
112
112
  {}
113
113
  end
@@ -124,9 +124,9 @@ module FinApps
124
124
  def relation_query(relation, search_term)
125
125
  if !search_term && !nil_or_empty?(relation)
126
126
  {
127
- "$or": [
128
- {public_id: {"$in": relation}},
129
- {original_order_id: {"$in": relation}}
127
+ '$or': [
128
+ {public_id: {'$in': relation}},
129
+ {original_order_id: {'$in': relation}}
130
130
  ]
131
131
  }
132
132
  else
@@ -62,13 +62,13 @@ module FinApps
62
62
  return {} unless term
63
63
 
64
64
  query = search_query_object(term)
65
- {"$or": query}
65
+ {'$or': query}
66
66
  end
67
67
 
68
68
  def search_query_object(term)
69
69
  [
70
- {"consumer.public_id": term},
71
- {"consumer.email": term}
70
+ {'consumer.public_id': term},
71
+ {'consumer.email': term}
72
72
  ]
73
73
  end
74
74
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '5.4.1'
4
+ VERSION = '6.0.0'
5
5
  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.4.1
4
+ version: 6.0.0
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-04-30 00:00:00.000000000 Z
11
+ date: 2021-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: finapps_core
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '6.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 5.0.16
22
+ version: 6.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '5.0'
29
+ version: '6.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 5.0.16
32
+ version: 6.0.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -90,26 +90,6 @@ dependencies:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: 3.10.0
93
- - !ruby/object:Gem::Dependency
94
- name: rubocop
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.9'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 1.9.1
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.9'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.9.1
113
93
  - !ruby/object:Gem::Dependency
114
94
  name: rubocop-performance
115
95
  requirement: !ruby/object:Gem::Requirement
@@ -156,20 +136,20 @@ dependencies:
156
136
  requirements:
157
137
  - - "~>"
158
138
  - !ruby/object:Gem::Version
159
- version: '2.2'
139
+ version: '2.4'
160
140
  - - ">="
161
141
  - !ruby/object:Gem::Version
162
- version: 2.2.0
142
+ version: 2.4.0
163
143
  type: :development
164
144
  prerelease: false
165
145
  version_requirements: !ruby/object:Gem::Requirement
166
146
  requirements:
167
147
  - - "~>"
168
148
  - !ruby/object:Gem::Version
169
- version: '2.2'
149
+ version: '2.4'
170
150
  - - ">="
171
151
  - !ruby/object:Gem::Version
172
- version: 2.2.0
152
+ version: 2.4.0
173
153
  - !ruby/object:Gem::Dependency
174
154
  name: simplecov
175
155
  requirement: !ruby/object:Gem::Requirement
@@ -471,51 +451,51 @@ signing_key:
471
451
  specification_version: 4
472
452
  summary: FinApps REST API ruby client.
473
453
  test_files:
474
- - spec/utils/query_builder_spec.rb
475
- - spec/spec_helper.rb
476
- - spec/support/documents_uploads_routes.rb
477
- - spec/support/screenings_routes.rb
478
454
  - spec/support/fake_api.rb
455
+ - spec/support/screenings_routes.rb
456
+ - spec/support/documents_uploads_routes.rb
457
+ - spec/spec_helper.rb
479
458
  - spec/spec_helpers/client.rb
480
- - spec/rest/password_resets_spec.rb
459
+ - spec/utils/query_builder_spec.rb
460
+ - spec/rest/operators_password_resets_spec.rb
461
+ - spec/rest/esign_templates_spec.rb
462
+ - spec/rest/consumers_spec.rb
481
463
  - spec/rest/order_reports_spec.rb
464
+ - spec/rest/products_spec.rb
465
+ - spec/rest/order_tokens_spec.rb
482
466
  - spec/rest/order_statuses_spec.rb
483
- - spec/rest/plaid/plaid_account_permissions_spec.rb
484
- - spec/rest/plaid/plaid_institution_logos_spec.rb
485
- - spec/rest/plaid/plaid_accounts_spec.rb
486
- - spec/rest/plaid/plaid_consumer_institutions_spec.rb
487
- - spec/rest/plaid/plaid_webhooks_spec.rb
488
- - spec/rest/api_request.rb
489
- - spec/rest/orders_spec.rb
467
+ - spec/rest/operators_spec.rb
468
+ - spec/rest/order_refreshes_spec.rb
469
+ - spec/rest/client_spec.rb
470
+ - spec/rest/signed_documents_downloads_spec.rb
471
+ - spec/rest/documents_orders_spec.rb
490
472
  - spec/rest/screenings_spec.rb
491
- - spec/rest/documents_orders_notifications_spec.rb
492
- - spec/rest/documents_upload_types_spec.rb
493
- - spec/rest/consumers_portfolios_spec.rb
494
- - spec/rest/consumers_spec.rb
495
- - spec/rest/documents_uploads_spec.rb
473
+ - spec/rest/portfolios_consumers_spec.rb
496
474
  - spec/rest/tenant_app_settings_spec.rb
497
- - spec/rest/signed_documents_downloads_spec.rb
475
+ - spec/rest/alert_definitions_spec.rb
476
+ - spec/rest/documents_uploads_spec.rb
498
477
  - spec/rest/order_assignments_spec.rb
499
- - spec/rest/operators_spec.rb
500
- - spec/rest/documents_orders_spec.rb
501
- - spec/rest/tenant_settings_spec.rb
502
- - spec/rest/operators_password_resets_spec.rb
503
- - spec/rest/portfolios_spec.rb
504
- - spec/rest/order_tokens_spec.rb
505
- - spec/rest/order_notifications_spec.rb
506
- - spec/rest/sessions_spec.rb
507
478
  - spec/rest/verix/verix_documents_spec.rb
479
+ - spec/rest/verix/verix_records_spec.rb
508
480
  - spec/rest/verix/verix_metadata_spec.rb
509
481
  - spec/rest/verix/verix_pdf_documents_spec.rb
510
- - spec/rest/verix/verix_records_spec.rb
482
+ - spec/rest/portfolios_alerts_spec.rb
483
+ - spec/rest/api_request.rb
484
+ - spec/rest/plaid/plaid_accounts_spec.rb
485
+ - spec/rest/plaid/plaid_institution_logos_spec.rb
486
+ - spec/rest/plaid/plaid_consumer_institutions_spec.rb
487
+ - spec/rest/plaid/plaid_webhooks_spec.rb
488
+ - spec/rest/plaid/plaid_account_permissions_spec.rb
511
489
  - spec/rest/alert_occurrences_spec.rb
512
490
  - spec/rest/version_spec.rb
513
- - spec/rest/order_refreshes_spec.rb
514
- - spec/rest/alert_definitions_spec.rb
515
- - spec/rest/portfolios_available_consumers_spec.rb
516
- - spec/rest/products_spec.rb
517
- - spec/rest/client_spec.rb
518
- - spec/rest/portfolios_alerts_spec.rb
519
- - spec/rest/esign_templates_spec.rb
491
+ - spec/rest/documents_orders_notifications_spec.rb
492
+ - spec/rest/order_notifications_spec.rb
493
+ - spec/rest/orders_spec.rb
520
494
  - spec/rest/portfolio_reports_spec.rb
521
- - spec/rest/portfolios_consumers_spec.rb
495
+ - spec/rest/documents_upload_types_spec.rb
496
+ - spec/rest/portfolios_available_consumers_spec.rb
497
+ - spec/rest/sessions_spec.rb
498
+ - spec/rest/password_resets_spec.rb
499
+ - spec/rest/tenant_settings_spec.rb
500
+ - spec/rest/consumers_portfolios_spec.rb
501
+ - spec/rest/portfolios_spec.rb