mage-hand 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mage-hand.rb +6 -6
- data/mage-hand.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/lib/mage-hand.rb
CHANGED
@@ -31,12 +31,12 @@ module MageHandController
|
|
31
31
|
store_tokens
|
32
32
|
return true if logged_in?
|
33
33
|
|
34
|
-
redirect_to
|
34
|
+
redirect_to obsidian_portal.request_token.authorize_url
|
35
35
|
false
|
36
36
|
end
|
37
37
|
|
38
38
|
def logged_in_op?
|
39
|
-
|
39
|
+
!!obsidian_portal && obsidian_portal.logged_in?
|
40
40
|
end
|
41
41
|
|
42
42
|
def obsidian_portal
|
@@ -45,9 +45,9 @@ module MageHandController
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def store_tokens
|
48
|
-
current_user.save_op_tokens(
|
49
|
-
session[:request_token] =
|
50
|
-
session[:access_token_key] =
|
51
|
-
session[:access_token_secret] =
|
48
|
+
current_user.save_op_tokens(obsidian_portal.access_token_key, obsidian_portal.access_token_secret) if current_user
|
49
|
+
session[:request_token] = obsidian_portal.request_token
|
50
|
+
session[:access_token_key] = obsidian_portal.access_token_key
|
51
|
+
session[:access_token_secret] = obsidian_portal.access_token_secret
|
52
52
|
end
|
53
53
|
end
|
data/mage-hand.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mage-hand
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -221,7 +221,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
221
221
|
version: '0'
|
222
222
|
segments:
|
223
223
|
- 0
|
224
|
-
hash:
|
224
|
+
hash: -1404664837419245318
|
225
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
226
226
|
none: false
|
227
227
|
requirements:
|