weibo_2 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,14 +6,14 @@ module WeiboOAuth2
6
6
  end
7
7
 
8
8
  def expired?
9
- expires? && (expires_at < self.time_convertion(Time.now, '+08:00').to_i)
9
+ expires? && (expires_at < time_convertion(Time.now, '+08:00').to_i)
10
10
  end
11
11
 
12
12
 
13
13
  #Convert Time from a time zone to another time zone
14
14
  #'+08:00' or '-08:00'
15
15
  #return Time
16
- def self.time_convertion(time, time_zone)
16
+ def time_convertion(time, time_zone)
17
17
  time.getutc.getlocal(time_zone)
18
18
  end
19
19
  end
@@ -3,7 +3,7 @@ module WeiboOAuth2
3
3
  class Version
4
4
  MAJOR = 0 unless defined? MAJOR
5
5
  MINOR = 0 unless defined? MINOR
6
- PATCH = 8 unless defined? PATCH
6
+ PATCH = 9 unless defined? PATCH
7
7
  PRE = nil unless defined? PRE
8
8
 
9
9
  class << self
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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: