capistrano3-puma 0.4.2 → 0.5.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
  SHA1:
3
- metadata.gz: 1727c90719e8f399a1a3e9ca3f87e1fb23608dc0
4
- data.tar.gz: d5885679754d2ca6d1a3a109729e5e168dd623ea
3
+ metadata.gz: 72adcf17b7df644935888f2db4d54f8768fa37e3
4
+ data.tar.gz: 6339c8ae779638584d8bd2cf5cb58f53979504bd
5
5
  SHA512:
6
- metadata.gz: 1b1dbfb1427178d347029a1669427864009096376eb1ff3fef059f5ba57b27e73f0fc4645682cd93e3f58c7bd6e9aa7eda9d5587b72f1b5f07bfb101d42d95e2
7
- data.tar.gz: ef92757fca76c23d27475117f3074a4de9da468c066154e0cf83576a513a6a3982a79a573a059e46d8a4dd2a38d84f60c03b7f0964c3150b5e1afce870c2fbdf
6
+ metadata.gz: 5a72c7686a9d3b45c02b7a20a88f444cddf9f9eabb0efca4367e5b31d5130cd686004a9a681157d90a79afd132c4fff8600ffb230e897500169c35a8efc0c443
7
+ data.tar.gz: 10d90221ff1886edab8ce24e3f5347d5cb3899eded6ef36a87b14c018a20fb7418ad94f86195bf04dc8c64cfd5984e430cc17e4ce2131086a29fc759088ea4e6
data/README.md CHANGED
@@ -8,7 +8,7 @@ Add this line to your application's Gemfile:
8
8
 
9
9
  or:
10
10
 
11
- gem 'capistrano3-puma'
11
+ gem 'capistrano3-puma' , group: :development
12
12
 
13
13
  And then execute:
14
14
 
@@ -47,11 +47,26 @@ For Jungle tasks (beta), these options exist:
47
47
  set :puma_jungle_conf, '/etc/puma.conf'
48
48
  set :puma_run_path, '/usr/local/bin/run-puma'
49
49
  ```
50
+
51
+ Multi-bind can be set with an array in the puma_bind variable
52
+ ```ruby
53
+ set :puma_bind, %w(tcp://0.0.0.0:9292 unix:///tmp/puma.sock)
54
+ ```
55
+ * Listening on tcp://0.0.0.0:9220
56
+ * Listening on unix:///tmp/puma.sock
57
+
58
+
59
+ For ActiveRecord the following line to your deploy.rb
60
+ ```ruby
61
+ set :puma_init_active_record, true
62
+ ```
63
+
50
64
  Ensure that the following directories are shared (via ``linked_dirs``):
51
65
 
52
66
  tmp/pids tmp/sockets log
53
67
 
54
68
  ## Changelog
69
+ - 0.5.0: Bugs fixes
55
70
  - 0.4.2: Fix monit template to support chruby
56
71
  - 0.4.1: Fix puma jungle (debian)
57
72
  - 0.4.0: Multi-bind support
@@ -82,7 +97,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
82
97
  - [molfar](https://github.com/molfar)
83
98
  - [ayaya](https://github.com/ayamomiji)
84
99
  - [Shane O'Grady](https://github.com/shaneog)
85
-
100
+ - [Jun Lin](https://github.com/linjunpop)
86
101
 
87
102
  ## Contributing
88
103
 
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'capistrano', '~> 3.0'
22
- # spec.add_dependency 'puma' , '~> 0'
22
+ spec.add_dependency 'puma' , '>= 2.6'
23
23
 
24
24
  end
@@ -1,2 +1,2 @@
1
- #load jungle tasks
1
+ # Load jungle tasks
2
2
  load File.expand_path('../../tasks/jungle.cap', __FILE__)
@@ -1,2 +1,2 @@
1
- #load monit tasks
1
+ # Load monit tasks
2
2
  load File.expand_path('../../tasks/monit.cap', __FILE__)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.4.2'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
@@ -1,2 +1,2 @@
1
- #load monit tasks
1
+ # Load monit tasks
2
2
  load File.expand_path('../../tasks/workers.cap', __FILE__)
@@ -72,7 +72,7 @@ namespace :puma do
72
72
  desc "#{command} puma"
73
73
  task command do
74
74
  on roles(fetch(:puma_role)) do
75
- sudo "service puma #{command} app=#{current_path}"
75
+ sudo "service puma #{command} #{current_path}"
76
76
  end
77
77
  end
78
78
  end
@@ -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_monit_#{fetch(:application)}")
56
+ fetch(:puma_monit_service_name, "puma_#{fetch(:application)}")
57
57
  end
58
58
 
59
59
  end
@@ -14,7 +14,7 @@ namespace :puma do
14
14
  # TODO
15
15
  # Add/remove workers to specific host/s
16
16
  # Define # of workers to add/remove
17
- # Refractor
17
+ # Refactor
18
18
  desc 'Worker++'
19
19
  task :more do
20
20
  on roles (fetch(:puma_role)) do
@@ -8,11 +8,11 @@
8
8
  # processname: puma
9
9
  # config: /etc/puma.conf
10
10
  # pidfile: /home/stanislaw/apps/micro-apps/puma/puma.pid
11
- # Author: Darío Javier Cravero <dario@exordo.com>
11
+ # Author: Darío Javier Cravero <'dario@exordo.com'>
12
12
  #
13
13
  # Do NOT "set -e"
14
14
  # Original script https://github.com/puma/puma/blob/master/tools/jungle/puma
15
- # It was modified here by Stanislaw Pankevich <s.pankevich@gmail.com>
15
+ # It was modified here by Stanislaw Pankevich <'s.pankevich@gmail.com'>
16
16
  # to run on CentOS 5.5 boxes.
17
17
  # Script works perfectly on CentOS 5: script uses its native daemon().
18
18
  # Puma is being stopped/restarted by sending signals, control app is not used.
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.4.2
4
+ version: 0.5.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: 2014-04-01 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: puma
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '2.6'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '2.6'
27
41
  description: Puma integration for Capistrano 3
28
42
  email:
29
43
  - Terminale@gmail.com
@@ -36,7 +50,6 @@ files:
36
50
  - LICENSE.txt
37
51
  - README.md
38
52
  - Rakefile
39
- - capistrano-puma.gemspec
40
53
  - capistrano3-puma.gemspec
41
54
  - lib/capistrano-puma.rb
42
55
  - lib/capistrano/puma.rb
@@ -73,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
86
  version: '0'
74
87
  requirements: []
75
88
  rubyforge_project:
76
- rubygems_version: 2.2.2
89
+ rubygems_version: 2.0.3
77
90
  signing_key:
78
91
  specification_version: 4
79
92
  summary: Puma integration for Capistrano
@@ -1,25 +0,0 @@
1
- # coding: utf-8
2
- # This file is kept for backward compatibility only.
3
- lib = File.expand_path('../lib', __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'capistrano/puma/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'capistrano-puma'
9
- spec.version = Capistrano::Puma::VERSION
10
- spec.authors = ['Abdelkader Boudih']
11
- spec.email = ['Terminale@gmail.com']
12
- spec.description = %q{Puma integration for Capistrano 3}
13
- spec.summary = %q{Puma integration for Capistrano}
14
- spec.homepage = 'https://github.com/seuros/capistrano-puma'
15
- spec.license = 'MIT'
16
-
17
- spec.required_ruby_version = '>= 1.9.3'
18
-
19
- spec.files = `git ls-files`.split($/)
20
- spec.require_paths = ['lib']
21
-
22
- spec.add_dependency 'capistrano', '~> 3.0'
23
- # spec.add_dependency 'puma' , '~> 0'
24
-
25
- end