resque-web 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/app/views/layouts/resque_web/application.html.erb +3 -0
- data/app/views/resque_web/failures/show.html.erb +2 -2
- data/app/views/resque_web/queues/show.html.erb +2 -0
- data/config/initializers/resque_config.rb +11 -3
- data/lib/resque_web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bfba5e4391a78dfb5036c3953830ae7f9a234ef
|
4
|
+
data.tar.gz: 6ddd082245b336ee638a21d7781138b15d407e29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fcd03dbc72dcfeb5b33b0b20294c65ce510c1bae730a7fefbcfbf6b7e43fc6988ca3cff1b33604341a7714a4cd350f966f91e9f96d4097d35084fe7ec47bd08
|
7
|
+
data.tar.gz: 873cddad619901977561a0416d917e6d35d144c7f6d45cf66ca76eaf481e70bf63080dc62df814a79442b36086c463da5d581186262bb66c298f77d825ca889f
|
data/README.md
CHANGED
@@ -42,6 +42,11 @@ end
|
|
42
42
|
|
43
43
|
If `RAILS_RESQUE_REDIS` is set in `ENV` and is not the empty string, this gem will set `Resque.redis` equal to `ENV['RAILS_RESQUE_REDIS']` in an initializer.
|
44
44
|
|
45
|
+
If you need to set a password for your redis server, use this env variable.
|
46
|
+
```
|
47
|
+
RAILS_RESQUE_REDIS_PASSWORD=secure_pass
|
48
|
+
```
|
49
|
+
|
45
50
|
For info on configuring Resque itself (and accepted values of `Resque.redis`) see [the Configuration section of the Resque README](https://github.com/resque/resque#configuration).
|
46
51
|
|
47
52
|
|
@@ -84,6 +89,10 @@ In the past with the sinatra app it was fairly simple to just monkey-patch the
|
|
84
89
|
server to add more functionality/tabs. With this rails version you have to write
|
85
90
|
an engine under a specific namespace. Read more in PLUGINS.md.
|
86
91
|
|
92
|
+
## Existing plugins
|
93
|
+
|
94
|
+
- https://github.com/mattgibson/resque-scheduler-web
|
95
|
+
|
87
96
|
## Screenshot
|
88
97
|
|
89
98
|

|
@@ -13,8 +13,8 @@
|
|
13
13
|
|
14
14
|
<ul class="failed">
|
15
15
|
<% @jobs.each do |id, job| %>
|
16
|
-
<%= render :partial => 'failed_job', :locals => {:id => id, :job => job} %>
|
16
|
+
<%= render :partial => 'failed_job', :locals => {:id => job['id'] || id, :job => job} %>
|
17
17
|
<% end %>
|
18
18
|
</ul>
|
19
19
|
|
20
|
-
<%= pagination :start => failure_start_at, :total => failure_size unless params[:class] %>
|
20
|
+
<%= pagination :start => failure_start_at, :total => failure_size unless params[:class] %>
|
@@ -11,11 +11,13 @@
|
|
11
11
|
<p class="sub">Showing <%= queue_start_at %> to <%= queue_end_at %> of <b><%= queue_size %></b> jobs</p>
|
12
12
|
<table class="table table-bordered jobs">
|
13
13
|
<tr>
|
14
|
+
<th>ID</th>
|
14
15
|
<th>Class</th>
|
15
16
|
<th>Args</th>
|
16
17
|
</tr>
|
17
18
|
<% queue_jobs.each do |job| %>
|
18
19
|
<tr>
|
20
|
+
<td class='id'><%= job['id'] %></td>
|
19
21
|
<td class='class'><%= job['class'] %></td>
|
20
22
|
<td class='args'><%=h job['args'].inspect %></td>
|
21
23
|
</tr>
|
@@ -1,8 +1,16 @@
|
|
1
1
|
require 'resque'
|
2
2
|
|
3
|
-
# Previously, this initializer always set Resque.redis, and defaulted
|
4
|
-
# RAILS_RESQUE_REDIS was not set.
|
5
|
-
|
3
|
+
# Previously, this initializer always set Resque.redis, and defaulted
|
4
|
+
# to '127.0.0.1:6379' if RAILS_RESQUE_REDIS was not set.
|
6
5
|
if ENV['RAILS_RESQUE_REDIS'].present?
|
7
6
|
Resque.redis = ENV['RAILS_RESQUE_REDIS']
|
8
7
|
end
|
8
|
+
|
9
|
+
# Have to do this to accept password because resque does not support
|
10
|
+
# setting it in the string.
|
11
|
+
redis_password = ENV['RAILS_RESQUE_REDIS_PASSWORD']
|
12
|
+
if redis_password.present?
|
13
|
+
opts = Resque.redis.client.options
|
14
|
+
redis = Redis.new(opts.merge(password: redis_password))
|
15
|
+
Resque.redis = redis
|
16
|
+
end
|
data/lib/resque_web/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Arcieri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: resque
|