resque 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of resque might be problematic. Click here for more details.
- data/HISTORY.md +4 -0
- data/lib/resque/helpers.rb +4 -2
- data/lib/resque/version.rb +1 -1
- metadata +1 -1
data/HISTORY.md
CHANGED
data/lib/resque/helpers.rb
CHANGED
@@ -21,12 +21,14 @@ module Resque
|
|
21
21
|
return unless object
|
22
22
|
|
23
23
|
if defined? Yajl
|
24
|
-
|
24
|
+
begin
|
25
|
+
Yajl::Parser.parse(object, :check_utf8 => false)
|
26
|
+
rescue Yajl::ParseError
|
27
|
+
end
|
25
28
|
else
|
26
29
|
begin
|
27
30
|
JSON.parse(object)
|
28
31
|
rescue JSON::ParserError
|
29
|
-
logger.error "#{$!}"
|
30
32
|
end
|
31
33
|
end
|
32
34
|
end
|
data/lib/resque/version.rb
CHANGED