devise_capturable 0.1.2 → 0.1.3

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: 824b69a9484e833882903ca3561c1084996cfd15
4
- data.tar.gz: 05892d44ed9d64190b143acb79410d462b21c06a
3
+ metadata.gz: f51b0aa643fe6b487a286db464c935b978fbe58b
4
+ data.tar.gz: dcffd26b7aa26740dca75715f5f09ea39834f0ae
5
5
  SHA512:
6
- metadata.gz: ff441cc8b80c6676bcdb3357bf4bff0bbfaa7161fe39d16e11e742106d63b3c12dc6e68c318c6a13b5b35b85eb0115df9026e22da98f0b50256420f5251ea139
7
- data.tar.gz: a6ab8b2b1020d8f207040853d527744f1575e58a68bc4f5a69b8623ea8cb5f627ba1d0eff2c8a1ebc0c18ef8207ab608be8824609f69dfd317c58c88d1125602
6
+ metadata.gz: eb115151a1cf99ad3615f4d716b4d6b525b51d1d8022d6aeb35d963d28f8ece257c1cf6908ff8bcf961561918cc2db165e3f9585b31c8d4da65c110c10f0357f
7
+ data.tar.gz: 0ce8381d6fc6ad4920a825a76daa23cb66ba281e6b6607b8a33de772e96d3a2a9181a1bc3cad4985666679edc7181f0c85e0839df464446759fe94b49fecc275
@@ -46,10 +46,11 @@ module Devise
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
48
  puts "Devise Capturable New Token #{new_token.inspect}"
49
- puts "token is: #{new_token["access_token"]}"
50
-
49
+ token_string = new_token["access_token"].to_s
50
+ puts "token is: #{token_string.inspect}"
51
+
51
52
  fail!(:capturable_user_missing)
52
- redirect!(Devise.capturable_redirect_if_no_user, :token => new_token["access_token"])
53
+ redirect!(Devise.capturable_redirect_if_no_user, :token => token_string)
53
54
 
54
55
  # else fail
55
56
  else
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Capturable
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rune Skjoldborg Madsen