capistrano-unicorn-sic 0.3.2 → 0.4.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: a8cb1b72ab355b4638519d0f341b1683508f03cc
4
- data.tar.gz: ba5afd7cc04c301c8158f905d2f72e58b7a882ae
3
+ metadata.gz: cac55a6ec2bcf13e252a08ee9d76595bd768eacc
4
+ data.tar.gz: 4c10093784934845eb6501655f24587ba966382f
5
5
  SHA512:
6
- metadata.gz: 6462bb5ad757862df71f7e2f2406020024cda314e9cd8e6d701bc455c44ec5152dd64808f8d09aa43df822dfbedc1791fdd10987087776eda3970815799f54af
7
- data.tar.gz: 974e17a419fd36339edb9d41a1b0c468baaaed48f577f39e8b11e3d423b508adee98d53376643abdcc0b15c4bfc93ac1844e37fae47fd63c3c359546fedfc31c
6
+ metadata.gz: 54529e4b607deed3bc8106a0a768d79d6a8b2cde64f1bdceebc1d048f283287e7ef222bfd08ef96d11f004a73f9149ce55fd98196231c0fd53de4c49fb431252
7
+ data.tar.gz: a938860e9756be11d82b41dd9b10479bbafffffa8c0a3f0a84cd11f2f5f838f0952485b1e22b06d6cae4a178d3d35c476fec2c09c99229c9f8d50b1e9087fd36
@@ -18,5 +18,5 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.add_development_dependency "rake"
20
20
  spec.add_development_dependency "unicorn"
21
- spec.add_runtime_dependency "capistrano", ">= 3.0.0"
21
+ spec.add_runtime_dependency "capistrano", "~> 3.0"
22
22
  end
@@ -64,7 +64,7 @@ namespace :unicorn do
64
64
  unicorn_bin #{fetch :unicorn_bin}
65
65
  unicorn_options #{fetch :unicorn_options}
66
66
  unicorn_restart_sleep_time #{fetch :unicorn_restart_sleep_time}
67
-
67
+
68
68
  # Relative paths
69
69
  app_subdir #{fetch :app_subdir}
70
70
  unicorn_config_rel_path #{fetch :unicorn_config_rel_path}
@@ -86,28 +86,28 @@ namespace :unicorn do
86
86
 
87
87
  desc 'Start Unicorn master process'
88
88
  task :start do
89
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
89
+ on roles unicorn_roles do
90
90
  execute start_unicorn
91
91
  end
92
92
  end
93
93
 
94
94
  desc 'Stop Unicorn'
95
95
  task :stop do
96
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
96
+ on roles unicorn_roles do
97
97
  execute kill_unicorn('QUIT')
98
98
  end
99
99
  end
100
100
 
101
101
  desc 'Immediately shutdown Unicorn'
102
102
  task :shutdown do
103
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
103
+ on roles unicorn_roles do
104
104
  execute kill_unicorn('TERM')
105
105
  end
106
106
  end
107
107
 
108
108
  desc 'Restart Unicorn'
109
109
  task :restart do
110
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
110
+ on roles unicorn_roles do
111
111
  duplicate_unicorn
112
112
  execute :sleep, fetch(:unicorn_restart_sleep_time)
113
113
 
@@ -119,14 +119,14 @@ namespace :unicorn do
119
119
 
120
120
  desc 'Duplicate Unicorn'
121
121
  task :duplicate do
122
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
122
+ on roles unicorn_roles do
123
123
  duplicate_unicorn
124
124
  end
125
125
  end
126
126
 
127
127
  desc 'Reload Unicorn'
128
128
  task :reload do
129
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
129
+ on roles unicorn_roles do
130
130
  if unicorn_is_running?
131
131
  unicorn_send_signal('HUP')
132
132
  else
@@ -137,7 +137,7 @@ namespace :unicorn do
137
137
 
138
138
  desc 'Add a new worker'
139
139
  task :add_worker do
140
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
140
+ on roles unicorn_roles do
141
141
  if unicorn_is_running?
142
142
  unicorn_send_signal('TTIN')
143
143
  end
@@ -146,7 +146,7 @@ namespace :unicorn do
146
146
 
147
147
  desc 'Remove amount of workers'
148
148
  task :remove_worker do
149
- on roles unicorn_roles, reject: lambda { |h| h.properties.no_release } do
149
+ on roles unicorn_roles do
150
150
  if unicorn_is_running?
151
151
  unicorn_send_signal('TTOU')
152
152
  end
@@ -1,5 +1,5 @@
1
1
  module CapistranoUnicorn
2
2
  unless defined?(::CapistranoUnicorn::VERSION)
3
- VERSION = "0.3.2".freeze
3
+ VERSION = "0.4.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unicorn-sic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Gassner, Dan Sosedoff, Florian Schwab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-12 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: capistrano
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.0
47
+ version: '3.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.0
54
+ version: '3.0'
55
55
  description: Capistrano 3.x plugin that integrates Unicorn server tasks.
56
56
  email: sebastian.gassner@gmail.com
57
57
  executables: []
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.2.2
100
+ rubygems_version: 2.4.5
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Unicorn integration for Capistrano 3.x
@@ -105,3 +105,4 @@ test_files:
105
105
  - spec/capistrano_integration_spec.rb
106
106
  - spec/config_spec.rb
107
107
  - spec/spec_helper.rb
108
+ has_rdoc: