guns 0.1.1 → 0.1.2

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 (4) hide show
  1. data/README.md +3 -1
  2. data/guns.gemspec +1 -1
  3. data/lib/guns.rb +4 -2
  4. metadata +1 -1
data/README.md CHANGED
@@ -43,4 +43,6 @@ TODO: Replace popen3
43
43
 
44
44
  [Joe Ruscio](http://github.com/josephruscio) for helping me debug that nasty deadlock
45
45
 
46
- [Ryan Tomayko](http://www.tomayko.com) for Shotgun; where I got started with this
46
+ [Ryan Tomayko](http://www.tomayko.com) for [Shotgun](http://github.com/rtomayko/shotgun); where I got started with this
47
+
48
+ [Adam Wiggins](http://www.tomayko.com) for [Rush](http://github.com/adamwiggins/rush)
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'guns'
6
- s.version = '0.1.1'
6
+ s.version = '0.1.2'
7
7
  s.date = '2009-10-30'
8
8
 
9
9
  s.description = "Guns - It's got two pipes; got tickets to the show?"
@@ -1,6 +1,6 @@
1
1
  module Guns
2
2
 
3
- class Failure < Exception ; end
3
+ class Failure < StandardError ; end
4
4
 
5
5
  def sh(cmd, *args)
6
6
  env = args.pop if args.last.kind_of?(Hash)
@@ -24,10 +24,12 @@ module Guns
24
24
  out = rout.read
25
25
  err = rerr.read
26
26
 
27
+ rout.close
28
+ rerr.close
29
+
27
30
  [out, err, exitstatus]
28
31
  else
29
32
  # Child
30
-
31
33
  if env
32
34
  env.each {|k,v| ENV[k] = v}
33
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany