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 +4 -4
- data/README.md +2 -1
- data/capistrano-puma.gemspec +1 -1
- data/capistrano3-puma.gemspec +1 -1
- data/lib/capistrano/puma/version.rb +1 -1
- data/lib/capistrano/tasks/puma.cap +11 -0
- data/lib/capistrano/templates/puma.rb.erb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95737637344d4d5216cb1c3f3a11ff0ad3c56e0b
|
|
4
|
+
data.tar.gz: 7804f9ea497e87b846eed953c1837ee13baa2ebd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/capistrano-puma.gemspec
CHANGED
|
@@ -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
|
-
|
|
17
|
+
spec.required_ruby_version = '>= 1.9.3'
|
|
18
18
|
|
|
19
19
|
spec.files = `git ls-files`.split($/)
|
|
20
20
|
spec.require_paths = ['lib']
|
data/capistrano3-puma.gemspec
CHANGED
|
@@ -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
|
-
|
|
16
|
+
spec.required_ruby_version = '>= 1.9.3'
|
|
17
17
|
|
|
18
18
|
spec.files = `git ls-files`.split($/)
|
|
19
19
|
spec.require_paths = ['lib']
|
|
@@ -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",
|
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.
|
|
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-
|
|
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:
|
|
68
|
+
version: 1.9.3
|
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
requirements:
|
|
71
71
|
- - ">="
|