drbssh 0.5.0 → 0.5.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/README.md +2 -0
- data/drbssh.gemspec +1 -1
- data/lib/drbssh.rb +1 -1
- data/spec/drbssh_spec.rb +5 -4
- metadata +5 -5
data/README.md
CHANGED
@@ -26,6 +26,8 @@ interpreter. The only interesting function exposed is `eval`.
|
|
26
26
|
|
27
27
|
Uses a Vagrant VM with an Ubuntu-installation to serve as the remote end-point in tests.
|
28
28
|
|
29
|
+
The Vagrant VM is supposed to be reachable as 'vagrant-drbssh'.
|
30
|
+
|
29
31
|
## TODOS
|
30
32
|
|
31
33
|
* Use Net::SSH if installed/possible?
|
data/drbssh.gemspec
CHANGED
data/lib/drbssh.rb
CHANGED
data/spec/drbssh_spec.rb
CHANGED
@@ -5,6 +5,7 @@ require 'drbssh'
|
|
5
5
|
describe DRb::DRbSSHProtocol do
|
6
6
|
it "responds to drbssh:// URIs" do
|
7
7
|
described_class.uri_option("drbssh://localhost/ruby", {}).should eq [ "drbssh://localhost/ruby", nil ]
|
8
|
+
described_class.uri_option("drbssh://localhost/", {}).should eq [ "drbssh://localhost/", nil ]
|
8
9
|
described_class.uri_option("drbssh://localhost", {}).should eq [ "drbssh://localhost/", nil ]
|
9
10
|
described_class.uri_option("drbssh://", {}).first.should match(/^drbssh:\/\//)
|
10
11
|
|
@@ -32,9 +33,9 @@ describe DRb::DRbSSHProtocol do
|
|
32
33
|
|
33
34
|
it "connects to a remote Ruby" do
|
34
35
|
DRb.start_service("drbssh://localhost")
|
35
|
-
drb = DRbObject.new_with_uri("drbssh://vagrant-
|
36
|
+
drb = DRbObject.new_with_uri("drbssh://vagrant-drbssh/ruby")
|
36
37
|
drb.should be_an_instance_of DRb::DRbObject
|
37
|
-
drb.__drburi.should eq "drbssh://vagrant-
|
38
|
+
drb.__drburi.should eq "drbssh://vagrant-drbssh/ruby"
|
38
39
|
|
39
40
|
drb.eval("1+1").should eq 2
|
40
41
|
drb.eval("`hostname`").should eq "vagrant-ubuntu-oneiric\n"
|
@@ -45,7 +46,7 @@ describe DRb::DRbSSHProtocol do
|
|
45
46
|
it "allows two-way communication" do
|
46
47
|
DRb.start_service("drbssh://localhost")
|
47
48
|
|
48
|
-
drb = DRbObject.new_with_uri("drbssh://vagrant-
|
49
|
+
drb = DRbObject.new_with_uri("drbssh://vagrant-drbssh/ruby")
|
49
50
|
|
50
51
|
remote_hash = drb.eval("@a = {}.extend(DRb::DRbUndumped)")
|
51
52
|
|
@@ -66,7 +67,7 @@ describe DRb::DRbSSHProtocol do
|
|
66
67
|
|
67
68
|
it "reconnects when connection has been terminated" do
|
68
69
|
DRb.start_service("drbssh://localhost")
|
69
|
-
drb = DRbObject.new_with_uri("drbssh://vagrant-
|
70
|
+
drb = DRbObject.new_with_uri("drbssh://vagrant-drbssh/ruby")
|
70
71
|
drb.eval("`hostname`").should eq "vagrant-ubuntu-oneiric\n"
|
71
72
|
pid = drb.eval('$$')
|
72
73
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drbssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70111189214280 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.8.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70111189214280
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: guard-rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70111189213240 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70111189213240
|
36
36
|
description: Allows DRb to create and use an SSH-connection.
|
37
37
|
email:
|
38
38
|
- kvs@binarysolutions.dk
|