mini_fb 0.1.5 → 0.1.6

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/mini_fb.rb +4 -0
  2. metadata +2 -2
data/lib/mini_fb.rb CHANGED
@@ -165,6 +165,10 @@ module MiniFB
165
165
  # Handle response
166
166
  return response.body if custom_format
167
167
 
168
+ fb_method = kwargs["method"]
169
+ if fb_method == "users.getLoggedInUser" # Little hack because this response isn't valid JSON
170
+ return response.body
171
+ end
168
172
  data = JSON.parse( response.body )
169
173
  puts 'response=' + data.inspect if @@logging
170
174
  if data.include?( "error_msg" ) then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_fb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-10 00:00:00 -08:00
12
+ date: 2009-11-11 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15