fb_util 0.9 → 0.9.1
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/fb_util.rb +6 -1
- metadata +3 -3
data/lib/fb_util.rb
CHANGED
@@ -157,7 +157,12 @@ class FBUtil
|
|
157
157
|
# Rails.logger.info 'FB Response: ' + response.body
|
158
158
|
end
|
159
159
|
end
|
160
|
-
|
160
|
+
begin
|
161
|
+
return (JSON.parse response.body)
|
162
|
+
rescue JSON::ParserError => e
|
163
|
+
return response.body
|
164
|
+
end
|
165
|
+
# TODO: rescue real errors... this is horrid.
|
161
166
|
rescue Exception => e
|
162
167
|
if !Rails.nil?
|
163
168
|
Rails.logger.info e.page.body
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mechanize
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 1.8.
|
59
|
+
rubygems_version: 1.8.23
|
60
60
|
signing_key:
|
61
61
|
specification_version: 3
|
62
62
|
summary: Oh my simple facebook util
|