mixlib-shellout 1.6.1-x86-mingw32 → 2.0.0.rc.0-x86-mingw32

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6d2f3bf553099c4188b33584f3030068a2e46e4
4
- data.tar.gz: 42219e3a8e1a6300d72aeb63924dab765bbc5f0b
3
+ metadata.gz: 6f04de24f7df5d622a60ba7d1cfbf959e220e6c8
4
+ data.tar.gz: 5cb4cf1f5bf05a59e4c04a56d96c8824ae5f8181
5
5
  SHA512:
6
- metadata.gz: d622c037ca945587e3e14bcfe8109b91b5dd1f797e3afd9b1070e65d325462f71e40001b0ea1adcb7b3bbddd40249b9df29bb4e91a2e1e47a34e456257afde4c
7
- data.tar.gz: 393c9b543d50e6c03f00b478a4903ea42cb4edb9fb9e93a9eabfbef9e2a541a837403ea77dff1d6dda8808dd64a1e0a5ce71545e551ed158b17d4fe85dedde91
6
+ metadata.gz: 554e715deb3e4b25dad251a62e1e6c0a4d99eae682b8b7092cd69a89e6e5bf6edfb541b1e942ac371442a28242cf8e43d05dd8a85861766ab3052cf57ffa6a33
7
+ data.tar.gz: cce9aae67fe8bb31372759f6fd64a78dd4166d2a150dd7d79f95ed41b942393af654f3f8f9e52498664100b2190e68ef0d675fa47856107995e301ccd0329aa0
@@ -27,7 +27,6 @@ module Mixlib
27
27
  READ_WAIT_TIME = 0.01
28
28
  READ_SIZE = 4096
29
29
  DEFAULT_READ_TIMEOUT = 600
30
- DEFAULT_ENVIRONMENT = {'LC_ALL' => 'C'}
31
30
 
32
31
  if RUBY_PLATFORM =~ /mswin|mingw32|windows/
33
32
  require 'mixlib/shellout/windows'
@@ -84,7 +83,7 @@ module Mixlib
84
83
 
85
84
  # Environment variables that will be set for the subcommand. Refer to the
86
85
  # documentation of new to understand how ShellOut interprets this.
87
- attr_reader :environment
86
+ attr_accessor :environment
88
87
 
89
88
  # The maximum time this command is allowed to run. Usually set via options
90
89
  # to new
@@ -125,11 +124,7 @@ module Mixlib
125
124
  # subprocess. This only has an effect if you call +error!+ after
126
125
  # +run_command+.
127
126
  # * +environment+: a Hash of environment variables to set before the command
128
- # is run. By default, the environment will *always* be set to 'LC_ALL' => 'C'
129
- # to prevent issues with multibyte characters in Ruby 1.8. To avoid this,
130
- # use :environment => nil for *no* extra environment settings, or
131
- # :environment => {'LC_ALL'=>nil, ...} to set other environment settings
132
- # without changing the locale.
127
+ # is run.
133
128
  # * +timeout+: a Numeric value for the number of seconds to wait on the
134
129
  # child process before raising an Exception. This is calculated as the
135
130
  # total amount of time that ShellOut waited on the child process without
@@ -154,7 +149,7 @@ module Mixlib
154
149
  @input = nil
155
150
  @log_level = :debug
156
151
  @log_tag = nil
157
- @environment = DEFAULT_ENVIRONMENT
152
+ @environment = {}
158
153
  @cwd = nil
159
154
  @valid_exit_codes = [0]
160
155
  @terminate_reason = nil
@@ -315,13 +310,7 @@ module Mixlib
315
310
  when 'log_tag'
316
311
  self.log_tag = setting
317
312
  when 'environment', 'env'
318
- # Set the LC_ALL from the parent process if the user wanted
319
- # to use the default.
320
- if setting && setting.has_key?("LC_ALL") && setting['LC_ALL'].nil?
321
- setting['LC_ALL'] = ENV['LC_ALL']
322
- end
323
- # passing :environment => nil means don't set any new ENV vars
324
- @environment = setting.nil? ? {} : @environment.dup.merge!(setting)
313
+ self.environment = setting || {}
325
314
 
326
315
  else
327
316
  raise InvalidCommandOption, "option '#{option.inspect}' is not a valid option for #{self.class.name}"
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class ShellOut
3
- VERSION = "1.6.1"
3
+ VERSION = "2.0.0.rc.0"
4
4
  end
5
5
  end
@@ -200,7 +200,6 @@ module Mixlib
200
200
  end
201
201
  end
202
202
 
203
-
204
203
  # cmd does not parse multiple quotes well unless the whole thing is wrapped up in quotes.
205
204
  # https://github.com/opscode/mixlib-shellout/pull/2#issuecomment-4837859
206
205
  # http://ss64.com/nt/syntax-esc.html
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-shellout
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 2.0.0.rc.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Opscode
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-01 00:00:00.000000000 Z
11
+ date: 2014-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -82,12 +82,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  version: 1.9.3
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ">="
85
+ - - ">"
86
86
  - !ruby/object:Gem::Version
87
- version: '0'
87
+ version: 1.3.1
88
88
  requirements: []
89
89
  rubyforge_project:
90
- rubygems_version: 2.4.4
90
+ rubygems_version: 2.2.2
91
91
  signing_key:
92
92
  specification_version: 4
93
93
  summary: Run external commands on Unix or Windows