fyi 1.0.7 → 1.0.8

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/VERSION +1 -1
  2. data/bin/fyi +1 -3
  3. data/fyi.gemspec +1 -1
  4. data/lib/fyi.rb +1 -2
  5. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.8
data/bin/fyi CHANGED
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
3
- require 'rubygems' # Hmm, is it ok to specify rubygems here?
4
- require 'fyi'
5
2
 
3
+ require 'fyi'
6
4
  Fyi.run ARGV.join(' ')
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fyi}
8
- s.version = "1.0.7"
8
+ s.version = "1.0.8"
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"]
data/lib/fyi.rb CHANGED
@@ -23,6 +23,7 @@ class Fyi
23
23
  def run
24
24
  start_stopwatch
25
25
  status, stdout, stderr = systemu @command
26
+ stop_stopwatch
26
27
  status.exitstatus.to_i == 0 ? run_succeeded(stdout) : run_failed(stdout, stderr)
27
28
  rescue Object => e
28
29
  run_failed('', e.to_s)
@@ -31,12 +32,10 @@ class Fyi
31
32
  private
32
33
 
33
34
  def run_succeeded output
34
- stop_stopwatch
35
35
  notify :success, duration, output
36
36
  end
37
37
 
38
38
  def run_failed output, error
39
- stop_stopwatch
40
39
  notify :failure, duration, output, error
41
40
  end
42
41
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 7
9
- version: 1.0.7
8
+ - 8
9
+ version: 1.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andy Stewart