resque-cleaner 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTcwYzM2YTgyOGI5ZDI2OWM0MzM2YjM5ODU2NGI4N2NiN2ZiZDFhYg==
5
+ data.tar.gz: !binary |-
6
+ NDc1YjU5MWYwNDk4MzJjOGZmZjFjOGQ2MzJkMmEyMzY5NDk0Y2JmZQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MzIzMTNjNmE5ZjMwZmE2YmM2YzJhYzJlNjQyMWRhMDU2NTUyM2JhYzc0MGUy
10
+ NWRhZGI5ZTUyMWY5ZTVjMjBmNWJjNjdkYmEzNDIzODA2MzBjNzViZmRmYmMy
11
+ ZjI2NWViZjJjMjFkYmQ4MGRkOGQ2MzdjNjdmODNhYjlkNTFmNzM=
12
+ data.tar.gz: !binary |-
13
+ MDZlMTQyNzQ0Y2MyZWQyZDMzNjNjYzVlOGVhNjM4NWFjMDQ2MTEyNDE5NDY2
14
+ NDdhM2U5MDk3YWYzNjY4M2E3MjU2MGMyZmRkY2Y4ZDA0MzdjMWQ5MGM3YmI1
15
+ MGM2NGE1YzZkOGIwMjViZjAwMDY4NmNmNWMyZGM4ZDIzYjVlMjk=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.2.12 (2013-12-03)
2
+
3
+ * Remove Resque::Helpers include (#23)
4
+ * Tweak Gemspec (#24)
5
+ * Don't use yaml format to show arguments
6
+ * Tweak README
7
+
1
8
  ## 0.2.11 (2013-07-19)
2
9
 
3
10
  * Use transaction for retry-and-clear (#22).
@@ -1,4 +1,4 @@
1
- ResqueCleaner [![Travis-CI](https://secure.travis-ci.org/ono/resque-cleaner.png?branch=master)](http://travis-ci.org/ono/resque-cleaner) [![Dependency Status](https://gemnasium.com/ono/resque-cleaner.png)](https://gemnasium.com/ono/resque-cleaner)
1
+ ResqueCleaner
2
2
  =============
3
3
 
4
4
  [github.com/ono/resque-cleaner](https://github.com/ono/resque-cleaner)
@@ -87,7 +87,7 @@
87
87
  <dt>Class</dt>
88
88
  <dd><code><%= job['payload'] ? job['payload']['class'] : 'nil' %></code></dd>
89
89
  <dt>Arguments</dt>
90
- <dd><pre><%=h job['payload'] ? show_args(job['payload']['args']) : 'nil' %></pre></dd>
90
+ <dd><pre><%=h job['payload'] ? show_job_args(job['payload']['args']) : 'nil' %></pre></dd>
91
91
  <dt>Exception</dt>
92
92
  <dd><code><%= job['exception'] %></code></dd>
93
93
  <dt>Error</dt>
@@ -1,3 +1,5 @@
1
+ require 'yaml'
2
+
1
3
  # Extends Resque Web Based UI.
2
4
  # Structure has been borrowed from ResqueScheduler.
3
5
  module ResqueCleaner
@@ -97,6 +99,10 @@ module ResqueCleaner
97
99
  end
98
100
  html += "</select>"
99
101
  end
102
+
103
+ def show_job_args(args)
104
+ Array(args).map { |a| a.inspect }.join("\n")
105
+ end
100
106
  end
101
107
 
102
108
  mime_type :json, 'application/json'
@@ -7,7 +7,6 @@ module Resque
7
7
  # ResqueCleaner class provides useful functionalities to retry or clean
8
8
  # failed jobs. Let's clean up your failed list!
9
9
  class ResqueCleaner
10
- include Resque::Helpers
11
10
  # ResqueCleaner fetches all elements from Redis and checks them
12
11
  # by linear when filtering them. Since there is a performance concern,
13
12
  # ResqueCleaner handles only the latest x(default 1000) jobs.
data/test/test_helper.rb CHANGED
@@ -31,7 +31,6 @@ end
31
31
  # start our own redis when the tests start,
32
32
  # kill it when they end
33
33
  #
34
-
35
34
  at_exit do
36
35
  next if $!
37
36
 
@@ -43,8 +42,9 @@ at_exit do
43
42
 
44
43
  pid = `ps -A -o pid,command | grep [r]edis-test`.split(" ")[0]
45
44
  puts "Killing test redis server..."
46
- `rm -f #{dir}/dump.rdb`
47
45
  Process.kill("KILL", pid.to_i)
46
+ dump = "test/dump.rdb"
47
+ File.delete(dump) if File.exist?(dump)
48
48
  exit exit_code
49
49
  end
50
50
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
5
- prerelease:
4
+ version: 0.2.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tatsuya Ono
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-19 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: resque
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -35,10 +32,10 @@ executables: []
35
32
  extensions: []
36
33
  extra_rdoc_files:
37
34
  - LICENSE
38
- - README.markdown
35
+ - README.md
39
36
  - CHANGELOG.md
40
37
  files:
41
- - README.markdown
38
+ - README.md
42
39
  - CHANGELOG.md
43
40
  - Rakefile
44
41
  - LICENSE
@@ -51,35 +48,34 @@ files:
51
48
  - lib/resque_cleaner/server/views/cleaner_list.erb
52
49
  - lib/resque_cleaner/server.rb
53
50
  - lib/resque_cleaner.rb
54
- - test/dump.rdb
55
51
  - test/redis-test.conf
56
52
  - test/resque_cleaner_test.rb
57
53
  - test/resque_web_test.rb
58
54
  - test/test_helper.rb
59
- homepage: http://github.com/ono/resque-cleaner
60
- licenses: []
55
+ homepage: https://github.com/ono/resque-cleaner
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
61
59
  post_install_message:
62
60
  rdoc_options:
63
61
  - --charset=UTF-8
64
62
  require_paths:
65
63
  - lib
66
64
  required_ruby_version: !ruby/object:Gem::Requirement
67
- none: false
68
65
  requirements:
69
66
  - - ! '>='
70
67
  - !ruby/object:Gem::Version
71
68
  version: '0'
72
69
  required_rubygems_version: !ruby/object:Gem::Requirement
73
- none: false
74
70
  requirements:
75
71
  - - ! '>='
76
72
  - !ruby/object:Gem::Version
77
73
  version: '0'
78
74
  requirements: []
79
75
  rubyforge_project:
80
- rubygems_version: 1.8.23
76
+ rubygems_version: 2.1.11
81
77
  signing_key:
82
- specification_version: 3
78
+ specification_version: 4
83
79
  summary: Resque plugin cleaning up failed jobs.
84
80
  test_files: []
85
81
  has_rdoc:
data/test/dump.rdb DELETED
@@ -1 +0,0 @@
1
- REDIS0002�