finapps 4.0.12 → 4.0.14

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
- SHA256:
3
- metadata.gz: 7c7e01a0cc069279baa7d0c6c6ad4de1de8e19a77bac754f0d091a9b18721574
4
- data.tar.gz: b9b5441629770d07bd85c65360c8a87e8b41df3b13b1a9ca71fce4cf7dd484d9
2
+ SHA1:
3
+ metadata.gz: 94a52c110da7d02d0eb59601e720692df36794fc
4
+ data.tar.gz: f32cd05b296b9356cb898d9ee19bf3a41cc6a520
5
5
  SHA512:
6
- metadata.gz: cb60857be1798390f6b5b76c68fdb9d7cbc4b9dbdf273080794a1abe698c99bf2e6aa9b42f492ff2ebe6e911e28db3e8063574f76fe7d062bde97c1d759aa728
7
- data.tar.gz: 928d032593ed3b44e5bacacc5a925d4142dabf3a8bfcc964d8f25f9dc28a14ff7a7f4e7ae925952cbab53279443fa18cc8a616ff789a323982804162d2da2803
6
+ metadata.gz: 99af45710dc67b478e5596c5840b9d613f2c48de382b5d0344924bad10cb7a5fceed42689a64e09dad87f735635cb97da0840862abd380a51b69edc8359e3581
7
+ data.tar.gz: b51d3dff34e0f7a226abebd9915fc4dd1902e0886edd2ead8636330efe9a1637ec2ed47f35f22c7d291bf551f9a84411e4d97510c57a2555925444da18e0bc9e
@@ -16,7 +16,7 @@ module FinApps
16
16
 
17
17
  def query_join(root_url, params_array)
18
18
  query_string = params_array.compact.join('&')
19
- !query_string.empty? ? [root_url, query_string].join('?') : nil
19
+ [root_url, query_string].reject(&:empty?).join('?')
20
20
  end
21
21
 
22
22
  def build_filter(_params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '4.0.13'
4
+ VERSION = '4.0.14'
5
5
  end
@@ -24,10 +24,10 @@ RSpec.describe FinApps::Utils::QueryBuilder do
24
24
 
25
25
  context 'with no params' do
26
26
  let(:params) { {} }
27
- it 'returns returns' do
27
+ it 'returns root' do
28
28
  allow(subject).to receive(:build_filter) { {} }
29
29
  expect(subject).to receive(:build_filter).with(params)
30
- expect(subject.build_query_path(end_point, params)).to be_nil
30
+ expect(subject.build_query_path(end_point, params)).to eq(end_point)
31
31
  end
32
32
  end
33
33
  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: 4.0.12
4
+ version: 4.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-12 00:00:00.000000000 Z
11
+ date: 2019-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: finapps_core
@@ -382,45 +382,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
382
382
  version: '0'
383
383
  requirements: []
384
384
  rubyforge_project:
385
- rubygems_version: 2.7.7
385
+ rubygems_version: 2.6.8
386
386
  signing_key:
387
387
  specification_version: 4
388
388
  summary: FinApps REST API ruby client.
389
389
  test_files:
390
- - spec/rest/portfolios_consumers_spec.rb
391
- - spec/rest/consumers_portfolios_spec.rb
392
- - spec/rest/operators_password_resets_spec.rb
393
- - spec/rest/portfolios_available_consumers_spec.rb
394
- - spec/rest/products_spec.rb
395
- - spec/rest/statements_spec.rb
390
+ - spec/rest/institutions_spec.rb
391
+ - spec/rest/consumer_institution_refreshes_spec.rb
392
+ - spec/rest/portfolios_alerts_spec.rb
396
393
  - spec/rest/alert_definitions_spec.rb
397
- - spec/rest/version_spec.rb
398
- - spec/rest/user_institutions_forms_spec.rb
399
- - spec/rest/consumers_spec.rb
400
- - spec/rest/orders_spec.rb
401
- - spec/rest/order_tokens_spec.rb
402
- - spec/rest/institutions_forms_spec.rb
394
+ - spec/rest/portfolios_consumers_spec.rb
395
+ - spec/rest/consumer_institution_refresh_spec.rb
396
+ - spec/rest/order_assignments_spec.rb
397
+ - spec/rest/tenant_settings_spec.rb
403
398
  - spec/rest/tenant_app_settings_spec.rb
404
- - spec/rest/operators_spec.rb
405
- - spec/rest/user_institutions_statuses_spec.rb
399
+ - spec/rest/user_institutions_forms_spec.rb
406
400
  - spec/rest/client_spec.rb
407
- - spec/rest/tenant_settings_spec.rb
408
- - spec/rest/user_institutions_spec.rb
409
- - spec/rest/alert_occurrences_spec.rb
410
- - spec/rest/consumer_institution_refreshes_spec.rb
401
+ - spec/rest/portfolio_reports_spec.rb
402
+ - spec/rest/version_spec.rb
411
403
  - spec/rest/password_resets_spec.rb
404
+ - spec/rest/operators_spec.rb
405
+ - spec/rest/order_statuses_spec.rb
406
+ - spec/rest/alert_occurrences_spec.rb
412
407
  - spec/rest/order_reports_spec.rb
408
+ - spec/rest/portfolios_available_consumers_spec.rb
409
+ - spec/rest/consumers_spec.rb
410
+ - spec/rest/sessions_spec.rb
411
+ - spec/rest/user_institutions_statuses_spec.rb
412
+ - spec/rest/orders_spec.rb
413
+ - spec/rest/operators_password_resets_spec.rb
414
+ - spec/rest/institutions_forms_spec.rb
413
415
  - spec/rest/portfolios_spec.rb
414
- - spec/rest/institutions_spec.rb
415
- - spec/rest/order_statuses_spec.rb
416
416
  - spec/rest/order_refreshes_spec.rb
417
417
  - spec/rest/order_notifications_spec.rb
418
- - spec/rest/portfolios_alerts_spec.rb
419
- - spec/rest/consumer_institution_refresh_spec.rb
420
- - spec/rest/order_assignments_spec.rb
421
- - spec/rest/sessions_spec.rb
422
- - spec/rest/portfolio_reports_spec.rb
423
- - spec/support/fake_api.rb
418
+ - spec/rest/statements_spec.rb
419
+ - spec/rest/order_tokens_spec.rb
420
+ - spec/rest/user_institutions_spec.rb
421
+ - spec/rest/consumers_portfolios_spec.rb
422
+ - spec/rest/products_spec.rb
424
423
  - spec/utils/query_builder_spec.rb
425
- - spec/spec_helpers/client.rb
424
+ - spec/support/fake_api.rb
426
425
  - spec/spec_helper.rb
426
+ - spec/spec_helpers/client.rb