capistrano3-puma 6.2.0 → 7.1.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/lib/capistrano/puma/systemd.rb +1 -1
- data/lib/capistrano/puma.rb +3 -5
- data/lib/capistrano/templates/puma.service.erb +12 -2
- metadata +7 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c35dc9ccbaff14a1fff1a8562fabc12f5e1b7a5ad1f5154598ff3e047b74c348
|
|
4
|
+
data.tar.gz: 7b7fd37c69d3a85e3a61d417a0bc3fbfe6125a9d26dbb716c595c9c23ede27ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f07c452c5443b21342b0d2f7c979204d6e38fe319f7e7082c10e13908bd313a05de35032d8b78abd004bcfcb3e15acfd8f5f21cc56e90e5e4103f2cd649b5b2
|
|
7
|
+
data.tar.gz: a1ef0c8dc878b6be0a21d9e5d0df5aa44ee30148f53115a14b032ec97924500b1630b5380134281b623eefd463dee5232107bc4495c509504cf152c12297512d
|
data/lib/capistrano/puma.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Capistrano
|
|
|
15
15
|
def puma_user(role)
|
|
16
16
|
properties = role.properties
|
|
17
17
|
return role.user unless properties
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
properties.fetch(:puma_user) || # local property for puma only
|
|
20
20
|
fetch(:puma_user, nil) ||
|
|
21
21
|
properties.fetch(:run_as) || # global property across multiple capistrano gems
|
|
@@ -31,10 +31,8 @@ module Capistrano
|
|
|
31
31
|
def service_unit_type
|
|
32
32
|
## Jruby don't support notify
|
|
33
33
|
return "simple" if RUBY_ENGINE == "jruby"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Gem::Specification.find_all_by_name("sd_notify").any? ? "notify" : "simple")
|
|
37
|
-
|
|
34
|
+
## Puma 6.1+ has built-in sd_notify support
|
|
35
|
+
fetch(:puma_service_unit_type, "notify")
|
|
38
36
|
end
|
|
39
37
|
|
|
40
38
|
def compiled_template_puma(from, role)
|
|
@@ -38,8 +38,18 @@ ExecReload=/bin/kill -USR1 $MAINPID
|
|
|
38
38
|
RestartSec=1
|
|
39
39
|
Restart=on-failure
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
<%- puma_access_log = fetch(:puma_access_log) -%>
|
|
42
|
+
<%- if puma_access_log == "journal" %>
|
|
43
|
+
StandardOutput=journal
|
|
44
|
+
<%- else -%>
|
|
45
|
+
<%="StandardOutput=append:#{puma_access_log}" if puma_access_log %>
|
|
46
|
+
<%- end -%>
|
|
47
|
+
<%- puma_error_log = fetch(:puma_error_log) -%>
|
|
48
|
+
<%- if puma_error_log == "journal" %>
|
|
49
|
+
StandardError=journal
|
|
50
|
+
<%- else -%>
|
|
51
|
+
<%="StandardError=append:#{puma_error_log}" if puma_error_log %>
|
|
52
|
+
<%- end -%>
|
|
43
53
|
|
|
44
54
|
SyslogIdentifier=<%= fetch(:puma_service_unit_name) %>
|
|
45
55
|
[Install]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano3-puma
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 7.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Abdelkader Boudih
|
|
@@ -43,20 +43,20 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
46
|
+
version: '6.1'
|
|
47
47
|
- - "<"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '
|
|
49
|
+
version: '8.0'
|
|
50
50
|
type: :runtime
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - ">="
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '
|
|
56
|
+
version: '6.1'
|
|
57
57
|
- - "<"
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: '
|
|
59
|
+
version: '8.0'
|
|
60
60
|
description: Puma integration for Capistrano 3
|
|
61
61
|
email:
|
|
62
62
|
- Terminale@gmail.com
|
|
@@ -82,8 +82,6 @@ homepage: https://github.com/seuros/capistrano-puma
|
|
|
82
82
|
licenses:
|
|
83
83
|
- MIT
|
|
84
84
|
metadata: {}
|
|
85
|
-
post_install_message: "\n Version 6.0.0 is a major release. Please see README.md,
|
|
86
|
-
breaking changes are listed in CHANGELOG.md\n "
|
|
87
85
|
rdoc_options: []
|
|
88
86
|
require_paths:
|
|
89
87
|
- lib
|
|
@@ -91,14 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
91
89
|
requirements:
|
|
92
90
|
- - ">="
|
|
93
91
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: '2.
|
|
92
|
+
version: '2.4'
|
|
95
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
94
|
requirements:
|
|
97
95
|
- - ">="
|
|
98
96
|
- !ruby/object:Gem::Version
|
|
99
97
|
version: '0'
|
|
100
98
|
requirements: []
|
|
101
|
-
rubygems_version: 3.6.
|
|
99
|
+
rubygems_version: 3.6.9
|
|
102
100
|
specification_version: 4
|
|
103
101
|
summary: Puma integration for Capistrano
|
|
104
102
|
test_files: []
|