capistrano3-puma 0.3.7 → 0.4.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: 6c71746a914c0b55ad8eea83e38a446903aec543
4
- data.tar.gz: 11bfb0b1f82b77310649d423daff24286093bf47
3
+ metadata.gz: 95737637344d4d5216cb1c3f3a11ff0ad3c56e0b
4
+ data.tar.gz: 7804f9ea497e87b846eed953c1837ee13baa2ebd
5
5
  SHA512:
6
- metadata.gz: 71494e1133064807c8778280b9e0bf624f0b2f9515f8fc173beb356d222819aef4a594971073ac1443d804bfca4c9d4145516bb0abe5beee8b37c1b0eebe9d32
7
- data.tar.gz: ab7a229762964fc9d3113bc295736384c566c5b82d3d182fe795585ea2c8dfc213d4763d5d77eeddd58b94ac35f32ad3e8b89c76061f2db9980ad57fea54c83c
6
+ metadata.gz: 46fe892646295909ee4ced4db5dff593a0d0f803626ba428403b603e8985f65750b2f6be9579bbdbb5b0716f79ff2b760ab7acbea80d5774f6191e078d98e3ba
7
+ data.tar.gz: fdfe43b1c482335f3c6323d558027b6e5714f01ccb5d6188e6e9e591b9979f9427d0790b769dafde442d607f404c41c20e461937bd77968447a286253c55473e
data/README.md CHANGED
@@ -31,7 +31,7 @@ Configurable options, shown here with defaults: Please note the configuration op
31
31
  set :puma_rackup, -> { File.join(current_path, 'config.ru') }
32
32
  set :puma_state, "#{shared_path}/tmp/pids/puma.state"
33
33
  set :puma_pid, "#{shared_path}/tmp/pids/puma.pid"
34
- set :puma_bind, "unix://#{shared_path}/tmp/sockets/puma.sock"
34
+ set :puma_bind, "unix://#{shared_path}/tmp/sockets/puma.sock" #accept array for multi-bind
35
35
  set :puma_conf, "#{shared_path}/puma.rb"
36
36
  set :puma_access_log, "#{shared_path}/log/puma_error.log"
37
37
  set :puma_error_log, "#{shared_path}/log/puma_access.log"
@@ -52,6 +52,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
52
52
  tmp/pids tmp/sockets log
53
53
 
54
54
  ## Changelog
55
+ - 0.4.0: Multi-bind support
55
56
  - 0.3.7: Dependency bug fix
56
57
  - 0.3.5: Fixed a prehistoric bug
57
58
  - 0.3.4: I don't remember what i did here
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'https://github.com/seuros/capistrano-puma'
15
15
  spec.license = 'MIT'
16
16
 
17
- # spec.required_ruby_version = '~> 1.9.3'
17
+ spec.required_ruby_version = '>= 1.9.3'
18
18
 
19
19
  spec.files = `git ls-files`.split($/)
20
20
  spec.require_paths = ['lib']
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = 'https://github.com/seuros/capistrano-puma'
14
14
  spec.license = 'MIT'
15
15
 
16
- # spec.required_ruby_version = '~> 1.9.3'
16
+ spec.required_ruby_version = '>= 1.9.3'
17
17
 
18
18
  spec.files = `git ls-files`.split($/)
19
19
  spec.require_paths = ['lib']
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.3.7'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
@@ -124,6 +124,17 @@ namespace :puma do
124
124
  end
125
125
  end
126
126
 
127
+ def puma_bind
128
+ case fetch(:puma_bind)
129
+ when Array
130
+ fetch(:puma_bind).collect do |bind|
131
+ "bind '#{bind}'"
132
+ end.join("\n")
133
+ else
134
+ "bind '#{fetch(:puma_bind)}'"
135
+ end
136
+ end
137
+
127
138
  def template_puma(from, to, role)
128
139
  [
129
140
  "lib/capistrano/templates/#{from}-#{role.hostname}-#{fetch(:stage)}.rb",
@@ -11,7 +11,8 @@ stdout_redirect '<%=fetch(:puma_access_log)%>', '<%=fetch(:puma_error_log)%>', t
11
11
 
12
12
 
13
13
  threads <%=fetch(:puma_threads).join(',')%>
14
- bind "<%=fetch(:puma_bind)%>"
14
+
15
+ <%= puma_bind %>
15
16
 
16
17
 
17
18
  workers <%= puma_workers %>
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.3.7
4
+ version: 0.4.0
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-03-28 00:00:00.000000000 Z
11
+ date: 2014-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.9.3
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="