resque-cleaner 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTkwNTk5MTJmZDU2MmM0OGEzZjFjMDA1NDZkYmM4OTQxNzc5MTg1NQ==
4
+ NzQxNzlhNWJhZGEzMmIwNmFiMGYyZGM4ZmExOTQyY2UxM2I1NGFhNg==
5
5
  data.tar.gz: !binary |-
6
- ODRlODRhODg1MmUzMWUzMzllMmJhY2RmZWU1MmQyYzU1NGJiNzE0Yw==
6
+ ZTUyNjI2NjljNzNjMjQzMDZjMTZhMDg5Y2QyMGMxZTc3Y2I2ZWI2MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTI0ZDAyY2MzMmFkZWM5MGYwZGI5YTA5Mzk3NzhiYTk5Njk5YTIzZWM0YzUy
10
- ZmM4YTBjZWJhY2JiYTNmNDNkYjcwZjkxZjhmOTBlZmNmNjQ1MDM3NmIwNjcx
11
- NmUzMWNjMzU0MDY5Y2MxOTE2ZDU1YjM0ZTdkOGNmOTkzY2ViMjY=
9
+ YTZmOTZkMTFlNjYxYTRkODFiOWEwMzg5MmVlMzJlMTRlMzEyZDc4Nzk3ZTMz
10
+ YmRhMjNhZWRjZDIyYWY4MGVhZDYwYjZkNDEwNjNkZmRjNjlmMDFiNTA5MGY4
11
+ M2MwZDQxNmIzODhlOTAxZTA0ZTlkZGJkNzMxODdmY2Q0MjA4Njk=
12
12
  data.tar.gz: !binary |-
13
- MzkxNjYyMzIzYWQ4ZWQxOTQzNzVmNDgwYjE0NzE4OGFlM2FhNDljYmJiOWE4
14
- MjdkYWRjOTQ5NDlhMjBkZDI3ZDk1OTlkNThiYjU2NThlNTA2YTBkYTg1OTYx
15
- NWViYWZmZTY3NmU1NTQzYzkxN2Q5ZjA0MmQ5NmFiMmNkNzYwOTg=
13
+ NGNjMGJkNDAxMWFjOTFiZmE2MjM1ODAzODU3OWJjNDUxZTUwMzViZjU0OWQ2
14
+ MmM1MmZlMGVlMzU0OTdjYTZlYjZhZGExMWMxYjdkMWZlOGY3ODQ2YzY5NTFj
15
+ MzE4MDVlZTlhOTgxYjEzNjZkMTcyZDMyNzg4NGYwMGE4MzI5NzI=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.2 (2016-03-09)
2
+
3
+ * Handle failure JSON with nil on payload safely (#40)
4
+
1
5
  ## 0.3.1 (2016-01-28)
2
6
 
3
7
  * Bug fix: fix the issue regex is not applied on bulk clearance (#36)
@@ -120,7 +120,8 @@ module ResqueCleaner
120
120
  @stats = { :klass => {}, :exception => {} }
121
121
  @total = Hash.new(0)
122
122
  @jobs.each do |job|
123
- klass = job["payload"]["class"] || 'UNKNOWN'
123
+ payload = job["payload"] || {}
124
+ klass = payload["class"] || 'UNKNOWN'
124
125
  exception = job["exception"] || 'UNKNOWN'
125
126
  failed_at = Time.parse job["failed_at"]
126
127
  @stats[:klass][klass] ||= Hash.new(0)
data/test/dump.rdb CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuya Ono
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque