finapps 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/finapps.rb +1 -1
- data/lib/finapps/rest/client.rb +1 -1
- data/lib/finapps/rest/{users.rb → consumers.rb} +1 -1
- data/lib/finapps/version.rb +1 -1
- data/spec/rest/client_spec.rb +2 -2
- data/spec/rest/{users_spec.rb → consumers_spec.rb} +2 -2
- data/spec/support/fake_api.rb +9 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a033bd0ab511577d1ca4fe8deaa73a38ca74b0b2
|
4
|
+
data.tar.gz: 735f7060762eaf06333643a3da78eee3188785bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42ff6fb83e769c5d80a0db8601301a0e9506e62e670f049cda7f73fa4bed9510350a1f4dca85df99e9305a0ae0f3b533d7f27066602958907834737513ba7211
|
7
|
+
data.tar.gz: 212b06b9389fbb69e07358c9718d386576014018cf0612bcd4e789cb531357dea8c313f027f2a90eaff39e849fffad4fea37034a690039b27854a2e2ccef792f
|
data/lib/finapps.rb
CHANGED
@@ -9,7 +9,7 @@ require 'typhoeus/adapters/faraday'
|
|
9
9
|
require 'finapps_core'
|
10
10
|
|
11
11
|
require 'finapps/rest/version'
|
12
|
-
require 'finapps/rest/
|
12
|
+
require 'finapps/rest/consumers'
|
13
13
|
require 'finapps/rest/sessions'
|
14
14
|
require 'finapps/rest/order_tokens'
|
15
15
|
require 'finapps/rest/orders'
|
data/lib/finapps/rest/client.rb
CHANGED
data/lib/finapps/version.rb
CHANGED
data/spec/rest/client_spec.rb
CHANGED
@@ -19,8 +19,8 @@ RSpec.describe FinApps::REST::Client do
|
|
19
19
|
it { expect(subject.version).to be_an_instance_of(FinApps::REST::Version) }
|
20
20
|
end
|
21
21
|
|
22
|
-
describe '#
|
23
|
-
it { expect(subject.
|
22
|
+
describe '#consumers' do
|
23
|
+
it { expect(subject.consumers).to be_an_instance_of(FinApps::REST::Consumers) }
|
24
24
|
end
|
25
25
|
|
26
26
|
describe '#sessions' do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'spec_helpers/client'
|
3
3
|
|
4
|
-
RSpec.describe FinApps::REST::
|
4
|
+
RSpec.describe FinApps::REST::Consumers, 'initialized with valid FinApps::Client object' do
|
5
5
|
include SpecHelpers::Client
|
6
|
-
subject(:users) { FinApps::REST::
|
6
|
+
subject(:users) { FinApps::REST::Consumers.new(client) }
|
7
7
|
missing_public_id = 'Missing argument: public_id'
|
8
8
|
|
9
9
|
describe '#show' do
|
data/spec/support/fake_api.rb
CHANGED
@@ -65,15 +65,15 @@ class FakeApi < Sinatra::Base
|
|
65
65
|
get('/v2/institutions/user/invalid_id/form') { json_response 400, 'invalid_institution_id.json' }
|
66
66
|
put('/v2/institutions/refresh') { json_response 200, 'user_institution_refresh.json' }
|
67
67
|
|
68
|
-
#
|
69
|
-
get('/v2/
|
70
|
-
get('/v2/
|
71
|
-
put('/v2/
|
72
|
-
put('/v2/
|
73
|
-
put('/v2/
|
74
|
-
put('/v2/
|
75
|
-
delete('/v2/
|
76
|
-
delete('/v2/
|
68
|
+
# consumers
|
69
|
+
get('/v2/consumers/valid_public_id') { json_response 200, 'user.json' }
|
70
|
+
get('/v2/consumers/invalid_public_id') { json_response 404, 'resource_not_found.json' }
|
71
|
+
put('/v2/consumers/valid_public_id') { status 204 }
|
72
|
+
put('/v2/consumers/invalid_public_id') { json_response 400, 'invalid_user_id.json' }
|
73
|
+
put('/v2/consumers/valid_public_id/password') { json_response 200, 'user.json' }
|
74
|
+
put('/v2/consumers/invalid_public_id/password') { json_response 404, 'resource_not_found.json' }
|
75
|
+
delete('/v2/consumers/valid_public_id') { status 204 }
|
76
|
+
delete('/v2/consumers/invalid_public_id') { json_response 404, 'resource_not_found.json' }
|
77
77
|
|
78
78
|
# session
|
79
79
|
post('/v2/login') do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
@@ -234,6 +234,7 @@ files:
|
|
234
234
|
- finapps.gemspec
|
235
235
|
- lib/finapps.rb
|
236
236
|
- lib/finapps/rest/client.rb
|
237
|
+
- lib/finapps/rest/consumers.rb
|
237
238
|
- lib/finapps/rest/institutions.rb
|
238
239
|
- lib/finapps/rest/institutions_forms.rb
|
239
240
|
- lib/finapps/rest/order_reports.rb
|
@@ -245,11 +246,11 @@ files:
|
|
245
246
|
- lib/finapps/rest/user_institutions.rb
|
246
247
|
- lib/finapps/rest/user_institutions_forms.rb
|
247
248
|
- lib/finapps/rest/user_institutions_statuses.rb
|
248
|
-
- lib/finapps/rest/users.rb
|
249
249
|
- lib/finapps/rest/version.rb
|
250
250
|
- lib/finapps/version.rb
|
251
251
|
- lib/tasks/releaser.rake
|
252
252
|
- spec/rest/client_spec.rb
|
253
|
+
- spec/rest/consumers_spec.rb
|
253
254
|
- spec/rest/institutions_forms_spec.rb
|
254
255
|
- spec/rest/institutions_spec.rb
|
255
256
|
- spec/rest/order_reports_spec.rb
|
@@ -261,7 +262,6 @@ files:
|
|
261
262
|
- spec/rest/user_institutions_forms_spec.rb
|
262
263
|
- spec/rest/user_institutions_spec.rb
|
263
264
|
- spec/rest/user_institutions_statuses_spec.rb
|
264
|
-
- spec/rest/users_spec.rb
|
265
265
|
- spec/rest/version_spec.rb
|
266
266
|
- spec/spec_helper.rb
|
267
267
|
- spec/spec_helpers/client.rb
|
@@ -322,12 +322,12 @@ summary: FinApps REST API ruby client.
|
|
322
322
|
test_files:
|
323
323
|
- spec/rest/version_spec.rb
|
324
324
|
- spec/rest/user_institutions_forms_spec.rb
|
325
|
+
- spec/rest/consumers_spec.rb
|
325
326
|
- spec/rest/orders_spec.rb
|
326
327
|
- spec/rest/order_tokens_spec.rb
|
327
328
|
- spec/rest/institutions_forms_spec.rb
|
328
329
|
- spec/rest/user_institutions_statuses_spec.rb
|
329
330
|
- spec/rest/client_spec.rb
|
330
|
-
- spec/rest/users_spec.rb
|
331
331
|
- spec/rest/user_institutions_spec.rb
|
332
332
|
- spec/rest/password_resets_spec.rb
|
333
333
|
- spec/rest/order_reports_spec.rb
|