delano-rye 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES.txt +6 -0
  2. data/lib/rye.rb +1 -1
  3. data/lib/rye/rap.rb +6 -1
  4. data/rye.gemspec +5 -4
  5. metadata +8 -8
data/CHANGES.txt CHANGED
@@ -6,6 +6,12 @@ TODO
6
6
  * Fingerprints: ssh-keygen -l -f id_rsa_repos.pub
7
7
 
8
8
 
9
+ #### 0.8.3 (2009-06-30) #############################
10
+
11
+ * ADDED: JRuby 1.3 support
12
+ * ADDED: Tryouts (i.e. better testing)
13
+
14
+
9
15
  #### 0.8.2 (2009-06-23) #############################
10
16
 
11
17
  * FIXED: Rye::Box.switch_user will disconnect but not create a new connection.
data/lib/rye.rb CHANGED
@@ -43,7 +43,7 @@ module Rye
43
43
  extend self
44
44
 
45
45
  unless defined?(SYSINFO)
46
- VERSION = "0.8.2".freeze
46
+ VERSION = "0.8.3".freeze
47
47
  SYSINFO = SysInfo.new.freeze
48
48
  end
49
49
 
data/lib/rye/rap.rb CHANGED
@@ -74,11 +74,16 @@ module Rye;
74
74
  # For example, when running a command via Rye.shell, this method
75
75
  # is send $? which is Process::Status object. Via Rye::Box.run_command
76
76
  # it's just an exit code returned by Net::SSH.
77
+ #
78
+ # In JRuby, if +code+ is a Process::Status object, @pid will be
79
+ # set to -1 (JRuby doesn't return the pid).
80
+ #
77
81
  # Returns the exit code as an Integer.
78
82
  def add_exit_code(code)
79
83
  code = 0 if code.nil?
80
84
  if code.is_a?(Process::Status)
81
- @exit_code, @pid = code.exitstatus.to_i, code.pid
85
+ @exit_code = code.exitstatus.to_i
86
+ @pid = Rye.sysinfo.vm == :java ? '-1' : code.pid
82
87
  else
83
88
  @exit_code = code.to_i
84
89
  end
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.2"
4
+ s.version = "0.8.3"
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"
@@ -11,10 +11,11 @@
11
11
  # = DEPENDENCIES =
12
12
  # Add all gem dependencies
13
13
  s.add_dependency 'drydock'
14
+ s.add_dependency 'sysinfo'
15
+ s.add_dependency 'storable'
16
+
14
17
  s.add_dependency 'highline', '>= 1.5.1'
15
- s.add_dependency 'sysinfo', '>= 0.5.1'
16
- s.add_dependency 'storable', '>= 0.5.1'
17
- s.add_dependency 'net-ssh', '>= 2.0.9'
18
+ s.add_dependency 'net-ssh', '>= 2.0.12'
18
19
  s.add_dependency 'net-scp', '>= 1.0.2'
19
20
  #s.add_dependency 'net-ssh-gateway'
20
21
  #s.add_dependency 'net-ssh-multi'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delano-rye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -23,34 +23,34 @@ dependencies:
23
23
  version: "0"
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: highline
26
+ name: sysinfo
27
27
  type: :runtime
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.5.1
33
+ version: "0"
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
- name: sysinfo
36
+ name: storable
37
37
  type: :runtime
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 0.5.1
43
+ version: "0"
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
- name: storable
46
+ name: highline
47
47
  type: :runtime
48
48
  version_requirement:
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.5.1
53
+ version: 1.5.1
54
54
  version:
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: net-ssh
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 2.0.9
63
+ version: 2.0.12
64
64
  version:
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: net-scp