finapps 5.0.20 → 5.0.21

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1148f9034f5e17b0b9cc457d691fcd97b088e4f6c93b6d90605309355d8593ba
4
- data.tar.gz: b5cebf9220a9c550850777fec411fbe71bbe4d0d044cb0dd1ab0b0bdee6b38cf
3
+ metadata.gz: aafadb9063a639f9a7909122bda807d791236699321fb2f9db4e612e280d6277
4
+ data.tar.gz: 30547e275f93ef16c55badf1239d369fbdcff1eaf4fe7e9c8b288c5e4762fbc8
5
5
  SHA512:
6
- metadata.gz: 5f2b36a775aac0b1d140480abb01ef6362db0e9a111ab40a16b228bd16d6a12322ffbba07fd55471591c0c5d263b1331d86ae623b4eb5ca7de8bd31765643cf2
7
- data.tar.gz: 8a4291a8a37b1c77a8af3c9f8bb35d807b8ca6817f2b2415a6d7223091812d17bef230003ba4292a85fca58ed826ea47938509f06f1b77cec30abd63069f5f8c
6
+ metadata.gz: c44e473e4e33979a7da69a40fe9910e982fd9ec7a465f7f20a66b84f86efe8b323d0a3b7372de15767475417aa09828127eedc4289c50aee6024f00c6aa208f8
7
+ data.tar.gz: '09250ce80e47cb9af40eb8bb8b87847ce3d93ee54b812ed80b07d1f8302f1ba9e0a4b693b149ba2711f6f31fca348f1322e6325dfaec8f659c1682183e9e951c'
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ AllCops:
5
5
  UseCache: false
6
6
 
7
7
  # Commonly used screens these days easily fit more than 80 characters.
8
- Metrics/LineLength:
8
+ Layout/LineLength:
9
9
  Max: 120
10
10
 
11
11
  Style/CollectionMethods:
data/finapps.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'guard-rspec', '~> 4.7', '>= 4.7.3'
30
30
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
31
31
  spec.add_development_dependency 'rspec', '~> 3.8', '>= 3.8.0'
32
- spec.add_development_dependency 'rubocop', '~> 0.74', '>= 0.74.0'
32
+ spec.add_development_dependency 'rubocop', '~> 0.78', '>= 0.78.0'
33
33
  spec.add_development_dependency 'rubocop-performance', '~> 1.4', '>= 1.4.1'
34
34
  spec.add_development_dependency 'rubocop-rspec', '~> 1.33', '>= 1.35.0'
35
35
  spec.add_development_dependency 'sinatra', '~> 2.0', '>= 2.0.5'
@@ -36,6 +36,12 @@ module FinApps
36
36
 
37
37
  send_request "p/institution/consumer/#{id}/token", :get
38
38
  end
39
+
40
+ def set_active_pending_update(id)
41
+ not_blank(id, :consumer_institution_id)
42
+
43
+ send_request "p/institution/consumer/#{id}", :put
44
+ end
39
45
  end
40
46
  end
41
47
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinApps
4
- VERSION = '5.0.20'
4
+ VERSION = '5.0.21'
5
5
  end
@@ -78,6 +78,19 @@ RSpec.describe FinApps::REST::PlaidConsumerInstitutions do
78
78
  end
79
79
  end
80
80
 
81
+ describe '#set_active_pending_update' do
82
+ subject(:set_active_pending_update) do
83
+ FinApps::REST::PlaidConsumerInstitutions.new(api_client)
84
+ .set_active_pending_update(:consumer_institution_id)
85
+ end
86
+
87
+ it_behaves_like 'an API request'
88
+ it_behaves_like 'a successful request'
89
+ it('returns no results') do
90
+ expect(set_active_pending_update[RESULTS]).to be_nil
91
+ end
92
+ end
93
+
81
94
  describe '#public_token' do
82
95
  subject(:public_token) do
83
96
  FinApps::REST::PlaidConsumerInstitutions.new(api_client)
@@ -86,7 +99,7 @@ RSpec.describe FinApps::REST::PlaidConsumerInstitutions do
86
99
 
87
100
  it_behaves_like 'an API request'
88
101
  it_behaves_like 'a successful request'
89
- it('returns no results') { expect(public_token[RESULTS]).not_to be_nil }
102
+ it('returns results') { expect(public_token[RESULTS]).not_to be_nil }
90
103
  it('returns the public token') { expect(public_token[RESULTS]).to have_key(:public_token) }
91
104
  end
92
105
  end
@@ -64,6 +64,9 @@ class FakeApi < Sinatra::Base
64
64
  delete("/#{version}/p/institution/consumer/:consumer_institution_id") do
65
65
  status 204
66
66
  end
67
+ put("/#{version}/p/institution/consumer/:consumer_institution_id") do
68
+ status 204
69
+ end
67
70
  get("/#{version}/p/institution/consumer/:consumer_institution_id/token") do
68
71
  json_response 200, 'plaid/institution/consumer/public_token.json'
69
72
  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.0.20
4
+ version: 5.0.21
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-12-18 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: finapps_core
@@ -176,20 +176,20 @@ dependencies:
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: 0.74.0
179
+ version: 0.78.0
180
180
  - - "~>"
181
181
  - !ruby/object:Gem::Version
182
- version: '0.74'
182
+ version: '0.78'
183
183
  type: :development
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - ">="
188
188
  - !ruby/object:Gem::Version
189
- version: 0.74.0
189
+ version: 0.78.0
190
190
  - - "~>"
191
191
  - !ruby/object:Gem::Version
192
- version: '0.74'
192
+ version: '0.78'
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: rubocop-performance
195
195
  requirement: !ruby/object:Gem::Requirement