lifeline 0.4.0 → 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.
Files changed (5) hide show
  1. data/README.rdoc +13 -3
  2. data/VERSION +1 -1
  3. data/lib/lifeline.rb +2 -2
  4. data/lifeline.gemspec +2 -2
  5. metadata +3 -3
data/README.rdoc CHANGED
@@ -60,9 +60,13 @@ and "app2:lifeline" are much better).
60
60
  end
61
61
 
62
62
  > rake -T appname
63
- rake appname:lifeline # A lifeline task for executing only one process of twitter:daemon:run at a time
64
- rake appname:run # Runs the twitter:daemon:run task
65
- rake appname:terminate # Terminates any running twitter:daemon:lifeline tasks
63
+ rake appname:lifeline # A lifeline task for executing only one process of appname:run at a time
64
+ rake appname:run # Runs the appname:run task
65
+ rake appname:terminate # Terminates any running appname:lifeline tasks
66
+
67
+ == Installation
68
+
69
+ * gem install lifeline
66
70
 
67
71
  == Note on Patches/Pull Requests
68
72
 
@@ -74,6 +78,12 @@ and "app2:lifeline" are much better).
74
78
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
75
79
  * Send me a pull request. Bonus points for topic branches.
76
80
 
81
+ == Contributors
82
+
83
+ * Matt Todd
84
+ * Jacob Harris
85
+ * Ben Koski
86
+
77
87
  == Copyright
78
88
 
79
89
  Copyright (c) 2010 The New York Times. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
data/lib/lifeline.rb CHANGED
@@ -10,7 +10,7 @@ module Lifeline
10
10
  return nil if processes.nil?
11
11
 
12
12
  processes.split(/\n/).map do |p|
13
- if p =~ /^(\d+)\s(.+)$/
13
+ if p =~ /^\s+(\d+)\s(.+)$/
14
14
  {:pid => $1.to_i, :command => $2.strip}
15
15
  end
16
16
  end.compact
@@ -40,7 +40,7 @@ module Lifeline
40
40
 
41
41
  myself = processes.detect {|p| p[:pid] == my_pid}
42
42
  if myself.nil?
43
- raise "Unable to find self in process list. This is bizarre to say the least. Exiting"
43
+ raise "Unable to find self (PID=#{my_pid}) in process list. This is bizarre to say the least. Exiting.\n#{processes.map {|p| p.inspect}.join("\n")}"
44
44
  end
45
45
 
46
46
  # there isn't already another process running with the same command
data/lifeline.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lifeline}
8
- s.version = "0.4.0"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jacob Harris", "Ben Koski", "Matt Todd"]
12
- s.date = %q{2010-04-13}
12
+ s.date = %q{2010-04-15}
13
13
  s.description = %q{A cron-based alternative to running daemon scripts}
14
14
  s.email = %q{open@nytimes.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
7
+ - 5
8
8
  - 0
9
- version: 0.4.0
9
+ version: 0.5.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jacob Harris
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-04-13 00:00:00 -07:00
19
+ date: 2010-04-15 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency