sponges 1.1.1 → 1.1.2

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: 4b1b1602451522bc7b487d8b9aa614598b76cfbe
4
- data.tar.gz: 8bbf3bb4b29f165f44a7a3d4bb37f889bf1e5a6e
3
+ metadata.gz: 9bc5491b698ed4138e67bd7e8a2d4bca66d0cfa0
4
+ data.tar.gz: 67344939a5c469aede6b5a40b947f2ef62a16fcd
5
5
  SHA512:
6
- metadata.gz: 1482d719b75a363e7e90e31ebfe2ee6ab98251066e4b41838a2d8f9e1aeab2a1c62559d3d0a78a44591399cd96f247478c5ed7abf016aaad7df14eb8cd31ad35
7
- data.tar.gz: e901681ccd8099eb4477e755f96ab7fd5553aded4aa0171f23e8cb0af58551b0b62f17a5c4da7964924b06073d262f002f889388630c3cab793ceddc3dd49919
6
+ metadata.gz: 904154393bff8aa46081970a5fb9988c1839d8ed50e4d11cdce01b1adbd5eaae012f04985e407cf10a4bbb6a7320aeaa71b9b492bb72265824f21b6fb38d2cfb
7
+ data.tar.gz: 4e96a0be0f0be7fbc49694bdfb63235a6dd1d9d4f5c7c40fcf2b19892c1231e40d802208aa6aa3b67133689024ce41ad732a95b751c2f489018c64d63a1de109
data/README.md CHANGED
@@ -21,10 +21,6 @@ If you kill the supervisor, it will cleanly terminate its child processes.
21
21
 
22
22
  Internally, `sponges` strongly relies on Unix signals.
23
23
 
24
- ## Is it any good?
25
-
26
- [Yes.](http://news.ycombinator.com/item?id=3067434)
27
-
28
24
  ## Installation
29
25
 
30
26
  Requires Ruby 1.9.2 or newer.
@@ -84,6 +80,7 @@ Sponges.configure do |config|
84
80
  end
85
81
  config.on_chld do
86
82
  puts "Execute code when a child process is killed"
83
+ end
87
84
  end
88
85
 
89
86
  # Register a pool named "worker_name".
@@ -5,7 +5,7 @@ module Sponges
5
5
  class Cli < Boson::Runner
6
6
  option :daemonize, type: :boolean
7
7
  option :size, type: :numeric
8
- desc "Start workers"
8
+ desc "Starts workers"
9
9
  def start(options = {})
10
10
  options = {
11
11
  size: Sponges::Configuration.size,
@@ -18,7 +18,7 @@ module Sponges
18
18
 
19
19
  option :gracefully, type: :boolean
20
20
  option :timeout, type: :numeric
21
- desc "Stop workers"
21
+ desc "Stops workers"
22
22
  def stop(options = {})
23
23
  options = {
24
24
  timeout: Sponges::Configuration.timeout,
@@ -27,7 +27,7 @@ module Sponges
27
27
  Sponges::Commander.new(Sponges::Configuration.worker_name, options).stop
28
28
  end
29
29
 
30
- desc "Kill workers"
30
+ desc "Kills workers"
31
31
  def kill(options = {})
32
32
  Sponges::Commander.new(Sponges::Configuration.worker_name, options).kill
33
33
  end
@@ -36,20 +36,20 @@ module Sponges
36
36
  option :size, type: :numeric
37
37
  option :gracefully, type: :boolean
38
38
  option :timeout, type: :numeric
39
- desc "Restart workers"
39
+ desc "Restarts workers"
40
40
  def restart(options = {})
41
41
  stop(options)
42
42
  sleep 1
43
43
  start(options)
44
44
  end
45
45
 
46
- desc "Increment workers pool size"
46
+ desc "Increments workers pool size"
47
47
  def increment(options = {})
48
48
  Sponges::Commander.new(Sponges::Configuration.worker_name, options).
49
49
  increment
50
50
  end
51
51
 
52
- desc "Decrement workers pool size"
52
+ desc "Decrements workers pool size"
53
53
  def decrement(options = {})
54
54
  Sponges::Commander.new(Sponges::Configuration.worker_name, options).
55
55
  decrement
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Sponges
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sponges
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - chatgris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-02 00:00:00.000000000 Z
11
+ date: 2013-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: boson
@@ -78,7 +78,8 @@ files:
78
78
  - lib/sponges/version.rb
79
79
  - lib/sponges/worker.rb
80
80
  homepage: http://af83.github.com/sponges
81
- licenses: []
81
+ licenses:
82
+ - MIT
82
83
  metadata: {}
83
84
  post_install_message:
84
85
  rdoc_options: []
@@ -96,9 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  version: '0'
97
98
  requirements: []
98
99
  rubyforge_project:
99
- rubygems_version: 2.0.0
100
+ rubygems_version: 2.0.0.rc.2
100
101
  signing_key:
101
102
  specification_version: 4
102
103
  summary: Turn any ruby object to a daemon controlling an army of sponges.
103
104
  test_files: []
104
- has_rdoc: