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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.5.2 (2010-03-03)
2
+
3
+ * Bugfix: JSON check was crazy.
4
+
1
5
  ## 1.5.1 (2010-03-03)
2
6
 
3
7
  * `Job.destroy` and `Resque.dequeue` return the # of destroyed jobs.
@@ -21,12 +21,14 @@ module Resque
21
21
  return unless object
22
22
 
23
23
  if defined? Yajl
24
- Yajl::Parser.parse(object, :check_utf8 => false)
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
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = '1.5.1'
2
+ Version = '1.5.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath