mogli 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mogli/client.rb +2 -2
  2. metadata +2 -2
data/lib/mogli/client.rb CHANGED
@@ -19,8 +19,8 @@ module Mogli
19
19
  def initialize(access_token = nil,expiration=nil)
20
20
  @access_token = access_token
21
21
  # nil expiration means extended access
22
- expiration = 10*365*24*60*60 if expiration.nil? or expiration == 0
23
- @expiration = Time.now + expiration
22
+ expiration = Time.now.to_i + 10*365*24*60*60 if expiration.nil? or expiration == 0
23
+ @expiration = Time.at(expiration)
24
24
  @default_params = @access_token ? {:access_token=>access_token} : {}
25
25
  end
26
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mogli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Mangino
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-05-12 00:00:00 -04:00
12
+ date: 2010-05-20 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency