devise_capturable 0.1.4 → 0.1.5

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: 93ad17ec30cf9ccbad4b49b18fcc4be0e53020e4
4
- data.tar.gz: e248204b8a61d0aa5c0cac63370bcd538992c536
3
+ metadata.gz: ee3008b20cec676dd23e78e310b6729d63b843be
4
+ data.tar.gz: 2ab8013bdef1576fee64eca1522138c62d6c051f
5
5
  SHA512:
6
- metadata.gz: eec6e7f6c5343e38864741e03485c2d60c1cb9e3a700d08d18de55eb7a1b9505e51c41ef247d914324aa2ca167fe22f0e45e5a9684f97dae2ec9d3655b230af4
7
- data.tar.gz: 331e442e257fbd4abdf5901b83ba427017200aa07a9dcd86075df2cf85dc89eb48d67c12e0e095c90e07fc5329bbf8fb4c67b622c100ed0d5fc45627db340861
6
+ metadata.gz: d96c2b89ffcfa025f8eb62f396262595e788e9d7551d15e9a0b60289e0b8eae7815aebc8bc9e2ea0df471d61c65df57b5aab289f92709a8301b39f6b947192c8
7
+ data.tar.gz: 62c9bf01187d71892d4b7d7187ce989cf5bf5fa76be072c16ca412ea9681a53a10d6c980c6b9df3058cef5559ce2187cc0f639eb80dfed2a1afc1881d44a6d9f
@@ -45,13 +45,14 @@ module Devise
45
45
 
46
46
  new_token = Devise::Capturable::API.refresh_token(token['refresh_token'])
47
47
  return fail!(:capturable_user_error) unless new_token['stat'] == 'ok'
48
- puts "Devise Capturable New Token #{new_token.inspect}"
48
+
49
49
  token_string = new_token["access_token"].to_s
50
- puts "token is: #{token_string.inspect }"
51
-
52
- redirect!(Devise.capturable_redirect_if_no_user, :token => token_string)
53
50
  fail!(:capturable_user_missing)
54
51
 
52
+ # if we redirect with a hash params object, it ends up repeating the params
53
+ # so we construct the URL ourselves.
54
+ redirect!("#{Devise.capturable_redirect_if_no_user}?token=#{token_string}")
55
+
55
56
  # else fail
56
57
  else
57
58
  fail!(:capturable_user_missing)
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Capturable
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_capturable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rune Skjoldborg Madsen