roqua-core-api 0.0.7 → 0.0.8

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: eb5022cd342803dfe4cfafde0bc41c44fe4ca09a
4
- data.tar.gz: 686c02fc8953b4d261d3039a09bcb1c13b31e7bd
3
+ metadata.gz: 776f395e58e35a163a8cf359bf7ed7a9adb92640
4
+ data.tar.gz: 6f67e6d17775b95634091464d00fd2cd51a5f6c8
5
5
  SHA512:
6
- metadata.gz: 6ad89331acfe10b09413ac796aba0ba1fb92b3a9bee9261b00c2c0f9ae5bd63973996cbaffe60cfc2fb9d4a2fe417fe2c0f2566073fb83293293c1fe3df6f1c4
7
- data.tar.gz: 517e5a269da65e9fd722bd7f9dc79f7b8aa48a22044af0af8f2bf8d268de89812077bcd9103603296874182f788500bf8f412a22db15ea5c4c8f0d38dd1c602c
6
+ metadata.gz: 7d809b97af2274782685951e8b56aab182a3971853f9f0b216cbfea27354b379aca75da8f83d1b60d2fd4a0798c38a846a177e669732f773581899759fa15668
7
+ data.tar.gz: a5c119317306ee2b85ea073d557a2250dbc08bb2b24379fef8e7f5b62ce7d9e3dd051fe57d17ecbabe5db8b4b432087d55bc73dab2cc7fd0489cea9da25fb36e
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.0.7 / 2014-02-27
2
+
3
+ * Added logout_url method
4
+
1
5
  ###
2
6
 
3
7
  * Removed start api
@@ -28,6 +28,10 @@ module Roqua
28
28
  HTTParty.put(full_url_for(url), headers: headers, body: params)
29
29
  end
30
30
 
31
+ def logout_url(redirect_to:)
32
+ "#{server_url}/session/destroy?token=#{access_token}&redirect_to=#{CGI.escape redirect_to}"
33
+ end
34
+
31
35
  private
32
36
 
33
37
  def full_url_for(url)
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module CoreApi
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqua-core-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  requirements: []
181
181
  rubyforge_project:
182
- rubygems_version: 2.2.1
182
+ rubygems_version: 2.2.0
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: API wrapper gem around Core's API
@@ -192,4 +192,3 @@ test_files:
192
192
  - spec/lib/roqua/core_api/sessions/dossier_group_session_spec.rb
193
193
  - spec/lib/roqua/core_api/sessions/organization_session_spec.rb
194
194
  - spec/spec_helper.rb
195
- has_rdoc: