capistrano3-puma 0.8.4 → 0.8.5

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: f37043e11c00bbf05127487cb0db68bb106120f5
4
- data.tar.gz: 8a413a81ad477bab83a07a5498c8260dfb84b6ff
3
+ metadata.gz: e9dc4b8ed7c1321986c66e143edb405d737c8739
4
+ data.tar.gz: 3e45dec3faba490ec633412bbb55c82032b429bc
5
5
  SHA512:
6
- metadata.gz: a036762c011be4afaf8b613baa13b2f96612a838f560335473354c9e0e9618169573a4a4d943a4b7f0f4956d4b9135ed0fbfb77d7d3a2afa327ca8711042b4b1
7
- data.tar.gz: 464224d5cc6113970787efe15b123ddb98717d7e3cb302c7c4dc8d56c7488637faf3660f829fb6f64da4cccfe8043daac62f9495c6263555deaacc4ec1ab64a8
6
+ metadata.gz: 0bd4809afe4e66f63d5676a89f55b7ceab5622f05fdd9c725c08b0639b7fc1cf009d44558984836966ad0de945627fe73876390c5cb9ce45b0c17b5c8862d907
7
+ data.tar.gz: a645728f6144d9aaada530606d8ce3c8f48455400b13b6078d783ba0aa4a21657d36e93ffb050b387800a265a40f5c45553cd5195fc759cc59303da88c84181a
data/README.md CHANGED
@@ -94,6 +94,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
94
94
  tmp/pids tmp/sockets log
95
95
 
96
96
  ## Changelog
97
+ - 0.8.5: Fix smart_restart task to check if puma preloads app
97
98
  - 0.8.4: Allow patch method (Nginx template) @lonre
98
99
  - 0.8.2: Start task creates a conf file if none exists @stevemadere
99
100
  - 0.8.1: Fixed nginx task @hnatt, support for prune_bundler @behe
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.8.4'
3
+ VERSION = '0.8.5'
4
4
  end
5
5
  end
@@ -122,7 +122,7 @@ namespace :puma do
122
122
 
123
123
 
124
124
  task :smart_restart do
125
- if puma_workers.to_i > 1
125
+ if !puma_preload_app? && puma_workers.to_i > 1
126
126
  invoke 'puma:phased-restart'
127
127
  else
128
128
  invoke 'puma:restart'
@@ -135,6 +135,9 @@ namespace :puma do
135
135
  fetch(:puma_workers, 0)
136
136
  end
137
137
 
138
+ def puma_preload_app?
139
+ fetch(:puma_preload_app)
140
+ end
138
141
 
139
142
  def puma_bind
140
143
  Array(fetch(:puma_bind)).collect do |bind|
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.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-25 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.2.2
94
+ rubygems_version: 2.4.5
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Puma integration for Capistrano