capistrano-pumaio 3.1.3 → 3.1.4

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: 4837c4d2e0f40d3ebf2d74e6bd9d028645e3b716
4
- data.tar.gz: 100066343ef3565642a45320111dddf5f2ea4167
3
+ metadata.gz: 68567f932074244ca9bc6298d9841cecd739fd10
4
+ data.tar.gz: 6e022e17aaddf2b876a4a883c9c612e94715a95c
5
5
  SHA512:
6
- metadata.gz: ffa27f7e2d9c4133f24515ad6cfff0b956330a19bb2bea00559f1595843c3f63f41c541370bf282e70a8ebf8f604204818330c8a88164698dfa17cef596d45f0
7
- data.tar.gz: d152905a680709fe0697f02ae5d4a39fd5fa4c141b741964779d0a8edaabd6349131aae54040cba5a032abed5e5c0e68e3f837c86bbc89f4680cd72fc5d95dee
6
+ metadata.gz: c20f5ddff6fe561f4e5d44fa9d51c8c99742aabdc86fd58d4e2079446243e4a318b8c444adebd4829ad1c398b1523180883a61441a6e17b5279db863f0e46aaf
7
+ data.tar.gz: 23450f978f460ba51014377d9b1e535fc9abfe1a8ff5a613c9657b2494ed17159c3cd1b687421efade29e5bf74ddb3bac84c9efce10b92329ba31cba3be72ba9
data/README.md CHANGED
@@ -25,6 +25,10 @@ Add this to your Capfile:
25
25
  require 'capistrano/puma'
26
26
  ```
27
27
 
28
+ ### Roles:
29
+
30
+ Capistrano-pumaio targets ```:app``` roles by default.
31
+
28
32
  ### Monit
29
33
 
30
34
  ```ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.3
1
+ 3.1.4
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: capistrano-pumaio 3.1.3 ruby lib
5
+ # stub: capistrano-pumaio 3.1.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "capistrano-pumaio"
9
- s.version = "3.1.3"
9
+ s.version = "3.1.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Leif Ringstad"]
14
- s.date = "2016-03-22"
14
+ s.date = "2016-04-12"
15
15
  s.description = "Capistrano recipes for puma using runit and monit."
16
16
  s.email = "leifcr@gmail.com"
17
17
  s.extra_rdoc_files = [
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  ]
42
42
  s.homepage = "https://github.com/leifcr/capistrano-puma"
43
43
  s.licenses = ["MIT"]
44
- s.rubygems_version = "2.5.1"
44
+ s.rubygems_version = "2.4.8"
45
45
  s.summary = "Capistrano recipes for puma using runit and monit"
46
46
 
47
47
  if s.respond_to? :specification_version then
@@ -27,8 +27,10 @@ namespace :load do
27
27
  # This must be set to false if phased restarts should be used
28
28
  set :puma_use_preload_app, false
29
29
 
30
- set :pruma_prune_bundler, true
31
-
30
+ set :pruma_prune_bundler, false
31
+ set :puma_before_fork, nil
32
+ set :puma_on_worker_boot, nil
33
+ set :puma_on_restart, nil
32
34
  set :puma_activate_control_app, true
33
35
 
34
36
  set :puma_on_restart_active, true
@@ -15,12 +15,25 @@ environment '<%= "#{environment}" %>'
15
15
  <% end %>
16
16
 
17
17
  <% if fetch(:pruma_prune_bundler) %>
18
- # TODO: prune_bundler
18
+ prune_bundler
19
19
  <% end %>
20
20
 
21
21
  directory '<%= current_path %>'
22
22
 
23
- # TODO - fix restart block!
24
- # <%= "on_restart do" if fetch(:puma_on_restart_active) %>
25
- # <%= " puts \"Restarting puma\"" if fetch(:puma_on_restart_active) %>
26
- # <%= "end" if fetch(:puma_on_restart_active) %>
23
+ <% if fetch(:puma_before_fork) != nil %>
24
+ before_fork do
25
+ <%= fetch(:puma_before_fork) %>
26
+ end
27
+ <% end %>
28
+
29
+ <% if fetch(:puma_on_worker_boot) != nil %>
30
+ on_worker_boot do
31
+ <%= fetch(:puma_on_worker_boot) %>
32
+ end
33
+ <% end %>
34
+
35
+ <% if fetch(:puma_on_restart) != nil %>
36
+ on_restart do
37
+ <%= fetch(:puma_on_restart) %>
38
+ end
39
+ <% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-pumaio
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leif Ringstad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.5.1
130
+ rubygems_version: 2.4.8
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Capistrano recipes for puma using runit and monit