fb_graph 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/fb_graph.gemspec +5 -5
- data/lib/fb_graph/auth.rb +4 -1
- metadata +7 -7
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ begin
|
|
13
13
|
gem.add_dependency 'json'
|
14
14
|
gem.add_dependency 'activesupport'
|
15
15
|
gem.add_dependency 'rest-client', '>= 1.4'
|
16
|
-
gem.add_dependency 'oauth2', '>= 0.0
|
16
|
+
gem.add_dependency 'oauth2', '>= 0.1.0'
|
17
17
|
gem.add_development_dependency 'rspec'
|
18
18
|
gem.add_development_dependency 'rcov'
|
19
19
|
gem.add_development_dependency 'fakeweb', '>= 1.3.0'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.6
|
data/fb_graph.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fb_graph}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["nov matake"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-10}
|
13
13
|
s.description = %q{A full-stack Facebook Graph API wrapper in Ruby.}
|
14
14
|
s.email = %q{nov@matake.jp}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -301,7 +301,7 @@ Gem::Specification.new do |s|
|
|
301
301
|
s.add_runtime_dependency(%q<json>, [">= 0"])
|
302
302
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
303
303
|
s.add_runtime_dependency(%q<rest-client>, [">= 1.4"])
|
304
|
-
s.add_runtime_dependency(%q<oauth2>, [">= 0.0
|
304
|
+
s.add_runtime_dependency(%q<oauth2>, [">= 0.1.0"])
|
305
305
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
306
306
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
307
307
|
s.add_development_dependency(%q<fakeweb>, [">= 1.3.0"])
|
@@ -309,7 +309,7 @@ Gem::Specification.new do |s|
|
|
309
309
|
s.add_dependency(%q<json>, [">= 0"])
|
310
310
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
311
311
|
s.add_dependency(%q<rest-client>, [">= 1.4"])
|
312
|
-
s.add_dependency(%q<oauth2>, [">= 0.0
|
312
|
+
s.add_dependency(%q<oauth2>, [">= 0.1.0"])
|
313
313
|
s.add_dependency(%q<rspec>, [">= 0"])
|
314
314
|
s.add_dependency(%q<rcov>, [">= 0"])
|
315
315
|
s.add_dependency(%q<fakeweb>, [">= 1.3.0"])
|
@@ -318,7 +318,7 @@ Gem::Specification.new do |s|
|
|
318
318
|
s.add_dependency(%q<json>, [">= 0"])
|
319
319
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
320
320
|
s.add_dependency(%q<rest-client>, [">= 1.4"])
|
321
|
-
s.add_dependency(%q<oauth2>, [">= 0.0
|
321
|
+
s.add_dependency(%q<oauth2>, [">= 0.1.0"])
|
322
322
|
s.add_dependency(%q<rspec>, [">= 0"])
|
323
323
|
s.add_dependency(%q<rcov>, [">= 0"])
|
324
324
|
s.add_dependency(%q<fakeweb>, [">= 1.3.0"])
|
data/lib/fb_graph/auth.rb
CHANGED
@@ -30,11 +30,14 @@ module FbGraph
|
|
30
30
|
|
31
31
|
def from_cookie(cookie)
|
32
32
|
cookie = FbGraph::Auth::Cookie.parse(self.client, cookie)
|
33
|
+
expires_in = unless cookie[:expires].zero?
|
34
|
+
cookie[:expires] - Time.now.to_i
|
35
|
+
end
|
33
36
|
self.access_token = OAuth2::AccessToken.new(
|
34
37
|
self.client,
|
35
38
|
cookie[:access_token],
|
36
39
|
cookie[:refresh_token],
|
37
|
-
|
40
|
+
expires_in
|
38
41
|
)
|
39
42
|
self.user = FbGraph::User.new(cookie[:uid], :access_token => self.access_token)
|
40
43
|
self
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 6
|
10
|
+
version: 1.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- nov matake
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-10 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -69,12 +69,12 @@ dependencies:
|
|
69
69
|
requirements:
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
hash:
|
72
|
+
hash: 27
|
73
73
|
segments:
|
74
74
|
- 0
|
75
|
+
- 1
|
75
76
|
- 0
|
76
|
-
|
77
|
-
version: 0.0.10
|
77
|
+
version: 0.1.0
|
78
78
|
type: :runtime
|
79
79
|
version_requirements: *id004
|
80
80
|
- !ruby/object:Gem::Dependency
|