weibo_2 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/example/example.rb CHANGED
@@ -19,7 +19,7 @@ get '/' do
19
19
  if session[:access_token] && !client.authorized?
20
20
  token = client.get_token_from_hash({:access_token => session[:access_token], :expires_at => session[:expires_at]})
21
21
  puts token.inspect
22
- if token.expired?
22
+ if token.validated?
23
23
  reset_session
24
24
  redirect 'connect'
25
25
  return
@@ -1,10 +1,8 @@
1
1
  module WeiboOAuth2
2
- module Strategy
3
- class AccessToken < OAuth2::AccessToken
4
-
5
- def validated?
6
- !!@expires_at && !expired?
7
- end
2
+ class AccessToken < OAuth2::AccessToken
3
+
4
+ def validated?
5
+ !!@expires_at && !expired?
8
6
  end
9
7
  end
10
8
  end
@@ -1,3 +1,3 @@
1
1
  module WeiboOAuth2
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weibo_2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: