matrix_dbus 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/matrix-dbus +6 -6
- data/lib/matrix_dbus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0abea51845bfb868f2c2c350cfdc8e798f003ec
|
4
|
+
data.tar.gz: 48aae892c08bceb438402a2f0f21ebcb89e24b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 807b960256087765b394125c5e38661fdb3201f2f0197d07f597d97b42f99aa2ac3beb95c93a2796acb1d54469963cf9b9437e71e69174ddd4aca90ad428fa7c
|
7
|
+
data.tar.gz: 0ccba6afdc62cbc50dfffe540ff359c70f7df6b29d070b640a69c50830cfae1178c6504045347d67dbf209357c3a6921acd0fa2f6e09df1b793bd889ee46c2c0
|
data/exe/matrix-dbus
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'matrix_dbus'
|
4
4
|
Thread.abort_on_exception = true
|
5
5
|
|
6
|
-
def
|
6
|
+
def send_if_exist(obj, name, json)
|
7
7
|
obj.method(name).call json.to_json unless json.empty?
|
8
8
|
end
|
9
9
|
|
@@ -12,17 +12,17 @@ def matrix2dbus(c, obj)
|
|
12
12
|
obj.all j.to_json
|
13
13
|
|
14
14
|
%i[account_data to_device presence].each do |name|
|
15
|
-
|
15
|
+
send_if_exist obj, name, j[name.to_s]['events']
|
16
16
|
end
|
17
17
|
|
18
|
-
|
18
|
+
send_if_exist obj, :rooms, j['rooms']
|
19
19
|
%i[leave join invite].each do |name|
|
20
|
-
|
20
|
+
send_if_exist obj, name, j['rooms'][name.to_s]
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
send_if_exist obj, :device_lists, j['device_lists']
|
24
24
|
%i[changed left].each do |name|
|
25
|
-
|
25
|
+
send_if_exist obj, name, j['device_lists'][name.to_s]
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
data/lib/matrix_dbus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matrix_dbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 71e6fd52
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|