scutil 0.4.1 → 0.4.2

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.
@@ -1,6 +1,10 @@
1
1
 
2
2
  ==Changelog
3
3
 
4
+ ===0.4.2 | 2011-02-23
5
+
6
+ * Fixed bug when using Ruby 1.8.
7
+
4
8
  ===0.4.1 | 2011-02-22
5
9
 
6
10
  * Fixed uninitialized constant error introduced in 0.4.0.
@@ -29,7 +29,7 @@ require 'scutil/connection_cache'
29
29
  require 'scutil/system_connection'
30
30
 
31
31
  module Scutil
32
- SCUTIL_VERSION = '0.4.1'
32
+ SCUTIL_VERSION = '0.4.2'
33
33
 
34
34
  # By default, buffer 10M of data before writing.
35
35
  DEFAULT_OUTPUT_BUFFER_SIZE = 0xA00000
@@ -52,7 +52,11 @@ module Scutil
52
52
  def scrub_options(options)
53
53
  ssh_options = {}
54
54
  options.each do |k, v|
55
- ssh_options[k] = v if (k !~ /^scutil_+/)
55
+ if (RUBY_VERSION =~ /^1.8/)
56
+ ssh_options[k] = v if (k.to_s !~ /^scutil_+/)
57
+ else
58
+ ssh_options[k] = v if (k !~ /^scutil_+/)
59
+ end
56
60
  end
57
61
  return ssh_options
58
62
  end
@@ -1,8 +1,8 @@
1
1
 
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'scutil'
4
- s.version = '0.4.1'
5
- s.date = '2012-02-22'
4
+ s.version = '0.4.2'
5
+ s.date = '2012-02-23'
6
6
  s.summary = 'SSH Command UTILity'
7
7
  s.description = <<-EOF
8
8
  Scutil is a library for conveniently executing commands
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/ruby -I../lib -I.
2
2
 
3
+ if RUBY_VERSION =~ /^1.8/
4
+ require 'rubygems'
5
+ end
3
6
  require 'test/unit'
4
7
  require 'scutil'
5
8
  require 'stringio'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-22 00:00:00.000000000 Z
12
+ date: 2012-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
16
- requirement: &12112160 !ruby/object:Gem::Requirement
16
+ requirement: &19755500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12112160
24
+ version_requirements: *19755500
25
25
  description: ! " Scutil is a library for conveniently executing commands \n remotely
26
26
  via SSH.\n"
27
27
  email: marcantoniosr@gmail.com