bluepill 0.0.31 → 0.0.32
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/VERSION +1 -1
- data/bluepill.gemspec +5 -4
- data/lib/bluepill/condition_watch.rb +1 -1
- data/lib/bluepill/version.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.32
|
data/bluepill.gemspec
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
|
-
# DO NOT EDIT THIS FILE
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{bluepill}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.32"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Arya Asemanfar", "Gary Tsang", "Rohith Ravi"]
|
|
12
|
-
s.date = %q{2010-01-
|
|
12
|
+
s.date = %q{2010-01-30}
|
|
13
13
|
s.default_executable = %q{bluepill}
|
|
14
14
|
s.description = %q{Bluepill keeps your daemons up while taking up as little resources as possible. After all you probably want the resources of your server to be used by whatever daemons you are running rather than the thing that's supposed to make sure they are brought back up, should they die or misbehave.}
|
|
15
15
|
s.email = %q{entombedvirus@gmail.com}
|
|
@@ -80,3 +80,4 @@ Gem::Specification.new do |s|
|
|
|
80
80
|
s.add_dependency(%q<activesupport>, [">= 2.3.4"])
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
|
+
|
|
@@ -18,7 +18,7 @@ module Bluepill
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def run(pid, tick_number = Time.now.to_i)
|
|
21
|
-
if
|
|
21
|
+
if @last_ran_at.nil? || (@last_ran_at + @every) <= tick_number
|
|
22
22
|
@last_ran_at = tick_number
|
|
23
23
|
self.record_value(@process_condition.run(pid))
|
|
24
24
|
return @fires if self.fired?
|
data/lib/bluepill/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bluepill
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.32
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arya Asemanfar
|
|
@@ -11,7 +11,7 @@ autorequire:
|
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
13
|
|
|
14
|
-
date: 2010-01-
|
|
14
|
+
date: 2010-01-30 00:00:00 -08:00
|
|
15
15
|
default_executable: bluepill
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|