resque-web 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bba0bcaaef20020502b12dfd8c64dae8c9d4ca63
4
- data.tar.gz: 45acb5fcec856e50c80fb93d531fcbef6364fcd3
3
+ metadata.gz: 4bfba5e4391a78dfb5036c3953830ae7f9a234ef
4
+ data.tar.gz: 6ddd082245b336ee638a21d7781138b15d407e29
5
5
  SHA512:
6
- metadata.gz: 2332e03a4de5b6ccd567a1d262fd9188c7f926bc3abbf488d631eb307a04a57171e730042e0ab3183d5b77f5ef0cc18a4ff3e3a99f1cac22768812215020efa2
7
- data.tar.gz: 67cb258c3fe8e56e4749407851d425bb2f6a911475ade39000e6817b616064f2b8c8a1f144488923cdacea199cbbf7c2ef6bf65ad6afae6e88c9902ae372d0b3
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
  ![Screenshot](http://i.imgur.com/LkNgl.png)
@@ -45,6 +45,9 @@
45
45
  <% tabs.each do |tab_name,path| %>
46
46
  <%= tab tab_name,path %>
47
47
  <% end %>
48
+ <% if respond_to?(:main_app) %>
49
+ <li><%= link_to "Return to Application", main_app.root_path, :class => "nav navbar-nav" %></li>
50
+ <% end %>
48
51
  </ul>
49
52
  </div>
50
53
  </div>
@@ -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 to '127.0.0.1:6379' if
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
@@ -1,3 +1,3 @@
1
1
  module ResqueWeb
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
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.11
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-04-25 00:00:00.000000000 Z
11
+ date: 2017-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque