capistrano-runit-tasks 1.0.0.pre2 → 1.0.0.pre3

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *1.0.0.pre3* (May 25th 2011)
2
+ --------------------------------------------------
3
+ * Support non numeric service directory names
4
+
1
5
  *1.0.0.pre2* (August 3rd 2010)
2
6
  --------------------------------------------------
3
7
  * Add dependencies to gemspec and a Gemfile that reads the gemspec
data/README CHANGED
@@ -67,7 +67,9 @@ Then adds the following tasks, helpers and variables:
67
67
  [listener_count] Number of listener service dirs to create.
68
68
  (Default: 1) (old name: fcgi_count)
69
69
 
70
- [listener_base_port] The base port number to use for the listeners.
70
+ [listener_base_port] The name to use for the service dir. This will be
71
+ incremented using .succ when there is more than
72
+ one listener.
71
73
  (Default: 9000) (old name: fcgi_listener_base_port)
72
74
 
73
75
  [sv_command] Either :sv or :runsvctrl
@@ -189,4 +191,4 @@ This again should be automated, the manual steps I used were:
189
191
  * Add support for daemontools svc command
190
192
  * Make the RAILS_ENV configurable
191
193
  * Add helper methods to make linking the services into the master service
192
- directory easier
194
+ directory easier
@@ -47,8 +47,11 @@ Capistrano::Configuration.instance(:must_exist).load do
47
47
  after :setup, "deploy:post_setup"
48
48
 
49
49
  def each_listener
50
- listener_base_port.upto(listener_base_port + listener_count - 1) do |listener_port|
51
- yield listener_port
50
+ name = listener_base_port
51
+ yield name
52
+ (listener_count - 1).times do
53
+ name = name.succ
54
+ yield name
52
55
  end
53
56
  end
54
57
 
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-runit-tasks
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1876988175
5
- prerelease: true
4
+ hash: 1923831951
5
+ prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
- - pre2
11
- version: 1.0.0.pre2
10
+ - pre
11
+ - 3
12
+ version: 1.0.0.pre3
12
13
  platform: ruby
13
14
  authors:
14
15
  - Chris McGrath
@@ -17,7 +18,7 @@ autorequire:
17
18
  bindir: bin
18
19
  cert_chain: []
19
20
 
20
- date: 2010-08-03 00:00:00 +01:00
21
+ date: 2011-05-25 00:00:00 +01:00
21
22
  default_executable:
22
23
  dependencies:
23
24
  - !ruby/object:Gem::Dependency
@@ -103,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
104
  requirements: []
104
105
 
105
106
  rubyforge_project: cappy-runit
106
- rubygems_version: 1.3.7
107
+ rubygems_version: 1.6.2
107
108
  signing_key:
108
109
  specification_version: 3
109
110
  summary: Adds tasks to Capistrano for use with the runit supervision scheme.