ruby-dbus 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS +8 -0
- data/VERSION +1 -1
- data/lib/dbus/bus.rb +2 -2
- data/test/property_test.rb +9 -0
- metadata +4 -4
data/NEWS
CHANGED
@@ -5,6 +5,14 @@ Note about bug numbers:
|
|
5
5
|
Issue#1 - http://github.com/mvidner/ruby-dbus/issues#issue/1
|
6
6
|
bnc#1 - https://bugzilla.novell.com/show_bug.cgi?id=1
|
7
7
|
|
8
|
+
== Ruby D-Bus 0.7.2 - 2012-04-05
|
9
|
+
|
10
|
+
A brown-paper-bag release.
|
11
|
+
|
12
|
+
Bug fixes:
|
13
|
+
* Fixed "undefined local variable or method `continue'" in
|
14
|
+
DBus::Main#run when a service becomes idle (by Ravil Bayramgalin)
|
15
|
+
|
8
16
|
== Ruby D-Bus 0.7.1 - 2012-04-04
|
9
17
|
|
10
18
|
Bug fixes:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
data/lib/dbus/bus.rb
CHANGED
@@ -827,8 +827,8 @@ module DBus
|
|
827
827
|
end
|
828
828
|
end
|
829
829
|
while not @quitting and not @buses.empty?
|
830
|
-
ready = IO.select(@buses.keys,[],[],5) #timeout 5 seconds
|
831
|
-
|
830
|
+
ready = IO.select(@buses.keys, [], [], 5) # timeout 5 seconds
|
831
|
+
next unless ready # timeout exceeds so continue unless quitting
|
832
832
|
ready.first.each do |socket|
|
833
833
|
b = @buses[socket]
|
834
834
|
begin
|
data/test/property_test.rb
CHANGED
@@ -27,6 +27,15 @@ class PropertyTest < Test::Unit::TestCase
|
|
27
27
|
assert_equal "VALUE", @iface["ReadOrWriteMe"]
|
28
28
|
end
|
29
29
|
|
30
|
+
# https://github.com/mvidner/ruby-dbus/pull/19
|
31
|
+
def test_service_select_timeout
|
32
|
+
@iface["ReadOrWriteMe"] = "VALUE"
|
33
|
+
assert_equal "VALUE", @iface["ReadOrWriteMe"]
|
34
|
+
# wait for the service to become idle
|
35
|
+
sleep 6
|
36
|
+
assert_equal "VALUE", @iface["ReadOrWriteMe"], "Property value changed; perhaps the service died and got restarted"
|
37
|
+
end
|
38
|
+
|
30
39
|
def test_property_nonwriting
|
31
40
|
e = assert_raises DBus::Error do
|
32
41
|
@iface["ReadMe"] = "WROTE"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-dbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 2
|
10
|
+
version: 0.7.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ruby DBus Team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-04-
|
18
|
+
date: 2012-04-05 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description:
|