roqua-core-api 0.0.19 → 0.0.20

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: 4eb936192f85004604aa556609f20c8599145c68
4
- data.tar.gz: e1092a2f8df763e5d7c523f5391eb2746b885f78
3
+ metadata.gz: d2cd98e56ba4d73c4f68068fd460a0c1e5212e97
4
+ data.tar.gz: f845ee0239f0d43502632157fb20416d1842c72d
5
5
  SHA512:
6
- metadata.gz: 10db5afae75c08b21d222ed07afb56d0a4004d350fa465fe5b3b13378ac0abe3430452ced74ec08eb71128780641f9741b24de2e49ef0873876a6f86c8a142d4
7
- data.tar.gz: 5381ac7c9773312c54b4f92eca3d219fab9a2d4e0bbd813a0832b95e2eeb865bd7f704f3cb75c45c9ec6b152090c9c508aa4adc65402ae8abcb0b588cb15b3da
6
+ metadata.gz: 2037c2d9f575c8a89e7540406d214e2d053f17c882ec1e196f12cfb1a5b6841177a06f07151efd7d59c2378264eab199caa936f44b190183f775bdbe2a63dd06
7
+ data.tar.gz: 081bce5e66255ecd985d79e6bbc26e77d9def18467b51f5a0e2ea1f5ed7c1a7b4193762f24f25ead3f14c5a53f3c83ad51310bcb20bf7f6209a320cc940a916e
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.0.20 / 2014-03-17
2
+
3
+ * Fix return_to on logout
4
+
1
5
  ### 0.0.17 / 2014-03-13
2
6
 
3
7
  * Now getting environment variables using ENV.fetch, so you will get errors if they are missing
data/Rakefile CHANGED
@@ -26,6 +26,14 @@ RSpec::Core::RakeTask.new
26
26
  task test: :spec
27
27
  task default: :spec
28
28
 
29
+ # run bundle in parent dir to update Gemfile.lock
30
+ task :release do
31
+ Bundler.with_clean_env do
32
+ `bundle --gemfile=../Gemfile`
33
+ end
34
+ `git add ../Gemfile.lock && git commit -m 'update roqua-core-api in Gemfile.lock'`
35
+ end
36
+
29
37
  require "bundler/gem_tasks"
30
38
 
31
39
  require 'yard'
@@ -10,7 +10,7 @@ module Roqua
10
10
  end
11
11
 
12
12
  def logout_url(return_to:)
13
- "#{core_site}/session/destroy?token=#{access_token}&redirect_to=#{CGI.escape return_to}"
13
+ "#{core_site}/session/destroy?token=#{access_token}&return_to=#{CGI.escape return_to}"
14
14
  end
15
15
 
16
16
  private
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module CoreApi
3
- VERSION = "0.0.19"
3
+ VERSION = "0.0.20"
4
4
  end
5
5
  end
@@ -27,7 +27,7 @@ describe OAuthSession do
27
27
  describe '#logout_url' do
28
28
  it 'returns the oauth session destroy url with an escaped redirect_to parameter' do
29
29
  expect(session.logout_url return_to: 'some redirect to')
30
- .to eq('http://core.dev/session/destroy?token=some_access_token&redirect_to=some+redirect+to')
30
+ .to eq('http://core.dev/session/destroy?token=some_access_token&return_to=some+redirect+to')
31
31
  end
32
32
  end
33
33
 
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.19
4
+ version: 0.0.20
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-03-13 00:00:00.000000000 Z
11
+ date: 2014-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty