mixlib-shellout 1.2.0.rc.0 → 1.2.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +0 -0
- data/lib/mixlib/shellout.rb +6 -0
- data/lib/mixlib/shellout/exceptions.rb +0 -0
- data/lib/mixlib/shellout/unix.rb +5 -2
- data/lib/mixlib/shellout/version.rb +1 -1
- metadata +2 -2
data/LICENSE
CHANGED
File without changes
|
data/lib/mixlib/shellout.rb
CHANGED
@@ -290,8 +290,14 @@ module Mixlib
|
|
290
290
|
when 'log_tag'
|
291
291
|
self.log_tag = setting
|
292
292
|
when 'environment', 'env'
|
293
|
+
# Set the LC_ALL from the parent process if the user wanted
|
294
|
+
# to use the default.
|
295
|
+
if setting && setting.has_key?("LC_ALL") && setting['LC_ALL'].nil?
|
296
|
+
setting['LC_ALL'] = ENV['LC_ALL']
|
297
|
+
end
|
293
298
|
# passing :environment => nil means don't set any new ENV vars
|
294
299
|
@environment = setting.nil? ? {} : @environment.dup.merge!(setting)
|
300
|
+
|
295
301
|
else
|
296
302
|
raise InvalidCommandOption, "option '#{option.inspect}' is not a valid option for #{self.class.name}"
|
297
303
|
end
|
File without changes
|
data/lib/mixlib/shellout/unix.rb
CHANGED
@@ -194,8 +194,11 @@ module Mixlib
|
|
194
194
|
# create a file because error pipe will auto close when we
|
195
195
|
# try to create a file since it's set to CLOEXEC.
|
196
196
|
if n != @process_status_pipe.last.to_i
|
197
|
-
|
198
|
-
|
197
|
+
begin
|
198
|
+
fd = File.for_fd(n)
|
199
|
+
fd.close if fd
|
200
|
+
rescue
|
201
|
+
end
|
199
202
|
end
|
200
203
|
end
|
201
204
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixlib-shellout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0.rc.
|
4
|
+
version: 1.2.0.rc.1
|
5
5
|
prerelease: 6
|
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-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|