bridge_api 0.1.37 → 0.1.38

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
  SHA1:
3
- metadata.gz: 5d378de0ed191a54a78659a84a95558d7df192e1
4
- data.tar.gz: 6f9526f496419ec2b51bfb4430b61c13d5ea38ee
3
+ metadata.gz: e89e886230a7256269ef5bb7af67f200edd129bc
4
+ data.tar.gz: 7b0278918ab4d91ff21b79974ef5163d90ee012d
5
5
  SHA512:
6
- metadata.gz: 9806534f173060d13aa71a5839f867c232844bcc71fbd6e3fa6a131384502c5510fd35a435655a4ef80202e7e357c68285795817aed2547cb641b9aed089b508
7
- data.tar.gz: 802496cc90a7440b37dcf74093269d199f1b3fd99f21904246fddc8ba8ff38d660132d991888dd522265b1f891a7af229794a79b910f8281c6b923e371c65102
6
+ metadata.gz: f04cc0ee442f8249d674e06646e6efec91cc233659279ac261d00d31478c9e3e90ff1a893728522c9dc8f70ecc2ee3d77e4e4b73d0c2f1675e50767f3a466b46
7
+ data.tar.gz: e8b2669baf29c7c2ec5e82143cfbe6561a75995ecbac7759d3dbd53b6aab9ee86950dffe628b207846f38aeed61a34059c0f6ce5a23097bfaee8dbd379dffb85
@@ -40,6 +40,10 @@ module BridgeAPI
40
40
  def create_sub_account_lti_config(sub_account_id, params = {})
41
41
  post("#{API_PATH}#{SUPPORT_PATH}#{SUB_ACCOUNT_PATH}/#{sub_account_id}#{LTI_TOOLS_PATH}", params)
42
42
  end
43
+
44
+ def delete_lti_config(sub_account_id, lti_tool_id, params = {})
45
+ delete("#{API_PATH}#{SUPPORT_PATH}#{SUB_ACCOUNT_PATH}/#{sub_account_id}#{LTI_TOOLS_PATH}/#{lti_tool_id}", params)
46
+ end
43
47
  end
44
48
  end
45
49
  end
@@ -1,3 +1,3 @@
1
1
  module BridgeAPI
2
- VERSION = '0.1.37'.freeze unless defined?(BridgeAPI::VERSION)
2
+ VERSION = '0.1.38'.freeze unless defined?(BridgeAPI::VERSION)
3
3
  end
@@ -45,4 +45,9 @@ describe BridgeAPI::Client::SubAccount do
45
45
  response = @client.create_sub_account_lti_config(2,params)
46
46
  expect(response.status).to(eq 201)
47
47
  end
48
+
49
+ it 'should delete a lti config' do
50
+ response = @client.delete_lti_config(2,15)
51
+ expect(response.status).to(eq 204)
52
+ end
48
53
  end
@@ -222,6 +222,10 @@ class FakeBridge < Sinatra::Base
222
222
  get_json_data 201, 'sub_account_new_lti_config.json'
223
223
  end
224
224
 
225
+ delete %r{/api/support/sub_accounts/\d+/lti_tools/\d+} do
226
+ get_json_data 204, 'sub_account_lti_config.json'
227
+ end
228
+
225
229
  # Accounts
226
230
  put %r{/api/support/accounts} do
227
231
  get_json_data 200, 'accounts.json'
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.37
4
+ version: 0.1.38
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-08-07 00:00:00.000000000 Z
11
+ date: 2018-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler