devise_facebook_open_graph 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  gem 'rails', '>= 3.0.0.beta3'
2
2
  gem 'devise', '>= 1.1.rc1'
3
- gem 'koala'
3
+ gem 'koala', '>= 0.8.0'
4
4
  gem 'json' # Koala needs this, but it has no gem spec which dictates this on it's own as it seems
5
5
 
6
6
 
data/Gemfile.lock CHANGED
@@ -31,34 +31,32 @@ dependencies:
31
31
  koala:
32
32
  group:
33
33
  - :default
34
- version: ">= 0"
34
+ version: ">= 0.8.0"
35
35
  specs:
36
36
  - rake:
37
37
  version: 0.8.7
38
38
  - abstract:
39
39
  version: 1.0.0
40
+ - activesupport:
41
+ version: 3.0.0.beta4
40
42
  - builder:
41
43
  version: 2.1.2
42
44
  - i18n:
43
- version: 0.3.7
44
- - memcache-client:
45
- version: 1.8.3
46
- - tzinfo:
47
- version: 0.3.22
48
- - activesupport:
49
- version: 3.0.0.beta3
45
+ version: 0.4.1
50
46
  - activemodel:
51
- version: 3.0.0.beta3
47
+ version: 3.0.0.beta4
52
48
  - erubis:
53
- version: 2.6.5
49
+ version: 2.6.6
54
50
  - rack:
55
51
  version: 1.1.0
56
52
  - rack-mount:
57
- version: 0.6.4
53
+ version: 0.6.6
58
54
  - rack-test:
59
55
  version: 0.5.4
56
+ - tzinfo:
57
+ version: 0.3.22
60
58
  - actionpack:
61
- version: 3.0.0.beta3
59
+ version: 3.0.0.beta4
62
60
  - mime-types:
63
61
  version: "1.16"
64
62
  - polyglot:
@@ -66,25 +64,23 @@ specs:
66
64
  - treetop:
67
65
  version: 1.4.8
68
66
  - mail:
69
- version: 2.2.3
70
- - text-hyphen:
71
- version: 1.0.0
72
- - text-format:
73
- version: 1.0.0
67
+ version: 2.2.5
74
68
  - actionmailer:
75
- version: 3.0.0.beta3
69
+ version: 3.0.0.beta4
76
70
  - arel:
77
- version: 0.3.3
71
+ version: 0.4.0
78
72
  - activerecord:
79
- version: 3.0.0.beta3
73
+ version: 3.0.0.beta4
80
74
  - activeresource:
81
- version: 3.0.0.beta3
75
+ version: 3.0.0.beta4
76
+ - bcrypt-ruby:
77
+ version: 2.1.2
82
78
  - bundler:
83
79
  version: 0.9.26
84
80
  - warden:
85
81
  version: 0.10.7
86
82
  - devise:
87
- version: 1.1.rc1
83
+ version: 1.1.rc2
88
84
  - json_pure:
89
85
  version: 1.4.3
90
86
  - gemcutter:
@@ -98,15 +94,15 @@ specs:
98
94
  - json:
99
95
  version: 1.4.3
100
96
  - koala:
101
- version: 0.7.2
97
+ version: 0.8.0
102
98
  - thor:
103
- version: 0.13.6
99
+ version: 0.13.7
104
100
  - railties:
105
- version: 3.0.0.beta3
101
+ version: 3.0.0.beta4
106
102
  - rails:
107
- version: 3.0.0.beta3
103
+ version: 3.0.0.beta4
108
104
  - rspec:
109
105
  version: 1.3.0
110
- hash: 69ed2d8540d60c12b9b97af95a0db518ddfd013f
106
+ hash: a0b671f6f1070f4b964ac83080ee174e95d138e0
111
107
  sources: []
112
108
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{devise_facebook_open_graph}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thorbj\303\270rn Hermansen"]
12
- s.date = %q{2010-06-16}
12
+ s.date = %q{2010-07-07}
13
13
  s.description = %q{Extends Devise with an authentication strategy against Facebook's Open Graph and it's JavaScrip SDK}
14
14
  s.email = %q{thhermansen@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -60,7 +60,7 @@ Gem::Specification.new do |s|
60
60
  s.add_runtime_dependency(%q<json>, [">= 0"])
61
61
  s.add_development_dependency(%q<jeweler>, [">= 0"])
62
62
  s.add_development_dependency(%q<bundler>, [">= 0"])
63
- s.add_runtime_dependency(%q<koala>, [">= 0"])
63
+ s.add_runtime_dependency(%q<koala>, [">= 0.8.0"])
64
64
  else
65
65
  s.add_dependency(%q<rails>, [">= 3.0.0.beta3"])
66
66
  s.add_dependency(%q<rake>, [">= 0"])
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
69
69
  s.add_dependency(%q<json>, [">= 0"])
70
70
  s.add_dependency(%q<jeweler>, [">= 0"])
71
71
  s.add_dependency(%q<bundler>, [">= 0"])
72
- s.add_dependency(%q<koala>, [">= 0"])
72
+ s.add_dependency(%q<koala>, [">= 0.8.0"])
73
73
  end
74
74
  else
75
75
  s.add_dependency(%q<rails>, [">= 3.0.0.beta3"])
@@ -79,7 +79,7 @@ Gem::Specification.new do |s|
79
79
  s.add_dependency(%q<json>, [">= 0"])
80
80
  s.add_dependency(%q<jeweler>, [">= 0"])
81
81
  s.add_dependency(%q<bundler>, [">= 0"])
82
- s.add_dependency(%q<koala>, [">= 0"])
82
+ s.add_dependency(%q<koala>, [">= 0.8.0"])
83
83
  end
84
84
  end
85
85
 
@@ -57,7 +57,13 @@ module DeviseFacebookOpenGraph
57
57
  private
58
58
  def parse_cookie # :nodoc:
59
59
  oauth = Koala::Facebook::OAuth.new(Config.application_id, Config.application_secret)
60
- oauth.get_user_from_cookie(@cookies)
60
+ user_information_hash = oauth.get_user_info_from_cookie(@cookies)
61
+
62
+ if user_information_hash.present? && !user_information_hash.is_a?(Hash)
63
+ raise "Expected get_user_info_from_cookie to return a Hash. Got #{user_information_hash.class}"
64
+ end
65
+
66
+ user_information_hash
61
67
  end
62
68
  end
63
69
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_facebook_open_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Thorbj\xC3\xB8rn Hermansen"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-16 00:00:00 +02:00
18
+ date: 2010-07-07 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -129,10 +129,12 @@ dependencies:
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- hash: 3
132
+ hash: 63
133
133
  segments:
134
134
  - 0
135
- version: "0"
135
+ - 8
136
+ - 0
137
+ version: 0.8.0
136
138
  requirement: *id008
137
139
  type: :runtime
138
140
  description: Extends Devise with an authentication strategy against Facebook's Open Graph and it's JavaScrip SDK