rye 0.8.9 → 0.8.11

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/CHANGES.txt CHANGED
@@ -1,11 +1,19 @@
1
1
  RYE, CHANGES
2
2
 
3
+ * TODO: file_append overwrites file
4
+
5
+ #### 0.8.11 (2009-10-30) #############################
6
+
7
+ * CHANGE: Increased timeout on disconnect
8
+
9
+ #### 0.8.10 (2009-10-07) #############################
10
+
11
+ * CHANGE: Improved startup time.
3
12
 
4
13
  #### 0.8.9 (2009-08-26) #############################
5
14
 
6
15
  * FIXED: authorize-local for Windows
7
16
 
8
-
9
17
  #### 0.8.8 (2009-08-25) #############################
10
18
 
11
19
  * FIXED: Rye::Box#guess_user_home for Windows SSH support
data/lib/rye.rb CHANGED
@@ -41,20 +41,21 @@ require 'esc'
41
41
  #++
42
42
  module Rye
43
43
  extend self
44
-
45
- unless defined?(SYSINFO)
46
- VERSION = "0.8.9".freeze
47
- SYSINFO = SysInfo.new.freeze
48
- end
49
44
 
45
+ VERSION = "0.8.11".freeze unless defined?(VERSION)
46
+
47
+ @@sysinfo = nil
50
48
  @@agent_env = Hash.new # holds ssh-agent env vars
51
49
  @@mutex = Mutex.new # for synchronizing threads
52
50
 
53
51
  # Accessor for an instance of SystemInfo
54
- def Rye.sysinfo; SYSINFO; end
52
+ def Rye.sysinfo
53
+ @@sysinfo = SysInfo.new if @@sysinfo.nil?
54
+ @@sysinfo
55
+ end
55
56
 
56
57
  # Accessor for an instance of SystemInfo
57
- def sysinfo; SYSINFO; end
58
+ def sysinfo; Rye.sysinfo end
58
59
 
59
60
  class RyeError < RuntimeError; end
60
61
  class NoBoxes < RyeError; end
data/lib/rye/box.rb CHANGED
@@ -656,7 +656,7 @@ module Rye
656
656
  def disconnect
657
657
  return unless @rye_ssh && !@rye_ssh.closed?
658
658
  begin
659
- Timeout::timeout(3) do
659
+ Timeout::timeout(10) do
660
660
  @rye_ssh.loop(0.3) { @rye_ssh.busy?; }
661
661
  end
662
662
  rescue SystemCallError, Timeout::Error => ex
data/lib/rye/cmd.rb CHANGED
@@ -155,7 +155,7 @@ module Rye;
155
155
  file_content = self.file_download filepath
156
156
  end
157
157
 
158
- content ||= StringIO.new
158
+ content = StringIO.new
159
159
  if newcontent.is_a?(StringIO)
160
160
  newcontent.rewind
161
161
  content.puts newcontent.read
data/rye.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "rye"
3
3
  s.rubyforge_project = "rye"
4
- s.version = "0.8.9"
4
+ s.version = "0.8.11"
5
5
  s.summary = "Rye: Safely run SSH commands on a bunch of machines at the same time (from Ruby)."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.9
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-26 00:00:00 -04:00
12
+ date: 2009-11-23 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  requirements: []
136
136
 
137
137
  rubyforge_project: rye
138
- rubygems_version: 1.3.2
138
+ rubygems_version: 1.3.5
139
139
  signing_key:
140
140
  specification_version: 2
141
141
  summary: "Rye: Safely run SSH commands on a bunch of machines at the same time (from Ruby)."