ruby-dbus 0.18.0.beta1 → 0.18.0.beta4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 491efa855b01f946194979c90d4bb4c1bb6bc4c33e342cd9d3dd76cbd53111cd
4
- data.tar.gz: d2c1acaa46d04a7f4799b95722b71f4449c2d39fd87fd993c1c1140dbb5d0732
3
+ metadata.gz: e6e093b55c88614ceebd2cfd0c09a5bba3886b8c561b8e153c034d9249ae5a08
4
+ data.tar.gz: a2b2931d1b3b9ae560cc6204e297a7daceec2ec85a065a2782cbbeed34286f5d
5
5
  SHA512:
6
- metadata.gz: 340b53e7aa449c84705668db9b753ced7c9d24a3229b1d7bafcc95d29508f1b4418001cc5f2749566b9edb8c2068a8d99565c251054c413252ed68450490208b
7
- data.tar.gz: 8c6dafbd226ae516dc8aef3ad5f01cabb9850455f3f3866cfe66548b7ece22ac1865272bb17fd9af138e52d69b647e4d8ef824ebd2999605e0de28e688710ff8
6
+ metadata.gz: 66e7ad826a0f1ef5bb1abba72a6f76f02fbd4c13c7e7f14caf3abd71946ba4e5a0b9cc16950d60a22eb2d994d73c78306d270296af90f2bf9aa2aaaf4f85dab3
7
+ data.tar.gz: 4641ca7b18414d7cf58d786ab05d3d3bc3a50d40311b1b5650b6f44a1bfcf0b1cca373eee4445b5cd6e0eb70a42407b244d93c09371d9ea985a66d6d4c79c0d7
data/NEWS.md CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## Ruby D-Bus 0.18.0.beta4 - 2022-04-21
6
+
7
+ Bug fixes:
8
+ * Service-side properties: Fix Properties.Get, Properties.GetAll for
9
+ properties that contain arrays, on other than outermost level ([#109][]).
10
+ * Sending variants: fixed make_variant to correctly guess the signature
11
+ for UInt64 and number-keyed hashes/dictionaries.
12
+
13
+ [#109]: https://github.com/mvidner/ruby-dbus/pull/109
14
+
15
+ ## Ruby D-Bus 0.18.0.beta3 - 2022-04-10
16
+
17
+ Bug fixes:
18
+ * Service-side properties: Fix Properties.Get, Properties.GetAll for Array,
19
+ Dict, and Variant types ([#105][]).
20
+
21
+ [#105]: https://github.com/mvidner/ruby-dbus/pull/105
22
+
23
+ ## Ruby D-Bus 0.18.0.beta2 - 2022-04-04
24
+
25
+ API:
26
+ * Renamed the DBus::Type::Type class to DBus::Type
27
+ (which was previously a module).
28
+ * Introduced DBus::Data classes, use them in Properties.Get,
29
+ Properties.GetAll to return correct types as declared (still [#97][]).
30
+
31
+ Bug fixes:
32
+ * Signature validation: Ensure DBus.type produces a valid Type
33
+ * Detect more malformed messages: non-NUL padding bytes, variants with
34
+ multiple or no value.
35
+ * Added thorough tests (`spec/data/marshall.yaml`) to detect nearly all
36
+ invalid data at unmarshalling time.
37
+
5
38
  ## Ruby D-Bus 0.18.0.beta1 - 2022-02-24
6
39
 
7
40
  API:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.18.0.beta1
1
+ 0.18.0.beta4
data/doc/Reference.md CHANGED
@@ -171,7 +171,7 @@ by the D-Bus signature.
171
171
  If the signature expects a Variant
172
172
  (which is the case for all Properties!) then an explicit mechanism is needed.
173
173
 
174
- 1. A pair [{DBus::Type::Type}, value] specifies to marshall *value* as
174
+ 1. A pair [{DBus::Type}, value] specifies to marshall *value* as
175
175
  that specified type.
176
176
  The pair can be produced by {DBus.variant}(signature, value) which
177
177
  gives the same result as [{DBus.type}(signature), value].
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "dbus"
5
+
6
+ # Complex property
7
+ class Test < DBus::Object
8
+ dbus_interface "net.vidner.Scratch" do
9
+ dbus_attr_reader :progress, "(stttt)"
10
+ end
11
+
12
+ def initialize(opath)
13
+ @progress = ["working", 1, 0, 100, 42].freeze
14
+ super(opath)
15
+ end
16
+ end
17
+
18
+ bus = DBus::SessionBus.instance
19
+ svc = bus.request_service("net.vidner.Scratch")
20
+ svc.export(Test.new("/net/vidner/Scratch"))
21
+ DBus::Main.new.tap { |m| m << bus }.run