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.
Files changed (3) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/scutil.rb +5 -5
  3. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,6 +1,10 @@
1
1
 
2
2
  ===Changelog
3
3
 
4
+ ===0.2.1 | 2011-09-22
5
+
6
+ * The option :scutil_pty_regex is no longer ignored.
7
+
4
8
  ===0.2.0 | 2011-09-20
5
9
 
6
10
  * Added option :scutil_pty_regex.
data/lib/scutil.rb CHANGED
@@ -65,7 +65,7 @@ module Scutil
65
65
  end
66
66
  end
67
67
 
68
- SCUTIL_VERSION = '0.2.0'
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[:scutil_regex].nil?)
191
- if options[:scutil_regex].kind_of? Regexp
192
- regex = options[:scutil_regex]
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: :scutil_regex must be a kind of Regexp", hostname)
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.0
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-20 00:00:00 Z
13
+ date: 2011-09-22 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: net-ssh