mjfreshyfresh-mini_fb 0.1.19 → 0.1.20

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 +3 -2
  2. metadata +11 -4
@@ -201,9 +201,10 @@ module MiniFB
201
201
  return body if BAD_JSON_METHODS.include? kwargs["method"]
202
202
  return (body == 'true') if %w{true false}.include?(body) # Hack for Facebook boolean API calls with BAD JSON.
203
203
 
204
- unless unescaped_attempt
204
+ unescaped_body = body[/\A"(.*)"\z/m,1]
205
+ if unescaped_body && !unescaped_attempt
205
206
  unescaped_attempt = true
206
- body = body[/\A"(.*)"\z/m,1].gsub('\\', '')
207
+ body = unescaped_body.gsub('\\', '')
207
208
  retry
208
209
  end
209
210
 
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mjfreshyfresh-mini_fb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 20
9
+ version: 0.1.20
5
10
  platform: ruby
6
11
  authors:
7
12
  - Travis Reeder
@@ -38,18 +43,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
38
43
  requirements:
39
44
  - - ">="
40
45
  - !ruby/object:Gem::Version
46
+ segments:
47
+ - 0
41
48
  version: "0"
42
- version:
43
49
  required_rubygems_version: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - ">="
46
52
  - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
47
55
  version: "0"
48
- version:
49
56
  requirements: []
50
57
 
51
58
  rubyforge_project:
52
- rubygems_version: 1.3.5
59
+ rubygems_version: 1.3.6
53
60
  signing_key:
54
61
  specification_version: 3
55
62
  summary: Tiny facebook library