rubysh 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rubysh/command.rb +9 -0
- data/lib/rubysh/version.rb +1 -1
- data/rubysh.gemspec +1 -1
- data/test/functional/lib/redirect_ordering.rb +1 -1
- metadata +11 -11
data/lib/rubysh/command.rb
CHANGED
@@ -93,9 +93,18 @@ module Rubysh
|
|
93
93
|
|
94
94
|
def base_post_forks
|
95
95
|
post_forks = []
|
96
|
+
|
96
97
|
if cwd = @opts[:cwd]
|
97
98
|
post_forks << Proc.new {Dir.chdir(cwd)}
|
98
99
|
end
|
100
|
+
|
101
|
+
if env = @opts[:env]
|
102
|
+
post_forks << Proc.new do
|
103
|
+
ENV.clear
|
104
|
+
ENV.merge!(env)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
99
108
|
post_forks
|
100
109
|
end
|
101
110
|
|
data/lib/rubysh/version.rb
CHANGED
data/rubysh.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.version = Rubysh::VERSION
|
23
23
|
|
24
24
|
gem.add_development_dependency 'rake'
|
25
|
+
gem.add_development_dependency 'minitest'
|
25
26
|
gem.add_development_dependency 'mocha'
|
26
27
|
gem.add_development_dependency 'chalk-rake'
|
27
|
-
gem.add_development_dependency 'minitest', '3.1.0'
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: minitest
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: mocha
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -60,21 +60,21 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: chalk-rake
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- - '
|
67
|
+
- - ! '>='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: '0'
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- - '
|
75
|
+
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: '0'
|
78
78
|
description: ! 'Rubysh: Ruby subprocesses made easy'
|
79
79
|
email:
|
80
80
|
- gdb@gregbrockman.com
|
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: '0'
|
138
138
|
segments:
|
139
139
|
- 0
|
140
|
-
hash:
|
140
|
+
hash: 4044854457477839036
|
141
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
142
|
none: false
|
143
143
|
requirements:
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
segments:
|
148
148
|
- 0
|
149
|
-
hash:
|
149
|
+
hash: 4044854457477839036
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
152
|
rubygems_version: 1.8.23
|