cuba-bin 0.0.3 → 0.1.0

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: 1699a606da268e298fac0367322cc92546b4687f
4
- data.tar.gz: e91bc86d3fc89a0f0fe21515aa14ec936ec35b7f
3
+ metadata.gz: 0748a709675c11899697d2ccbfb487bfcea32e24
4
+ data.tar.gz: db50c77a2ff5f2e5cc499f6da9af06ebe1e3a03b
5
5
  SHA512:
6
- metadata.gz: 3bffcf0decf068d3f13e2e4223442fe7f0028b9ad87941880e1ae6dcf35d7927ca9417855ebcba7583ec207a38abb558749a3929bcd637f3c8a18c0494694d85
7
- data.tar.gz: 57d1bc78b7aa27f36e038addf260f937eb68a00418c91499d97494a4cada4f123cb5573c1e581d2dc2129a879037ac70a5ae5ffb919fc31e7a517489b3315d44
6
+ metadata.gz: bb1efff48edfa493dad4a1cab94ae2a867126ed4dd4f71fe5a67ee4b68fa022c7932e0a6fe279e3f4df57a88018d6c1861b9aaf0cc46c72460ad101d4b21c0b6
7
+ data.tar.gz: d066bcb58a4f532f48b4abcf5f27fbe7e02577d013caa47b9cfd77d6eb4a96445474a049548c893b3266672505858d3b3fd062e6bcb2eff91354010b23c42ad8
@@ -23,6 +23,8 @@ module Cuba
23
23
  attr_accessor :puma_pid
24
24
 
25
25
  def initialize(puma_args)
26
+ puma_args.concat ['-w', '1'] unless puma_args.include? '-w'
27
+
26
28
  @puma_args = puma_args
27
29
  # @options, @puma_args = options, puma_args
28
30
  @options = {}
@@ -76,10 +78,7 @@ module Cuba
76
78
 
77
79
  # tell puma to gracefully shut down workers
78
80
  def graceful_restart
79
- pid = puma_pid
80
- Process.kill(:INT, pid)
81
- Process.wait(pid)
82
- start_puma
81
+ Process.kill(:SIGUSR1, puma_pid)
83
82
  end
84
83
 
85
84
  def handle_change(modified, added, removed)
@@ -1,5 +1,5 @@
1
1
  module Cuba
2
2
  module Bin
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuba-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clap