capistrano3-puma 0.8.5 → 0.9.0

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: e9dc4b8ed7c1321986c66e143edb405d737c8739
4
- data.tar.gz: 3e45dec3faba490ec633412bbb55c82032b429bc
3
+ metadata.gz: a679889b02439d9d7f8f47a715cd9159a941c292
4
+ data.tar.gz: 3433bd1dd4baad82ea8faa9c6e359d6b75e95e78
5
5
  SHA512:
6
- metadata.gz: 0bd4809afe4e66f63d5676a89f55b7ceab5622f05fdd9c725c08b0639b7fc1cf009d44558984836966ad0de945627fe73876390c5cb9ce45b0c17b5c8862d907
7
- data.tar.gz: a645728f6144d9aaada530606d8ce3c8f48455400b13b6078d783ba0aa4a21657d36e93ffb050b387800a265a40f5c45553cd5195fc759cc59303da88c84181a
6
+ metadata.gz: 6d86063f615d26cb1b20163277a16431ef6158fbaa0c3b31e2049a0b4603543f994f9bc77d6ce260cb29fd9b3457633111abd25bee79dd49bf0688e42fb5b869
7
+ data.tar.gz: a4e1c85f04fc1552e20d794e627edf6cb5f197f9dfa3294c09d31b5316c86614851f2e9aa7ca8534545dd53fee12d70ee3643e7cfe4c043040c6939d00c901c8
data/README.md CHANGED
@@ -20,15 +20,15 @@ And then execute:
20
20
  # Capfile
21
21
 
22
22
  require 'capistrano/puma'
23
- require 'capistrano/puma/workers' #if you want to control the workers (in cluster mode)
24
- require 'capistrano/puma/jungle' #if you need the jungle tasks
25
- require 'capistrano/puma/monit' #if you need the monit tasks
26
- require 'capistrano/puma/nginx' #if you want to upload a nginx site template
23
+ require 'capistrano/puma/workers' # if you want to control the workers (in cluster mode)
24
+ require 'capistrano/puma/jungle' # if you need the jungle tasks
25
+ require 'capistrano/puma/monit' # if you need the monit tasks
26
+ require 'capistrano/puma/nginx' # if you want to upload a nginx site template
27
27
  ```
28
28
 
29
29
  then you can use ```cap -vT``` to list tasks
30
30
  ```
31
- cap puma:nginx_config # upload a nginx site config(eg. /etc/nginx/site-enabled/)
31
+ cap puma:nginx_config # upload a nginx site config(eg. /etc/nginx/sites-enabled/)
32
32
  cap puma:config # upload puma config(eg. shared/puma.config)
33
33
  ```
34
34
  you may want to customize these two templates locally before uploading
@@ -68,7 +68,6 @@ Configurable options, shown here with defaults: Please note the configuration op
68
68
  set :puma_worker_timeout, nil
69
69
  set :puma_init_active_record, false
70
70
  set :puma_preload_app, true
71
- set :puma_prune_bundler, false
72
71
  ```
73
72
  For Jungle tasks (beta), these options exist:
74
73
  ```ruby
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.8.5'
3
+ VERSION = '0.9.0'
4
4
  end
5
5
  end
@@ -17,7 +17,6 @@ namespace :load do
17
17
  set :puma_error_log, -> { File.join(shared_path, 'log', 'puma_error.log') }
18
18
  set :puma_init_active_record, false
19
19
  set :puma_preload_app, true
20
- set :puma_prune_bundler, false
21
20
 
22
21
  # Rbenv and RVM integration
23
22
  set :rbenv_map_bins, fetch(:rbenv_map_bins).to_a.concat(%w{ puma pumactl })
@@ -19,12 +19,15 @@ workers <%= puma_workers %>
19
19
  worker_timeout <%= fetch(:puma_worker_timeout).to_i %>
20
20
  <% end %>
21
21
 
22
- <% if fetch(:puma_preload_app) %>
22
+ <% if puma_preload_app? %>
23
23
  preload_app!
24
- <% end %>
25
24
 
26
- <% if fetch(:puma_prune_bundler) %>
27
- prune_bundler
25
+ on_restart do
26
+ puts 'Refreshing Gemfile'
27
+ ENV["BUNDLE_GEMFILE"] = "<%= fetch(:bundle_gemfile, "#{current_path}/Gemfile") %>"
28
+ end
29
+ <% else %>
30
+ prune_bundle
28
31
  <% end %>
29
32
 
30
33
  <% if fetch(:puma_init_active_record) %>
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.5
4
+ version: 0.9.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: 2015-01-30 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano