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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85c083648b5e9558d09692173a63bc9ea0eda111
4
- data.tar.gz: 0eece721751057855eae856f979c28b9a2fd7641
3
+ metadata.gz: a033bd0ab511577d1ca4fe8deaa73a38ca74b0b2
4
+ data.tar.gz: 735f7060762eaf06333643a3da78eee3188785bd
5
5
  SHA512:
6
- metadata.gz: d55d387b87682bd9132601d8d8b0c6418cfd527f8597cf9b52ff6a81a6d82e36a493450c2fb78c5edfac729cff0466ee9dc47c30bdfdd00d8ca47425e2ca01ea
7
- data.tar.gz: 27e8a22cafa19f329824d66bb2c46a47e3cbfbc9f33f156c03591aa717bc71781c7a8dd7ea0e47a9d57b173f54caca0e80b6b84382d1877524da0c5e66cb05a6
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/users'
12
+ require 'finapps/rest/consumers'
13
13
  require 'finapps/rest/sessions'
14
14
  require 'finapps/rest/order_tokens'
15
15
  require 'finapps/rest/orders'
@@ -17,7 +17,7 @@ module FinApps
17
17
  order_tokens
18
18
  password_resets
19
19
  sessions
20
- users
20
+ consumers
21
21
  user_institutions
22
22
  user_institutions_forms
23
23
  user_institutions_statuses
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  module FinApps
3
3
  module REST
4
- class Users < FinAppsCore::REST::Resources # :nodoc:
4
+ class Consumers < FinAppsCore::REST::Resources # :nodoc:
5
5
  using ObjectExtensions
6
6
  using StringExtensions
7
7
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module FinApps
3
- VERSION = '2.2.3'
3
+ VERSION = '2.2.4'
4
4
  end
@@ -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 '#users' do
23
- it { expect(subject.users).to be_an_instance_of(FinApps::REST::Users) }
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::Users, 'initialized with valid FinApps::Client object' do
4
+ RSpec.describe FinApps::REST::Consumers, 'initialized with valid FinApps::Client object' do
5
5
  include SpecHelpers::Client
6
- subject(:users) { FinApps::REST::Users.new(client) }
6
+ subject(:users) { FinApps::REST::Consumers.new(client) }
7
7
  missing_public_id = 'Missing argument: public_id'
8
8
 
9
9
  describe '#show' do
@@ -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
- # users
69
- get('/v2/users/valid_public_id') { json_response 200, 'user.json' }
70
- get('/v2/users/invalid_public_id') { json_response 404, 'resource_not_found.json' }
71
- put('/v2/users/valid_public_id') { status 204 }
72
- put('/v2/users/invalid_public_id') { json_response 400, 'invalid_user_id.json' }
73
- put('/v2/users/valid_public_id/password') { json_response 200, 'user.json' }
74
- put('/v2/users/invalid_public_id/password') { json_response 404, 'resource_not_found.json' }
75
- delete('/v2/users/valid_public_id') { status 204 }
76
- delete('/v2/users/invalid_public_id') { json_response 404, 'resource_not_found.json' }
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.3
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