bridge_api 0.1.32 → 0.1.33

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: bea467340f25ab7120ecb5ba6c31abf5078480f8
4
- data.tar.gz: e5e7f4bee48c20494fcd68f0539325f2020f7802
3
+ metadata.gz: f33df639a81471fedb5d8c5cfae0666827bbf4bd
4
+ data.tar.gz: db34d0fcb1339b47aaedc0a6710eb594595bcf59
5
5
  SHA512:
6
- metadata.gz: 60639d0a1c6a246a7dbc6aed0a4b0fc0225d000df06ba44793c251caf034268ebd937077b6850c32afb1454372c6a632cd4c7e8e5fa779a533d8f56792aa23f2
7
- data.tar.gz: 972b45130747243cbf4e3e5e1053812df8e62c058f0757ae1fc9ada595fa23a2b45dea39d78f6e2febc404be7f2b31cee630ffeb738d4a38edffee90aef3fe93
6
+ metadata.gz: c60cd5d7b332e8e58ba933a58feef4d30724b73236437b3a8a6f94e5ca95c71b888115b72a87aef2618c6cbaf701b24983214b557b5cc106fb64ee21cb9a554c
7
+ data.tar.gz: 5ae7b1a28a4062fca52ac2432719aead21fce48f05550fd7a7c29f1a9110bd02f1b6bf3e2281f28ed0723b91c63bbd560e5538aecebbcc4677ece8984c201c3a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bridge_api (0.1.28)
4
+ bridge_api (0.1.31)
5
5
  faraday (~> 0.9.0)
6
6
  faraday_middleware (~> 0.9.0)
7
7
  footrest (>= 0.5.1)
@@ -31,6 +31,7 @@ module BridgeAPI
31
31
  API_PATH = '/api'.freeze
32
32
  ROLE_PATH = '/roles'.freeze
33
33
  AFFILIATED_SUBACCOUNTS = '/affiliated_sub_accounts'
34
+ BATCH_PATH = '/batch'
34
35
  RESULT_MAPPING = {}
35
36
 
36
37
  require 'bridge_api/api_array'
@@ -5,10 +5,6 @@ module BridgeAPI
5
5
  get("#{API_PATH}#{ADMIN_PATH}#{SUB_ACCOUNT_PATH}", params)
6
6
  end
7
7
 
8
- def get_sub_account(subaccount_id, params = {})
9
- get("#{API_PATH}#{ADMIN_PATH}#{SUB_ACCOUNT_PATH}/#{subaccount_id}", params)
10
- end
11
-
12
8
  def deactivate_sub_account(subaccount_id, params = {})
13
9
  put("#{API_PATH}#{ADMIN_PATH}#{SUB_ACCOUNT_PATH}/#{subaccount_id}/disable", params)
14
10
  end
@@ -34,7 +34,7 @@ module BridgeAPI
34
34
  end
35
35
 
36
36
  def add_user_to_role_batch(user_id, params = {})
37
- put("#{API_PATH}#{ADMIN_PATH}#{USER_PATH}/#{user_id}#{ROLE_PATH}", params)
37
+ put("#{API_PATH}#{ADMIN_PATH}#{USER_PATH}/#{user_id}#{ROLE_PATH}#{BATCH_PATH}", params)
38
38
  end
39
39
 
40
40
  private
@@ -1,3 +1,3 @@
1
1
  module BridgeAPI
2
- VERSION = '0.1.32'.freeze unless defined?(BridgeAPI::VERSION)
2
+ VERSION = '0.1.33'.freeze unless defined?(BridgeAPI::VERSION)
3
3
  end
@@ -13,12 +13,6 @@ describe BridgeAPI::Client::SubAccount do
13
13
  expect(response.first['id']).to(eq('141'))
14
14
  end
15
15
 
16
- it 'should get a single subaccount' do
17
- subaccounts = @client.get_sub_account(1)
18
- expect(subaccounts.count).to(eq(1))
19
- expect(subaccounts.first['name']).to(eq('Customers'))
20
- end
21
-
22
16
  it 'should activate a subaccount' do
23
17
  response = @client.activate_sub_account(1)
24
18
  expect(response.first['id']).to(eq('141'))
@@ -176,10 +176,6 @@ class FakeBridge < Sinatra::Base
176
176
  get_json_data 200, 'sub_accounts.json'
177
177
  end
178
178
 
179
- get %r{/api/admin/sub_accounts/\d+$} do
180
- get_json_data 200, 'sub_accounts.json'
181
- end
182
-
183
179
  put %r{/api/admin/sub_accounts$} do
184
180
  get_json_data 200, 'sub_accounts.json'
185
181
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.32
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Shaffer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-19 00:00:00.000000000 Z
11
+ date: 2018-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
272
  version: '0'
273
273
  requirements: []
274
274
  rubyforge_project:
275
- rubygems_version: 2.2.2
275
+ rubygems_version: 2.6.14
276
276
  signing_key:
277
277
  specification_version: 4
278
278
  summary: Bridge API