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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0e3b56cceac3a829240f070437a0e232c5c79f38370989572024ab08af9038a
4
- data.tar.gz: 67e21b9c665facae205f009b694d6a2652c0a9546c95a3db3739fac5c5a0159f
3
+ metadata.gz: c35dc9ccbaff14a1fff1a8562fabc12f5e1b7a5ad1f5154598ff3e047b74c348
4
+ data.tar.gz: 7b7fd37c69d3a85e3a61d417a0bc3fbfe6125a9d26dbb716c595c9c23ede27ad
5
5
  SHA512:
6
- metadata.gz: 3c216aed4f83378c3ecf0a2bb0cab5c7046eb1a2ad9bf280691ea4325e6d583dbf98640c14e7c8e793eb8ee9c3645d2c0da17b9205e20db3c48b330fa4ed80ed
7
- data.tar.gz: 4b19a5a3c2513402c5987ec0e501e5dcb19d7fb47e80b3ad4eec037d1a4171c1ba9645c0bad51f8cc28f5c8f16f215084015f1e32861784fd13ccbe364a995a1
6
+ metadata.gz: 4f07c452c5443b21342b0d2f7c979204d6e38fe319f7e7082c10e13908bd313a05de35032d8b78abd004bcfcb3e15acfd8f5f21cc56e90e5e4103f2cd649b5b2
7
+ data.tar.gz: a1ef0c8dc878b6be0a21d9e5d0df5aa44ee30148f53115a14b032ec97924500b1630b5380134281b623eefd463dee5232107bc4495c509504cf152c12297512d
@@ -3,7 +3,7 @@ module Capistrano
3
3
  include PumaCommon
4
4
 
5
5
  def register_hooks
6
- after 'deploy:finished', 'puma:smart_restart'
6
+ after 'deploy:published', 'puma:smart_restart'
7
7
  end
8
8
 
9
9
  def define_tasks
@@ -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
- fetch(:puma_service_unit_type,
35
- ## Check if sd_notify is available in the bundle
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
- <%="StandardOutput=append:#{fetch(:puma_access_log)}" if fetch(:puma_access_log) %>
42
- <%="StandardError=append:#{fetch(:puma_error_log)}" if fetch(:puma_error_log) %>
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: 6.2.0
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: '5.1'
46
+ version: '6.1'
47
47
  - - "<"
48
48
  - !ruby/object:Gem::Version
49
- version: '7.0'
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: '5.1'
56
+ version: '6.1'
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
- version: '7.0'
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.5'
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.7
99
+ rubygems_version: 3.6.9
102
100
  specification_version: 4
103
101
  summary: Puma integration for Capistrano
104
102
  test_files: []