capistrano3-puma 0.8.3 → 0.8.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: 9bbc53ee929dc4a1cced45086a8f3b2e9517e1cc
4
- data.tar.gz: 52bcee92dbb183aa41cefb36ed3379e1408804f6
3
+ metadata.gz: f37043e11c00bbf05127487cb0db68bb106120f5
4
+ data.tar.gz: 8a413a81ad477bab83a07a5498c8260dfb84b6ff
5
5
  SHA512:
6
- metadata.gz: 90d35597bd28a50eba1c6bec77bfb6a594cf7963f69dd7fb7361c44f526fc8493d29c93a1fbaf2a5d467785ed6c26bc2fa63c9af9bdfb1b029ac3171cefdba91
7
- data.tar.gz: cb20fdedfe75cba45224f63d42e65c97be3012234837214cdc45070216efc09a38f7d9d77b634f9e9fff7af1c13c0b2eae2b41197ef2fe48d9fe1a02107068d1
6
+ metadata.gz: a036762c011be4afaf8b613baa13b2f96612a838f560335473354c9e0e9618169573a4a4d943a4b7f0f4956d4b9135ed0fbfb77d7d3a2afa327ca8711042b4b1
7
+ data.tar.gz: 464224d5cc6113970787efe15b123ddb98717d7e3cb302c7c4dc8d56c7488637faf3660f829fb6f64da4cccfe8043daac62f9495c6263555deaacc4ec1ab64a8
data/README.md CHANGED
@@ -59,8 +59,8 @@ Configurable options, shown here with defaults: Please note the configuration op
59
59
  set :puma_pid, "#{shared_path}/tmp/pids/puma.pid"
60
60
  set :puma_bind, "unix://#{shared_path}/tmp/sockets/puma.sock" #accept array for multi-bind
61
61
  set :puma_conf, "#{shared_path}/puma.rb"
62
- set :puma_access_log, "#{shared_path}/log/puma_error.log"
63
- set :puma_error_log, "#{shared_path}/log/puma_access.log"
62
+ set :puma_access_log, "#{shared_path}/log/puma_access.log"
63
+ set :puma_error_log, "#{shared_path}/log/puma_error.log"
64
64
  set :puma_role, :app
65
65
  set :puma_env, fetch(:rack_env, fetch(:rails_env, 'production'))
66
66
  set :puma_threads, [0, 16]
@@ -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.4: Allow patch method (Nginx template) @lonre
97
98
  - 0.8.2: Start task creates a conf file if none exists @stevemadere
98
99
  - 0.8.1: Fixed nginx task @hnatt, support for prune_bundler @behe
99
100
  - 0.8.0: Some changes
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.8.3'
3
+ VERSION = '0.8.4'
4
4
  end
5
5
  end
@@ -31,21 +31,21 @@ namespace :puma do
31
31
  end
32
32
  end
33
33
 
34
- desc 'Disable Puma monit-service'
34
+ desc 'Start Puma monit-service'
35
35
  task :start do
36
36
  on roles(fetch(:puma_role)) do
37
37
  sudo "#{fetch(:puma_monit_bin)} start #{puma_monit_service_name}"
38
38
  end
39
39
  end
40
40
 
41
- desc 'Disable Puma monit-service'
41
+ desc 'Stop Puma monit-service'
42
42
  task :stop do
43
43
  on roles(fetch(:puma_role)) do
44
44
  sudo "#{fetch(:puma_monit_bin)} stop #{puma_monit_service_name}"
45
45
  end
46
46
  end
47
47
 
48
- desc 'Disable Puma monit-service'
48
+ desc 'Restart Puma monit-service'
49
49
  task :restart do
50
50
  on roles(fetch(:puma_role)) do
51
51
  sudo "#{fetch(:puma_monit_bin)} restart #{puma_monit_service_name}"
@@ -53,7 +53,7 @@ namespace :puma do
53
53
  end
54
54
 
55
55
  def puma_monit_service_name
56
- fetch(:puma_monit_service_name, "puma_#{fetch(:application)}")
56
+ fetch(:puma_monit_service_name, "puma_#{fetch(:application)}_#{fetch(:stage)}")
57
57
  end
58
58
 
59
59
  end
@@ -29,8 +29,8 @@ namespace :load do
29
29
  set :nginx_sites_enabled_path, -> { '/etc/nginx/sites-enabled' }
30
30
  set :nginx_server_name, -> { "localhost #{fetch(:application)}.local" }
31
31
  set :nginx_flags, -> { 'fail_timeout=0' }
32
- set :nginx_http_flags, -> { fetch(:nginx_flags) }
33
- set :nginx_socket_flags, -> { fetch(:nginx_flags) }
32
+ set :nginx_http_flags, -> { fetch(:nginx_flags) }
33
+ set :nginx_socket_flags, -> { fetch(:nginx_flags) }
34
34
  end
35
35
  end
36
36
 
@@ -1,7 +1,7 @@
1
1
  upstream puma_<%= fetch(:nginx_config_name) %> { <%
2
2
  flags = 'fail_timeout=0'
3
3
  @backends = [fetch(:puma_bind)].flatten.map do |m|
4
- etype, address = /(tcp|unix|ssl):\/\/(.+)/.match(m).captures
4
+ etype, address = /(tcp|unix|ssl):\/{1,2}(.+)/.match(m).captures
5
5
  if etype =='unix'
6
6
  "server #{etype}:#{address} #{fetch(:nginx_socket_flags)};"
7
7
  else
@@ -57,7 +57,7 @@ server {
57
57
  rewrite ^(.*)$ /503.html break;
58
58
  }
59
59
 
60
- if ($request_method !~ ^(GET|HEAD|PUT|POST|DELETE|OPTIONS)$ ){
60
+ if ($request_method !~ ^(GET|HEAD|PUT|PATCH|POST|DELETE|OPTIONS)$ ){
61
61
  return 405;
62
62
  }
63
63
 
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.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-28 00:00:00.000000000 Z
11
+ date: 2015-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -96,3 +96,4 @@ signing_key:
96
96
  specification_version: 4
97
97
  summary: Puma integration for Capistrano
98
98
  test_files: []
99
+ has_rdoc: