mixlib-shellout 3.1.2 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f11a7758041e86b3243966f06c35f8c5e104286cd9658465442a1f15fb1483ec
4
- data.tar.gz: 6ccd66f875c30ecab220f933bb35019a43f30b463ca9febf05a9d176133ebe46
3
+ metadata.gz: 0d472a1835c178c2edd0b5052302b618fc2be2195e10065da7a22c86991d9be0
4
+ data.tar.gz: 66b0a1507864ab17feb4b40bada11875cfee6b8e270b26d999732f2b798ec29a
5
5
  SHA512:
6
- metadata.gz: 528a473db4dba8fe3d67add2d7c618d23b0926b02640a09d64b98c520180e0ea9259b790d65523ddc43d57b6d19f577838f59c89c99d3caf1cb380a5a23921ec
7
- data.tar.gz: 73b5d26d33f68670128e4c4debb265d2f9bb3c7f73a5b04c88fda71ea7de1d6d5e6fdedea3b1be836921a5ec2ff0d9122cc29b70f5021c742a24fb3485c7d7b3
6
+ metadata.gz: 5972f8c85ecfb02b769213f9ed73aa386ead5f0691830d035c31418979ce78cea5524675e7dc8fb2acadebdfd2e19397ef89a89014144365f87b19739c7439db
7
+ data.tar.gz: 1709b17d62c59a1095bdcab99abe35db194875be9725d2af98a133b77a94454ce68a99bec7cffb25228fb1e3cf284b27233d8c7ea36436ab1b515689ffe294fa
@@ -16,8 +16,8 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require "etc"
20
- require "tmpdir"
19
+ require "etc" unless defined?(Etc)
20
+ require "tmpdir" unless defined?(Dir.mktmpdir)
21
21
  require "fcntl"
22
22
  require_relative "shellout/exceptions"
23
23
 
@@ -122,7 +122,7 @@ module Mixlib
122
122
  # === Options:
123
123
  # If the last argument is a Hash, it is removed from the list of args passed
124
124
  # to exec and used as an options hash. The following options are available:
125
- # * +user+: the user the commmand should run as. if an integer is given, it is
125
+ # * +user+: the user the command should run as. if an integer is given, it is
126
126
  # used as a uid. A string is treated as a username and resolved to a uid
127
127
  # with Etc.getpwnam
128
128
  # * +group+: the group the command should run as. works similarly to +user+
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
 
18
18
  require_relative "../shellout"
19
- require "chef-utils"
19
+ require "chef-utils" unless defined?(ChefUtils)
20
20
  require "chef-utils/dsl/default_paths"
21
21
  require "chef-utils/internal"
22
22
 
@@ -30,7 +30,7 @@ module Mixlib
30
30
  # These APIs are considered public for use in ohai and chef (by cookbooks and plugins, etc)
31
31
  # but are considered private/experimental for now for the direct users of mixlib-shellout.
32
32
  #
33
- # You can see an example of how to handle the "dependenecy injection" in the rspec unit test.
33
+ # You can see an example of how to handle the "dependency injection" in the rspec unit test.
34
34
  # That backend API is left deliberately undocumented for now and may not follow SemVer and may
35
35
  # break at any time (at least for the rest of 2020).
36
36
  #
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class ShellOut
3
- VERSION = "3.1.2".freeze
3
+ VERSION = "3.1.4".freeze
4
4
  end
5
5
  end
@@ -208,7 +208,7 @@ module Mixlib
208
208
  # 4. if the argument must be quoted by #1 and terminates in a sequence of backslashes then all the backlashes must themselves
209
209
  # be backslash excaped (double the backslashes).
210
210
  # 5. if an interior quote that must be escaped by #2 has a sequence of backslashes before it then all the backslashes must
211
- # themselves be backslash excaped along with the backslash ecape of the interior quote (double plus one backslashes).
211
+ # themselves be backslash excaped along with the backslash escape of the interior quote (double plus one backslashes).
212
212
  #
213
213
  # And to restate. We are constructing a string which will be parsed by the windows parser into arguments, and we want those
214
214
  # arguments to match the *args array we are passed here. So call the windows parser operation A then we need to apply A^-1 to
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: 3.1.2
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-23 00:00:00.000000000 Z
11
+ date: 2020-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-utils