rubysh 0.0.7 → 0.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.
@@ -101,7 +101,7 @@ module Rubysh
101
101
  if env = @opts[:env]
102
102
  post_forks << Proc.new do
103
103
  ENV.clear
104
- ENV.merge!(env)
104
+ ENV.update(env)
105
105
  end
106
106
  end
107
107
 
@@ -1,3 +1,3 @@
1
1
  module Rubysh
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
@@ -0,0 +1,17 @@
1
+ require File.expand_path('../_lib', File.dirname(__FILE__))
2
+
3
+ module RubyshTest::Functional
4
+ class TripleLessThanTest < FunctionalTest
5
+ describe 'when using <<< string' do
6
+ it 'the string is delivered on stdin' do
7
+ ENV['TEST1'] = '1'
8
+ ENV['TEST2'] = '2'
9
+ result = Rubysh.run('sh', '-c', 'echo $TEST1; echo $TEST2', Rubysh.stdout > :stdout, :env => {'TEST1' => '3'})
10
+
11
+ assert_equal(0, result.exitstatus)
12
+ output = result.read(:stdout)
13
+ assert_equal("3\n\n", output)
14
+ end
15
+ end
16
+ end
17
+ 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.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -108,6 +108,7 @@ files:
108
108
  - rubysh.gemspec
109
109
  - test/_lib.rb
110
110
  - test/functional/_lib.rb
111
+ - test/functional/lib/env.rb
111
112
  - test/functional/lib/fd-lister
112
113
  - test/functional/lib/leaked_fds.rb
113
114
  - test/functional/lib/redirect_ordering.rb
@@ -137,7 +138,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
138
  version: '0'
138
139
  segments:
139
140
  - 0
140
- hash: 4044854457477839036
141
+ hash: 4586178128253551614
141
142
  required_rubygems_version: !ruby/object:Gem::Requirement
142
143
  none: false
143
144
  requirements:
@@ -146,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
147
  version: '0'
147
148
  segments:
148
149
  - 0
149
- hash: 4044854457477839036
150
+ hash: 4586178128253551614
150
151
  requirements: []
151
152
  rubyforge_project:
152
153
  rubygems_version: 1.8.23
@@ -159,6 +160,7 @@ summary: ! 'Rubysh makes shelling out easy with a __sh__-like syntax layer for R
159
160
  test_files:
160
161
  - test/_lib.rb
161
162
  - test/functional/_lib.rb
163
+ - test/functional/lib/env.rb
162
164
  - test/functional/lib/fd-lister
163
165
  - test/functional/lib/leaked_fds.rb
164
166
  - test/functional/lib/redirect_ordering.rb