fyi 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/bin/fyi +2 -0
- data/fyi.gemspec +3 -3
- data/lib/fyi/notifiers/email.rb +5 -1
- data/lib/fyi.rb +8 -8
- metadata +3 -3
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ begin
|
|
4
4
|
require 'jeweler'
|
5
5
|
Jeweler::Tasks.new do |gemspec|
|
6
6
|
gemspec.name = 'fyi'
|
7
|
-
gemspec.summary = '
|
7
|
+
gemspec.summary = 'Find out what cron is doing.'
|
8
8
|
gemspec.email = 'boss@airbladesoftware.com'
|
9
9
|
gemspec.homepage = 'http://github.com/airblade/fyi'
|
10
10
|
gemspec.authors = ['Andy Stewart']
|
@@ -13,5 +13,5 @@ begin
|
|
13
13
|
end
|
14
14
|
Jeweler::GemcutterTasks.new
|
15
15
|
rescue LoadError
|
16
|
-
puts
|
16
|
+
puts 'Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler'
|
17
17
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
data/bin/fyi
CHANGED
data/fyi.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fyi}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Andy Stewart"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-12-23}
|
13
13
|
s.default_executable = %q{fyi}
|
14
14
|
s.email = %q{boss@airbladesoftware.com}
|
15
15
|
s.executables = ["fyi"]
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
s.rdoc_options = ["--charset=UTF-8"]
|
35
35
|
s.require_paths = ["lib"]
|
36
36
|
s.rubygems_version = %q{1.3.5}
|
37
|
-
s.summary = %q{
|
37
|
+
s.summary = %q{Find out what cron is doing.}
|
38
38
|
|
39
39
|
if s.respond_to? :specification_version then
|
40
40
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
data/lib/fyi/notifiers/email.rb
CHANGED
data/lib/fyi.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
-
|
2
|
-
require '
|
1
|
+
begin
|
2
|
+
require 'systemu'
|
3
|
+
rescue LoadError
|
4
|
+
abort '** Please install systemu.'
|
5
|
+
end
|
6
|
+
|
3
7
|
require 'fyi/config'
|
4
8
|
require 'fyi/core_ext'
|
5
9
|
|
@@ -18,12 +22,8 @@ class Fyi
|
|
18
22
|
|
19
23
|
def run
|
20
24
|
start_stopwatch
|
21
|
-
|
22
|
-
|
23
|
-
status = Open4.popen4(@command) do |@pid, stdin, stdout, stderr|
|
24
|
-
err, out = stderr.read.strip, stdout.read.strip
|
25
|
-
end
|
26
|
-
status.exitstatus.to_i == 0 ? run_succeeded(out) : run_failed(out, err)
|
25
|
+
status, stdout, stderr = systemu @command
|
26
|
+
status.exitstatus.to_i == 0 ? run_succeeded(stdout) : run_failed(stdout, stderr)
|
27
27
|
rescue Object => e
|
28
28
|
run_failed('', e.to_s)
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fyi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Stewart
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-23 00:00:00 +00:00
|
13
13
|
default_executable: fyi
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -80,6 +80,6 @@ rubyforge_project:
|
|
80
80
|
rubygems_version: 1.3.5
|
81
81
|
signing_key:
|
82
82
|
specification_version: 3
|
83
|
-
summary:
|
83
|
+
summary: Find out what cron is doing.
|
84
84
|
test_files: []
|
85
85
|
|