fyi 1.0.2 → 1.0.3

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/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 = 'Be informed about task execution.'
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 "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
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.2
1
+ 1.0.3
data/bin/fyi CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
3
+ require 'rubygems' # Hmm, is it ok to specify rubygems here?
3
4
  require 'fyi'
5
+
4
6
  Fyi.run ARGV.join(' ')
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.2"
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-11-24}
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{Be informed about task execution.}
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
@@ -1,4 +1,8 @@
1
- require 'pony'
1
+ begin
2
+ require 'pony'
3
+ rescue LoadError
4
+ abort '** Please install pony.'
5
+ end
2
6
 
3
7
  class Fyi
4
8
  class Notifier
data/lib/fyi.rb CHANGED
@@ -1,5 +1,9 @@
1
- require 'rubygems'
2
- require 'open4'
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
- # Borrowed from CI Joe.
22
- out, err, status = '', '', nil
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.2
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-11-24 00:00:00 +00:00
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: Be informed about task execution.
83
+ summary: Find out what cron is doing.
84
84
  test_files: []
85
85