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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/mage-hand.rb +6 -6
  3. data/mage-hand.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -31,12 +31,12 @@ module MageHandController
31
31
  store_tokens
32
32
  return true if logged_in?
33
33
 
34
- redirect_to @mage_client.request_token.authorize_url
34
+ redirect_to obsidian_portal.request_token.authorize_url
35
35
  false
36
36
  end
37
37
 
38
38
  def logged_in_op?
39
- !!@obsidian_portal && @obsidian_portal.logged_in?
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(@mage_client.access_token_key, @mage_client.access_token_secret) if current_user
49
- session[:request_token] = @mage_client.request_token
50
- session[:access_token_key] = @mage_client.access_token_key
51
- session[:access_token_secret] = @mage_client.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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mage-hand"
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steven Hammond"]
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.2
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: 4609764136026977758
224
+ hash: -1404664837419245318
225
225
  required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  none: false
227
227
  requirements: