pangdudu-ruby-dbus 0.2.4.4 → 0.2.4.5
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.rdoc +1 -1
- data/lib/dbus/bus.rb +22 -0
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -40,7 +40,7 @@ Ruby D-Bus currently supports the following features:
|
|
40
40
|
allows for introspection.
|
41
41
|
* Emitting signals on exported objects.
|
42
42
|
|
43
|
-
* Connection to a local or remote bus over TCP/IP
|
43
|
+
* Connection to a local or remote bus over TCP/IP using 'Dbus::RemoteBus.new(socket_name)'
|
44
44
|
* Authentification mechanisms working now: External,CookieSHA1
|
45
45
|
|
46
46
|
== Usage
|
data/lib/dbus/bus.rb
CHANGED
@@ -683,6 +683,28 @@ module DBus
|
|
683
683
|
end
|
684
684
|
end
|
685
685
|
|
686
|
+
# = D-Bus remote (TCP) bus class
|
687
|
+
#
|
688
|
+
# This class may be used when connecting to remote (listening on a TCP socket)
|
689
|
+
# busses. You can also use it to connect to other non-standard path busses.
|
690
|
+
#
|
691
|
+
# The specified socket_name should look like this:
|
692
|
+
# (for TCP) tcp:host=127.0.0.1,port=2687
|
693
|
+
# (for Unix-socket) unix:path=/tmp/my_funky_bus_socket
|
694
|
+
#
|
695
|
+
# you'll need to take care about authentification then, more info here:
|
696
|
+
# http://github.com/pangdudu/ruby-dbus/blob/master/README.rdoc
|
697
|
+
class RemoteBus < Connection
|
698
|
+
|
699
|
+
# Get the remote bus.
|
700
|
+
def initialize socket_name
|
701
|
+
super(socket_name)
|
702
|
+
connect
|
703
|
+
send_hello
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
707
|
+
|
686
708
|
# FIXME: we should get rid of these singeltons
|
687
709
|
|
688
710
|
def DBus.system_bus
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pangdudu-ruby-dbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.4.
|
4
|
+
version: 0.2.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruby DBUS Team, pangdudu
|
@@ -9,7 +9,7 @@ autorequire: dbus
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-19 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|