mina-puma 1.0.1 → 1.1.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: f08818026116495dbc0e66ef41945be04d8262b8
4
- data.tar.gz: 84f6a474eb6ca6122b1c7b0582ee31e3bccf840e
3
+ metadata.gz: b932c1bcdca37b9f583d4f10ae39e7c8c98ca780
4
+ data.tar.gz: b885cc5af29276cb2029501fe51714c81afa9b5e
5
5
  SHA512:
6
- metadata.gz: 4729fc8a0722fd6f6edc2ceefe61e50207fc97fe18cfd41de5d97819731b444710d164247df9473768ec5f27b140b589c93b647ba4465ca371eda0ae659b698e
7
- data.tar.gz: 45ffe7ee8e614d9f3c95c347649472650f0ecb86aa8c96746d3ee21510d51e709f5a5ee651b6561d96c276f32a21220a4c04fe7744d87691a3410d583fb0aacf
6
+ metadata.gz: 15c17dd6a07dd1f8c35deeb9a4c41028a001c1d31dd1bb82e62f09bee2cfe6a70ca77522b74e24d6cf40c729c09be3b3ab02ac6d8dba0c73291d5e93fefb5408
7
+ data.tar.gz: c004e528ef97e94cca574e7555a573982da9a4c72e693c62717ae5db83a65ac40a310006ada4dceb4ee5fbaabfdd7384a5d67f6fe49c29a6ed9b4a1ae15bce68
data/README.md CHANGED
@@ -16,7 +16,7 @@ This gem provides several mina tasks:
16
16
 
17
17
  Add this line to your application's Gemfile:
18
18
 
19
- gem 'mina-puma', :require => false
19
+ gem 'mina-puma', require: false
20
20
 
21
21
  And then execute:
22
22
 
@@ -61,19 +61,8 @@ $ mina puma:start
61
61
  ```ruby
62
62
  require 'mina/puma'
63
63
 
64
- task :setup => :environment do
65
- # Puma needs a place to store its pid file and socket file.
66
- command %(mkdir -p "#{deploy_to}/#{shared_path}/tmp/sockets")
67
- command %(chmod g+rx,u+rwx "#{deploy_to}/#{shared_path}/tmp/sockets")
68
- command %(mkdir -p "#{deploy_to}/#{shared_path}/tmp/pids")
69
- command %(chmod g+rx,u+rwx "#{deploy_to}/#{shared_path}/tmp/pids")
70
-
71
- ...
72
-
73
- end
74
-
75
- # Add pids and sockets directories to shared paths
76
- set :shared_paths, ['config/database.yml', 'tmp/pids', 'tmp/sockets']
64
+ # Add pids and sockets directories to shared dirs
65
+ set :shared_dirs, fetch(:shared_dirs, []).push('log', 'tmp/pids', 'tmp/sockets')
77
66
 
78
67
  task :deploy do
79
68
  deploy do
@@ -81,7 +70,7 @@ task :deploy do
81
70
  invoke :'deploy:link_shared_paths'
82
71
  ...
83
72
 
84
- to :launch do
73
+ on :launch do
85
74
  ...
86
75
  invoke :'puma:phased_restart'
87
76
  end
@@ -16,7 +16,7 @@ namespace :puma do
16
16
  set :puma_root_path, -> { fetch(:current_path) }
17
17
 
18
18
  desc 'Start puma'
19
- task :start => :environment do
19
+ task start: :remote_environment do
20
20
  puma_port_option = "-p #{fetch(:puma_port)}" if set?(:puma_port)
21
21
 
22
22
  comment "Starting Puma..."
@@ -34,33 +34,33 @@ namespace :puma do
34
34
  end
35
35
 
36
36
  desc 'Stop puma'
37
- task stop: :environment do
37
+ task stop: :remote_environment do
38
38
  comment "Stopping Puma..."
39
39
  pumactl_command 'stop'
40
40
  command %[rm -f '#{fetch(:pumactl_socket)}']
41
41
  end
42
42
 
43
43
  desc 'Restart puma'
44
- task restart: :environment do
44
+ task restart: :remote_environment do
45
45
  comment "Restart Puma...."
46
46
  pumactl_command 'restart'
47
47
  end
48
48
 
49
49
  desc 'Restart puma (phased restart)'
50
- task phased_restart: :environment do
50
+ task phased_restart: :remote_environment do
51
51
  comment "Restart Puma -- phased..."
52
52
  pumactl_command 'phased-restart'
53
53
  end
54
54
 
55
55
  desc 'Restart puma (hard restart)'
56
- task hard_restart: :environment do
56
+ task hard_restart: :remote_environment do
57
57
  comment "Restart Puma -- hard..."
58
58
  invoke 'puma:stop'
59
59
  invoke 'puma:start'
60
60
  end
61
61
 
62
62
  desc 'Get status of puma'
63
- task status: :environment do
63
+ task status: :remote_environment do
64
64
  comment "Puma status..."
65
65
  pumactl_command 'status'
66
66
  end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Puma
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'mina', '~> 1.0.0'
21
+ spec.add_dependency 'mina', '~> 1.2.0'
22
22
  spec.add_dependency 'puma', '>= 2.13'
23
23
 
24
24
  spec.add_development_dependency 'bundler', '~> 1.3'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Sandelius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-18 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0
19
+ version: 1.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0
26
+ version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: puma
29
29
  requirement: !ruby/object:Gem::Requirement