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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e979e789b01e9dd381c952082bead0d935351f9b
4
- data.tar.gz: 7b18ba12084a5da083c36bdcc678f38cec67f5d5
3
+ metadata.gz: f0abea51845bfb868f2c2c350cfdc8e798f003ec
4
+ data.tar.gz: 48aae892c08bceb438402a2f0f21ebcb89e24b81
5
5
  SHA512:
6
- metadata.gz: 1289a1c8bb415f8d1a6e652b411952e2e97a563ec84315e2af1096b82cb3b85b1b38d9d95c3df50143d9d110af59aba1d1c857994dbc55a14913bb04b8af97f6
7
- data.tar.gz: 880ae8ae6b44bb8fb8d1cd906dd89160175dd4808d3c9f98360396758f05f808c328fe0efcf7a65e50ab07dd9860ef38771a971a22e6855dd465630c1e672e53
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 send(obj, name, json)
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
- send obj, name, j[name.to_s]['events']
15
+ send_if_exist obj, name, j[name.to_s]['events']
16
16
  end
17
17
 
18
- send obj, :rooms, j['rooms']
18
+ send_if_exist obj, :rooms, j['rooms']
19
19
  %i[leave join invite].each do |name|
20
- send obj, name, j['rooms'][name.to_s]
20
+ send_if_exist obj, name, j['rooms'][name.to_s]
21
21
  end
22
22
 
23
- send obj, :device_lists, j['device_lists']
23
+ send_if_exist obj, :device_lists, j['device_lists']
24
24
  %i[changed left].each do |name|
25
- send obj, name, j['device_lists'][name.to_s]
25
+ send_if_exist obj, name, j['device_lists'][name.to_s]
26
26
  end
27
27
  end
28
28
 
@@ -1,3 +1,3 @@
1
1
  module MatrixDBus
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-08 00:00:00.000000000 Z
11
+ date: 2017-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler