mini_fb 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/mini_fb.rb CHANGED
@@ -111,6 +111,8 @@ module MiniFB
111
111
  end
112
112
  end
113
113
 
114
+ BAD_JSON_METHODS = ["users.getLoggedInUser","auth.promoteSession"]
115
+
114
116
  # Call facebook server with a method request. Most keyword arguments
115
117
  # are passed directly to the server with a few exceptions.
116
118
  # The 'sig' value will always be computed automatically.
@@ -177,7 +179,7 @@ module MiniFB
177
179
  end
178
180
 
179
181
  rescue JSON::ParserError => ex
180
- if fb_method == "users.getLoggedInUser" # Little hack because this response isn't valid JSON
182
+ if BAD_JSON_METHODS.include?(fb_method) # Little hack because this response isn't valid JSON
181
183
  return body
182
184
  else
183
185
  raise ex
File without changes
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.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-12-03 00:00:00 -08:00
13
+ date: 2010-01-13 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -54,4 +54,4 @@ signing_key:
54
54
  specification_version: 3
55
55
  summary: Tiny facebook library
56
56
  test_files:
57
- - test/mini_fb_tests.rb
57
+ - test/test_mini_fb.rb