ruby-dbus 0.18.0.beta1 → 0.18.0.beta2

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: 0c89eebb575c67de57670fdc2e8b70b4c08dcaf7fc3c1bad858f1d23869571c1
4
+ data.tar.gz: 4a4793ed412ebd25a636bed4dafa5367800658eb5d52d853ef1b2c0df0e3e272
5
5
  SHA512:
6
- metadata.gz: 340b53e7aa449c84705668db9b753ced7c9d24a3229b1d7bafcc95d29508f1b4418001cc5f2749566b9edb8c2068a8d99565c251054c413252ed68450490208b
7
- data.tar.gz: 8c6dafbd226ae516dc8aef3ad5f01cabb9850455f3f3866cfe66548b7ece22ac1865272bb17fd9af138e52d69b647e4d8ef824ebd2999605e0de28e688710ff8
6
+ metadata.gz: c03aa469aebb197943266b9147fba6b55383a22248e0814b0c2f7799c2e95d43b555f80a919c236a437c90805cbd7647498c1f8b1cf901d4a298da0b2d81e50c
7
+ data.tar.gz: f7906b8c2308909cb8974240f3d8de3bc3e10a481fc15c91acd7af5526f405fd314df8b1a424683009a64dfc52ebfa9fa2c73497f8215cb403d80ab02866d56a
data/NEWS.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## Ruby D-Bus 0.18.0.beta2 - 2022-04-04
6
+
7
+ API:
8
+ * Renamed the DBus::Type::Type class to DBus::Type
9
+ (which was previously a module).
10
+ * Introduced DBus::Data classes, use them in Properties.Get,
11
+ Properties.GetAll to return correct types as declared (still [#97][]).
12
+
13
+ Bug fixes:
14
+ * Signature validation: Ensure DBus.type produces a valid Type
15
+ * Detect more malformed messages: non-NUL padding bytes, variants with
16
+ multiple or no value.
17
+ * Added thorough tests (`spec/data/marshall.yaml`) to detect nearly all
18
+ invalid data at unmarshalling time.
19
+
5
20
  ## Ruby D-Bus 0.18.0.beta1 - 2022-02-24
6
21
 
7
22
  API:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.18.0.beta1
1
+ 0.18.0.beta2
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