facebooker2 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -121,7 +121,7 @@ module Facebooker2
121
121
  def fb_signed_request_json(encoded)
122
122
  chars_to_add = 4-(encoded.size % 4)
123
123
  encoded += ("=" * chars_to_add)
124
- Base64.decode64(encoded)
124
+ base64_url_decode(encoded)
125
125
  end
126
126
 
127
127
  def facebook_params
@@ -227,7 +227,7 @@ module Facebooker2
227
227
  sig,payload = fb_cookie.split('.')
228
228
  return unless fb_signed_request_sig_valid?(sig, payload)
229
229
  data = JSON.parse(base64_url_decode(payload))
230
- authenticator = Mogli::Authenticator.new(Facebooker2.app_id, Facebooker2.secret, nil)
230
+ authenticator = Mogli::Authenticator.new(Facebooker2.app_id, Facebooker2.secret, '')
231
231
  client = Mogli::Client.create_from_code_and_authenticator(data["code"], authenticator)
232
232
  user = Mogli::User.new(:id=>data["user_id"])
233
233
  fb_sign_in_user_and_client(user, client)
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebooker2
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 61
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 16
9
- version: 0.0.16
9
+ - 17
10
+ version: 0.0.17
10
11
  platform: ruby
11
12
  authors:
12
13
  - Mike Mangino
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-12-12 00:00:00 -05:00
18
+ date: 2012-09-06 00:00:00 -04:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: mogli
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 93
27
30
  segments:
28
31
  - 0
29
32
  - 0
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: ruby-hmac
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 3
41
46
  segments:
42
47
  - 0
43
48
  version: "0"
@@ -47,9 +52,11 @@ dependencies:
47
52
  name: rake
48
53
  prerelease: false
49
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
50
56
  requirements:
51
57
  - - ~>
52
58
  - !ruby/object:Gem::Version
59
+ hash: 49
53
60
  segments:
54
61
  - 0
55
62
  - 8
@@ -61,9 +68,11 @@ dependencies:
61
68
  name: rspec
62
69
  prerelease: false
63
70
  requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
64
72
  requirements:
65
73
  - - ~>
66
74
  - !ruby/object:Gem::Version
75
+ hash: 25
67
76
  segments:
68
77
  - 1
69
78
  - 3
@@ -75,9 +84,11 @@ dependencies:
75
84
  name: rspec-rails
76
85
  prerelease: false
77
86
  requirement: &id005 !ruby/object:Gem::Requirement
87
+ none: false
78
88
  requirements:
79
89
  - - ~>
80
90
  - !ruby/object:Gem::Version
91
+ hash: 25
81
92
  segments:
82
93
  - 1
83
94
  - 3
@@ -89,9 +100,11 @@ dependencies:
89
100
  name: rails
90
101
  prerelease: false
91
102
  requirement: &id006 !ruby/object:Gem::Requirement
103
+ none: false
92
104
  requirements:
93
105
  - - ~>
94
106
  - !ruby/object:Gem::Version
107
+ hash: 23
95
108
  segments:
96
109
  - 2
97
110
  - 3
@@ -103,9 +116,11 @@ dependencies:
103
116
  name: json
104
117
  prerelease: false
105
118
  requirement: &id007 !ruby/object:Gem::Requirement
119
+ none: false
106
120
  requirements:
107
121
  - - ~>
108
122
  - !ruby/object:Gem::Version
123
+ hash: 7
109
124
  segments:
110
125
  - 1
111
126
  - 4
@@ -141,23 +156,27 @@ rdoc_options: []
141
156
  require_paths:
142
157
  - lib
143
158
  required_ruby_version: !ruby/object:Gem::Requirement
159
+ none: false
144
160
  requirements:
145
161
  - - ">="
146
162
  - !ruby/object:Gem::Version
163
+ hash: 3
147
164
  segments:
148
165
  - 0
149
166
  version: "0"
150
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
+ none: false
151
169
  requirements:
152
170
  - - ">="
153
171
  - !ruby/object:Gem::Version
172
+ hash: 3
154
173
  segments:
155
174
  - 0
156
175
  version: "0"
157
176
  requirements: []
158
177
 
159
178
  rubyforge_project:
160
- rubygems_version: 1.3.6
179
+ rubygems_version: 1.5.2
161
180
  signing_key:
162
181
  specification_version: 3
163
182
  summary: Facebook Connect integration library for ruby and rails