resque-pool-lifeguard 0.2.1 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c40aa1b922ad9c795bbf1d71ac33915b8827b36
4
- data.tar.gz: 39001f699d6594000fbec430c3be0fb9d8fa4f3e
3
+ metadata.gz: 9357e07c724241fcbdca59d30798f26a3b2311ff
4
+ data.tar.gz: b500e0af86817f6b09602f7afe4cd8a05bcf9415
5
5
  SHA512:
6
- metadata.gz: a68546e141cf03bcda55aff3575ffcc358730c14e810262b69f6b632f0ec365c62ebe9de1cd622232dc375543f0f43057b9ec1ad95264e3cae0a44c6b9551a10
7
- data.tar.gz: 9d5f8bffac027e54d06f5561be798477774da9c8f48e9761977c620b5718bb181ad589df832c22d2d5032451164b61b9029a90cfebca8188a06192da88bd1ca7
6
+ metadata.gz: 3602f352877f7b97e5546eedc716746a452c3d83d14d36118e99722f841feb6f0766327bc5011639e7322cd767cc6dbb5cce04acd4bb176eae887b4e1055f5ef
7
+ data.tar.gz: bc862d666e2966aa6cbd486bcedfeddce2ea24ff4255dd625bfaa3bc6bff897afef0e70d6bebe19a29f1c2f7148055ba25b4511bdfa270dc743b362add71d031
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Resque::Pool::Lifeguard [![Build Status](https://travis-ci.org/crazymykl/resque-pool-lifeguard.svg?branch=master)](https://travis-ci.org/crazymykl/resque-pool-lifeguard)
1
+ # Resque::Pool::Lifeguard [![Build Status](https://travis-ci.org/crazymykl/resque-pool-lifeguard.svg?branch=master)](https://travis-ci.org/crazymykl/resque-pool-lifeguard) [![Dependency Status](https://dependencyci.com/github/crazymykl/resque-pool-lifeguard/badge)](https://dependencyci.com/github/crazymykl/resque-pool-lifeguard)
2
2
 
3
3
  Resque pool is a great way to manage a set of resque workers. However, sometimes one wants to spin up a bunch of workers temporarily, or to conserve resources during times of heavy load.
4
4
 
@@ -19,6 +19,13 @@ module Resque
19
19
  redirect u :pools
20
20
  end
21
21
 
22
+ app.post '/pools/:host/forget' do
23
+ host = params[:host]
24
+
25
+ Lifeguard.new(hostname: host).reset!
26
+ redirect u :pools
27
+ end
28
+
22
29
  app.get "/pools.poll" do
23
30
  content_type "text/plain"
24
31
  @polling = true
@@ -17,7 +17,11 @@ form.queues input[type="number"] {
17
17
 
18
18
  <% pools.each do |host, pool| %>
19
19
  <% if pools.length > 1 %>
20
- <h2 class='hostname'><%= host %></h2>
20
+ <h2 class='hostname'><%= host %>
21
+ <form class='forget host' action="<%= u "/pools/#{host}/forget" %>" method="POST">
22
+ <input type="submit" value="Forget">
23
+ </form>
24
+ </h2>
21
25
  <% end %>
22
26
  <table class='pool'>
23
27
  <tr>
@@ -1,7 +1,7 @@
1
1
  module Resque
2
2
  class Pool
3
3
  class Lifeguard
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-pool-lifeguard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike MacDonald
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-07 00:00:00.000000000 Z
11
+ date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque
@@ -151,8 +151,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.4.3
154
+ rubygems_version: 2.5.2
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Adds live GUI queue/worker management to resque-pool
158
158
  test_files: []
159
+ has_rdoc: