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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bridge_api/client.rb +1 -0
- data/lib/bridge_api/client/sub_account.rb +0 -4
- data/lib/bridge_api/client/user.rb +1 -1
- data/lib/bridge_api/version.rb +1 -1
- data/spec/bridge_api/client/sub_account_spec.rb +0 -6
- data/spec/support/fake_bridge.rb +0 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f33df639a81471fedb5d8c5cfae0666827bbf4bd
|
4
|
+
data.tar.gz: db34d0fcb1339b47aaedc0a6710eb594595bcf59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c60cd5d7b332e8e58ba933a58feef4d30724b73236437b3a8a6f94e5ca95c71b888115b72a87aef2618c6cbaf701b24983214b557b5cc106fb64ee21cb9a554c
|
7
|
+
data.tar.gz: 5ae7b1a28a4062fca52ac2432719aead21fce48f05550fd7a7c29f1a9110bd02f1b6bf3e2281f28ed0723b91c63bbd560e5538aecebbcc4677ece8984c201c3a
|
data/Gemfile.lock
CHANGED
data/lib/bridge_api/client.rb
CHANGED
@@ -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
|
data/lib/bridge_api/version.rb
CHANGED
@@ -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'))
|
data/spec/support/fake_bridge.rb
CHANGED
@@ -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.
|
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-
|
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.
|
275
|
+
rubygems_version: 2.6.14
|
276
276
|
signing_key:
|
277
277
|
specification_version: 4
|
278
278
|
summary: Bridge API
|