mixlib-shellout 3.3.4-universal-mingw32 → 3.3.6-universal-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 +4 -4
 - data/lib/mixlib/shellout/helper.rb +9 -5
 - data/lib/mixlib/shellout/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: a2ca6b80894e80f19e886100bc1d243046f866eeb2ae14a8f386bfe512f9f762
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 0ce25e6f0aa5fca6177c998366c2eae8b46f3e9f4da42ac0b4be3ffa59e13b3c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 82bb0343f22fce3b166bb3b94770941514cb591e4cc4c4fc91d72204239bb68c2ce7f27147b39aabdbfd0ab0e608cb548bb47719f0449e15c76485664ed79bf8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 5897bd1d4e07244b268e90d872e4be802967f7268da98647ad6a5898a15d50ffc56ff784dbd176de2483830097db51cf8e049f70ab55344780ceb4eb3eb6e069
         
     | 
| 
         @@ -149,10 +149,14 @@ module Mixlib 
     | 
|
| 
       149 
149 
     | 
    
         
             
                  # @param args [String] variable number of string arguments
         
     | 
| 
       150 
150 
     | 
    
         
             
                  # @return [String] merged string
         
     | 
| 
       151 
151 
     | 
    
         
             
                  #
         
     | 
| 
       152 
     | 
    
         
            -
                  def __join_whitespace(*args)
         
     | 
| 
       153 
     | 
    
         
            -
                    args. 
     | 
| 
       154 
     | 
    
         
            -
                      arg. 
     | 
| 
       155 
     | 
    
         
            -
             
     | 
| 
      
 152 
     | 
    
         
            +
                  def __join_whitespace(*args, quote: false)
         
     | 
| 
      
 153 
     | 
    
         
            +
                    args.map do |arg|
         
     | 
| 
      
 154 
     | 
    
         
            +
                      if arg.is_a?(Array)
         
     | 
| 
      
 155 
     | 
    
         
            +
                        __join_whitespace(*arg, quote: arg.count > 1)
         
     | 
| 
      
 156 
     | 
    
         
            +
                      else
         
     | 
| 
      
 157 
     | 
    
         
            +
                        arg = arg.include?(" ") ? sprintf('"%s"', arg) : arg if quote
         
     | 
| 
      
 158 
     | 
    
         
            +
                        arg.strip
         
     | 
| 
      
 159 
     | 
    
         
            +
                      end
         
     | 
| 
       156 
160 
     | 
    
         
             
                    end.join(" ")
         
     | 
| 
       157 
161 
     | 
    
         
             
                  end
         
     | 
| 
       158 
162 
     | 
    
         | 
| 
         @@ -168,7 +172,7 @@ module Mixlib 
     | 
|
| 
       168 
172 
     | 
    
         
             
                        if options[:input]
         
     | 
| 
       169 
173 
     | 
    
         
             
                          command.concat "<<'COMMANDINPUT'\n"
         
     | 
| 
       170 
174 
     | 
    
         
             
                          command.concat __join_whitespace(options[:input])
         
     | 
| 
       171 
     | 
    
         
            -
                          command.concat " 
     | 
| 
      
 175 
     | 
    
         
            +
                          command.concat "\nCOMMANDINPUT\n"
         
     | 
| 
       172 
176 
     | 
    
         
             
                        end
         
     | 
| 
       173 
177 
     | 
    
         
             
                      end
         
     | 
| 
       174 
178 
     | 
    
         | 
    
        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.3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.3.6
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: universal-mingw32
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Chef Software Inc.
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-01-15 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: chef-utils
         
     |