mixlib-shellout 3.3.3 → 3.3.4
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 +6 -3
 - 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: 49b9ac59dc9b686824b628b2cc5e616cdcca707ec3d60dc87b025fb8ae18d4dd
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 18d6456f265caa913d37a8ffedc2c66514e381e090cc0a1c8d32b5cf8c4adee3
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 1b24be2169c4086dd2de0d26c54b89ffae4474513b2ec55f9957fb446aa2ce0f03a4464f3e735869c35820a91b6d7e3823fa5780e11efe4e7947ea2820ab448c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8e683c0a522719a7b3ede0e9d33f93906ba58cacf79d4b4d834a225815c762f2492c41b99ed3577b326728b6386ac949b7a25da694def49aacae0f1d1e34830a
         
     | 
| 
         @@ -143,14 +143,17 @@ module Mixlib 
     | 
|
| 
       143 
143 
     | 
    
         | 
| 
       144 
144 
     | 
    
         
             
                  # Join arguments into a string.
         
     | 
| 
       145 
145 
     | 
    
         
             
                  #
         
     | 
| 
       146 
     | 
    
         
            -
                  #  
     | 
| 
       147 
     | 
    
         
            -
                  # a space  
     | 
| 
      
 146 
     | 
    
         
            +
                  # Strips leading/trailing spaces from each argument. If an argument contains
         
     | 
| 
      
 147 
     | 
    
         
            +
                  # a space, it is quoted. Join into a single string with spaces between each argument.
         
     | 
| 
       148 
148 
     | 
    
         
             
                  #
         
     | 
| 
       149 
149 
     | 
    
         
             
                  # @param args [String] variable number of string arguments
         
     | 
| 
       150 
150 
     | 
    
         
             
                  # @return [String] merged string
         
     | 
| 
       151 
151 
     | 
    
         
             
                  #
         
     | 
| 
       152 
152 
     | 
    
         
             
                  def __join_whitespace(*args)
         
     | 
| 
       153 
     | 
    
         
            -
                    args.flatten.map  
     | 
| 
      
 153 
     | 
    
         
            +
                    args.flatten.map do |arg|
         
     | 
| 
      
 154 
     | 
    
         
            +
                      arg.strip!
         
     | 
| 
      
 155 
     | 
    
         
            +
                      arg.include?(" ") ? sprintf('"%s"', arg) : arg
         
     | 
| 
      
 156 
     | 
    
         
            +
                    end.join(" ")
         
     | 
| 
       154 
157 
     | 
    
         
             
                  end
         
     | 
| 
       155 
158 
     | 
    
         | 
| 
       156 
159 
     | 
    
         
             
                  def __shell_out_command(*args, **options)
         
     | 
    
        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.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: 2024-10- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-10-29 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: chef-utils
         
     |