capistrano3-puma 0.5.0 → 0.5.1

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: 72adcf17b7df644935888f2db4d54f8768fa37e3
4
- data.tar.gz: 6339c8ae779638584d8bd2cf5cb58f53979504bd
3
+ metadata.gz: c5e6d7a282e15a64ea0a11d8e75715b8d1e7b5f9
4
+ data.tar.gz: 96ddd46d8d8818de1e6741996cb49345bbdb9804
5
5
  SHA512:
6
- metadata.gz: 5a72c7686a9d3b45c02b7a20a88f444cddf9f9eabb0efca4367e5b31d5130cd686004a9a681157d90a79afd132c4fff8600ffb230e897500169c35a8efc0c443
7
- data.tar.gz: 10d90221ff1886edab8ce24e3f5347d5cb3899eded6ef36a87b14c018a20fb7418ad94f86195bf04dc8c64cfd5984e430cc17e4ce2131086a29fc759088ea4e6
6
+ metadata.gz: f759e225e50b35f2590a474dd0e260f9e822600e0843ce1b55cfc3eaf0f890bfee8a7db402ea063fa768ced9371ee2429a17d6731103446b54106f1c8cb28bbd
7
+ data.tar.gz: a81853cc9b5b7bc62323ef0c868058481f271b8b7f5892ad77e729c633bb60e7a15543a2139e93d6a1819d172db48d72745be6186353088c848e0f2c30190428
data/README.md CHANGED
@@ -39,6 +39,7 @@ Configurable options, shown here with defaults: Please note the configuration op
39
39
  set :puma_env, fetch(:rack_env, fetch(:rails_env, 'production'))
40
40
  set :puma_threads, [0, 16]
41
41
  set :puma_workers, 0
42
+ set :puma_worker_timeout, nil
42
43
  set :puma_init_active_record, false
43
44
  set :puma_preload_app, true
44
45
  ```
@@ -66,6 +67,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
66
67
  tmp/pids tmp/sockets log
67
68
 
68
69
  ## Changelog
70
+ - 0.5.1: Added worker_timeout option
69
71
  - 0.5.0: Bugs fixes
70
72
  - 0.4.2: Fix monit template to support chruby
71
73
  - 0.4.1: Fix puma jungle (debian)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
5
5
  end
@@ -112,17 +112,7 @@ namespace :puma do
112
112
  fetch(:puma_workers) || 0
113
113
  end
114
114
 
115
- def puma_tag
116
- if fetch(:puma_tag)
117
- # Versions(puma) prior to 2.8.2 don't support tag option
118
- if Gem.loaded_specs['puma'].version >= Gem::Version.new('2.8.2')
119
- return "tag '#{fetch(:puma_tag)}'"
120
- else
121
- warn 'Version puma 2.8.2+ required for tag option: Tag not set'
122
- end
123
- return
124
- end
125
- end
115
+
126
116
 
127
117
  def puma_bind
128
118
  case fetch(:puma_bind)
@@ -3,7 +3,9 @@
3
3
  directory '<%= current_path %>'
4
4
  rackup "<%=fetch(:puma_rackup)%>"
5
5
  environment '<%= fetch(:puma_env) %>'
6
- <%= puma_tag %>
6
+ <% if fetch(:puma_tag) %>
7
+ tag '<%= fetch(:puma_tag)%>'
8
+ <% end %>
7
9
  daemonize true
8
10
  pidfile "<%=fetch(:puma_pid)%>"
9
11
  state_path "<%=fetch(:puma_state)%>"
@@ -13,9 +15,11 @@ stdout_redirect '<%=fetch(:puma_access_log)%>', '<%=fetch(:puma_error_log)%>', t
13
15
  threads <%=fetch(:puma_threads).join(',')%>
14
16
 
15
17
  <%= puma_bind %>
16
-
17
-
18
18
  workers <%= puma_workers %>
19
+ <% if fetch(:puma_worker_timeout) %>
20
+ worker_timeout <%= fetch(:puma_worker_timeout).to_i %>
21
+ <% end %>
22
+
19
23
  <% if fetch(:puma_preload_app) %>
20
24
  preload_app!
21
25
  <% end %>
@@ -3,7 +3,7 @@ app=$1;
3
3
  cd $app || exit 1
4
4
 
5
5
  if [ -e Gemfile ]; then
6
- exec sh -c "exec bundle exec puma -C ../../shared/config/puma.rb"
6
+ exec sh -c "exec bundle exec puma -C ../../shared/puma.rb"
7
7
  else
8
- exec sh -c "exec puma -C ../../shared/config/puma.rb"
9
- fi
8
+ exec sh -c "exec puma -C ../../shared/puma.rb"
9
+ fi
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-12 00:00:00.000000000 Z
11
+ date: 2014-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.0.3
89
+ rubygems_version: 2.2.2
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Puma integration for Capistrano