resque-cleaner 0.3.2 → 0.4.0

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
- NzQxNzlhNWJhZGEzMmIwNmFiMGYyZGM4ZmExOTQyY2UxM2I1NGFhNg==
4
+ Y2FlNTQ2ZDg0ZDA4N2RiMTQyNWZjNzYxNTY1YWMyMWQ5ZDFhYjZlZg==
5
5
  data.tar.gz: !binary |-
6
- ZTUyNjI2NjljNzNjMjQzMDZjMTZhMDg5Y2QyMGMxZTc3Y2I2ZWI2MA==
6
+ OWNhN2U4OGEzZDQwZDMzNTk1ZTE2ZjY0YWI5ZWUzMzNjMTVhOWZiYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTZmOTZkMTFlNjYxYTRkODFiOWEwMzg5MmVlMzJlMTRlMzEyZDc4Nzk3ZTMz
10
- YmRhMjNhZWRjZDIyYWY4MGVhZDYwYjZkNDEwNjNkZmRjNjlmMDFiNTA5MGY4
11
- M2MwZDQxNmIzODhlOTAxZTA0ZTlkZGJkNzMxODdmY2Q0MjA4Njk=
9
+ ZGRhMTJiZWY2MmVjNzUzNjE5NjEwODA5MDA0YmRlZDVhOTgzOTY1MjFiNTYw
10
+ MDY2ZGQ2YjdjYmUyOWVkNTcwZmQ5NjIzOWU3NGY1ODAxMzQ3YmI0MjZkN2Iw
11
+ MmI4Nzg0OWZjMzk5ZmE4NTQ3ZmY3ODVlNDMxMGM5ZGIzNTYyNTQ=
12
12
  data.tar.gz: !binary |-
13
- NGNjMGJkNDAxMWFjOTFiZmE2MjM1ODAzODU3OWJjNDUxZTUwMzViZjU0OWQ2
14
- MmM1MmZlMGVlMzU0OTdjYTZlYjZhZGExMWMxYjdkMWZlOGY3ODQ2YzY5NTFj
15
- MzE4MDVlZTlhOTgxYjEzNjZkMTcyZDMyNzg4NGYwMGE4MzI5NzI=
13
+ MjZjNjgyYTNmYTkxMjY0ZTM5ZjAwODQ1Mzk2YTFlY2VjNmQ1OWZhOWZkMTdj
14
+ ZTBiMzQ2MDQyZGFkMjdjMTlhZjVhYjM1ZjEwNGI0NmYwMTUyODcxMThjNTE3
15
+ MjFhOTYxNWQxMTUyNWUwM2YyODIxNmJkYzJjZjFjMTA0NWNhMDY=
@@ -1,3 +1,7 @@
1
+ ## 0.4.0 (2017-11-20)
2
+
3
+ * Render CSS as ERB partial to make Rails 5 compatible (#45)
4
+
1
5
  ## 0.3.2 (2016-03-09)
2
6
 
3
7
  * Handle failure JSON with nil on payload safely (#40)
@@ -8,9 +8,6 @@ module ResqueCleaner
8
8
  def self.erb_path(filename)
9
9
  File.join(File.dirname(__FILE__), 'server', 'views', filename)
10
10
  end
11
- def self.public_path(filename)
12
- File.join(File.dirname(__FILE__), 'server', 'public', filename)
13
- end
14
11
 
15
12
  # Pagination helper for list page.
16
13
  class Paginate
@@ -199,10 +196,6 @@ module ResqueCleaner
199
196
  cleaner.clear_stale
200
197
  redirect url_path(:cleaner)
201
198
  end
202
-
203
- get /cleaner\/public\/([a-z]+\.[a-z]+)/ do
204
- send_file ResqueCleaner::Server.public_path(params[:captures].first)
205
- end
206
199
  end
207
200
 
208
201
  end
@@ -264,4 +257,3 @@ end
264
257
  Resque::Server.class_eval do
265
258
  include ResqueCleaner::Server
266
259
  end
267
-
@@ -0,0 +1,63 @@
1
+ <style type="text/css" media="screen">
2
+ #main .cleaner .title h1 { float: left }
3
+
4
+ #main .cleaner .sub_header {color: #888; font-size: 80%; font-weight: bold}
5
+
6
+ #main .cleaner .control_panel {
7
+ margin: 5px 0 10px; padding: 5px; background: #eee; display: inline-block;
8
+ -webkit-border-radius:5px; border:1px solid #ccc;
9
+ }
10
+
11
+ #main .cleaner #exec { color: black; }
12
+ #main .cleaner #exec select { margin-right: 20px }
13
+ #main .cleaner #exec a { margin-right: 5px}
14
+ #main .cleaner #exec a.disabled { color: #aaa}
15
+
16
+ #main .cleaner table.class_list { width: auto }
17
+ #main .cleaner td.number { text-align: right }
18
+ #main .cleaner tr.total { border-top: 3px double #ccc}
19
+
20
+ #main .cleaner form { float: none; margin: 0}
21
+
22
+ #main .cleaner .warning { margin: 30px 0; padding: 10px; background: #fdd; display: inline-block; }
23
+
24
+ #main .clearfix:after {
25
+ content: ".";
26
+ display: block;
27
+ height: 0;
28
+ clear: both;
29
+ visibility: hidden;
30
+ }
31
+ #main .cleaner ul.failed {
32
+ margin-bottom: 10px
33
+ }
34
+
35
+ #main .cleaner .list_info{
36
+ color: #999; text-align: center;
37
+ }
38
+ #main .cleaner .list_info a{
39
+ color: #666
40
+ }
41
+ #main .cleaner .list_info .list_summary{
42
+ vertical-align: baseline;
43
+ display: inline-block;
44
+ margin: 0; padding:0;
45
+ }
46
+ #main .cleaner ul.pagination {
47
+ display: inline-block;
48
+ vertical-align: baseline;
49
+ margin:0; padding:0;
50
+ }
51
+ #main .cleaner ul.pagination li {
52
+ list-style:none; float: left; padding: 0 3px;
53
+ }
54
+ #main .cleaner ul.pagination li.current {
55
+ color: #333; font-weight: bold;
56
+ }
57
+ #main .cleaner ul.pagination li.summary{
58
+ padding-right: 10px
59
+ }
60
+ #main .cleaner div.dump{
61
+ float: right
62
+ }
63
+ </style>
@@ -1,4 +1,4 @@
1
- <link href="cleaner/public/cleaner.css" media="screen" rel="stylesheet" type="text/css">
1
+ <%= erb File.read(ResqueCleaner::Server.erb_path("_cleaner_styles.erb")) %>
2
2
 
3
3
  <div class="cleaner">
4
4
  <div class="title clearfix">
@@ -1,4 +1,4 @@
1
- <link href="cleaner/public/cleaner.css" media="screen" rel="stylesheet" type="text/css">
1
+ <%= erb File.read(ResqueCleaner::Server.erb_path("_cleaner_styles.erb")) %>
2
2
 
3
3
  <div class="cleaner">
4
4
  <p class="message">Processed <%= @count %> jobs.</p>
@@ -1,4 +1,4 @@
1
- <link href="cleaner/public/cleaner.css" media="screen" rel="stylesheet" type="text/css">
1
+ <%= erb File.read(ResqueCleaner::Server.erb_path("_cleaner_styles.erb")) %>
2
2
 
3
3
  <!-- Many code was copied from failed.erb of the original resque -->
4
4
  <div class="cleaner">
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.2
4
+ version: 0.4.0
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-03-09 00:00:00.000000000 Z
11
+ date: 2017-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque
@@ -68,7 +68,7 @@ files:
68
68
  - Rakefile
69
69
  - LICENSE
70
70
  - lib/resque-cleaner.rb
71
- - lib/resque_cleaner/server/public/cleaner.css
71
+ - lib/resque_cleaner/server/views/_cleaner_styles.erb
72
72
  - lib/resque_cleaner/server/views/_limiter.erb
73
73
  - lib/resque_cleaner/server/views/_paginate.erb
74
74
  - lib/resque_cleaner/server/views/_stats.erb
@@ -1,64 +0,0 @@
1
-
2
- #main .cleaner .title h1 { float: left }
3
-
4
- #main .cleaner .sub_header {color: #888; font-size: 80%; font-weight: bold}
5
-
6
- #main .cleaner .control_panel {
7
- margin: 5px 0 10px; padding: 5px; background: #eee; display: inline-block;
8
- -webkit-border-radius:5px; border:1px solid #ccc;
9
- }
10
-
11
- #main .cleaner #exec { color: black; }
12
- #main .cleaner #exec select { margin-right: 20px }
13
- #main .cleaner #exec a { margin-right: 5px}
14
- #main .cleaner #exec a.disabled { color: #aaa}
15
-
16
- #main .cleaner table.class_list { width: auto }
17
- #main .cleaner td.number { text-align: right }
18
- #main .cleaner tr.total { border-top: 3px double #ccc}
19
-
20
- #main .cleaner form { float: none; margin: 0}
21
-
22
- #main .cleaner .warning { margin: 30px 0; padding: 10px; background: #fdd; display: inline-block; }
23
-
24
- #main .clearfix:after {
25
- content: ".";
26
- display: block;
27
- height: 0;
28
- clear: both;
29
- visibility: hidden;
30
- }
31
- #main .cleaner ul.failed {
32
- margin-bottom: 10px
33
- }
34
-
35
- #main .cleaner .list_info{
36
- color: #999; text-align: center;
37
- }
38
- #main .cleaner .list_info a{
39
- color: #666
40
- }
41
- #main .cleaner .list_info .list_summary{
42
- vertical-align: baseline;
43
- display: inline-block;
44
- margin: 0; padding:0;
45
- }
46
- #main .cleaner ul.pagination {
47
- display: inline-block;
48
- vertical-align: baseline;
49
- margin:0; padding:0;
50
- }
51
- #main .cleaner ul.pagination li {
52
- list-style:none; float: left; padding: 0 3px;
53
- }
54
- #main .cleaner ul.pagination li.current {
55
- color: #333; font-weight: bold;
56
- }
57
- #main .cleaner ul.pagination li.summary{
58
- padding-right: 10px
59
- }
60
- #main .cleaner div.dump{
61
- float: right
62
- }
63
-
64
-