scutil 0.2.0 → 0.2.1
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.
- data/CHANGELOG +4 -0
- data/lib/scutil.rb +5 -5
- metadata +2 -2
    
        data/CHANGELOG
    CHANGED
    
    
    
        data/lib/scutil.rb
    CHANGED
    
    | @@ -65,7 +65,7 @@ module Scutil | |
| 65 65 | 
             
                end
         | 
| 66 66 | 
             
              end
         | 
| 67 67 |  | 
| 68 | 
            -
              SCUTIL_VERSION = '0.2. | 
| 68 | 
            +
              SCUTIL_VERSION = '0.2.1'
         | 
| 69 69 | 
             
              # By default, buffer 10M of data before writing.
         | 
| 70 70 | 
             
              DEFAULT_OUTPUT_BUFFER_SIZE = 0xA00000
         | 
| 71 71 | 
             
              # Checks for a command starting with _sudo_ by default.
         | 
| @@ -187,11 +187,11 @@ module Scutil | |
| 187 187 | 
             
                  regex = DEFAULT_PTY_REGEX
         | 
| 188 188 | 
             
                  if (options[:scutil_force_pty].nil?)
         | 
| 189 189 | 
             
                    # If a custom regex has been defined, use it.
         | 
| 190 | 
            -
                    if (!options[: | 
| 191 | 
            -
                      if options[: | 
| 192 | 
            -
                        regex = options[: | 
| 190 | 
            +
                    if (!options[:scutil_pty_regex].nil?)
         | 
| 191 | 
            +
                      if options[:scutil_pty_regex].kind_of? Regexp
         | 
| 192 | 
            +
                        regex = options[:scutil_pty_regex]
         | 
| 193 193 | 
             
                      else
         | 
| 194 | 
            -
                        raise Scutil::Error.new("Error: : | 
| 194 | 
            +
                        raise Scutil::Error.new("Error: :scutil_pty_regex must be a kind of Regexp", hostname)
         | 
| 195 195 | 
             
                      end
         | 
| 196 196 | 
             
                    else
         | 
| 197 197 | 
             
                      return (cmd =~ regex) ? true : false
         | 
    
        metadata
    CHANGED
    
    | @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            name: scutil
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 4 | 
             
              prerelease: 
         | 
| 5 | 
            -
              version: 0.2. | 
| 5 | 
            +
              version: 0.2.1
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors: 
         | 
| 8 8 | 
             
            - Marc Soda
         | 
| @@ -10,7 +10,7 @@ autorequire: | |
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 12 |  | 
| 13 | 
            -
            date: 2011-09- | 
| 13 | 
            +
            date: 2011-09-22 00:00:00 Z
         | 
| 14 14 | 
             
            dependencies: 
         | 
| 15 15 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 16 16 | 
             
              name: net-ssh
         |