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.
- data/README.md +3 -1
- data/guns.gemspec +1 -1
- data/lib/guns.rb +4 -2
- 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)
|
data/guns.gemspec
CHANGED
|
@@ -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.
|
|
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?"
|
data/lib/guns.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Guns
|
|
2
2
|
|
|
3
|
-
class Failure <
|
|
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
|