jabber_admin 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/jabber_admin/commands/get_vcard.rb +7 -7
- data/lib/jabber_admin/version.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7ea3dd7b95b8afeaf6706f936e466bbf31df25d61509fd14d91e13aa33eddcc
|
4
|
+
data.tar.gz: 2d773da438776408aae7d6a50660a0e261680ddde8011f6003cf8d6684e071d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 797d59f99d8cffefe1d84ad6e71b213ad71f607cf96204268e149458df7ed10770c9dfc4c7c0f405ceffc93ebf8bb16b711374e81424925dc2c19fc8f10093d5
|
7
|
+
data.tar.gz: 74f5062778abad7992348e1cb852caf38a17f273bdfe3292dcbcbf67eb593f2da03d60b2fd647601831297a1602450a9cd66925c9def36749794b93e659bcedd
|
data/CHANGELOG.md
CHANGED
@@ -53,15 +53,15 @@ module JabberAdmin
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
res =
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
res.is_a?(Hash) ? res['content'] : res
|
62
|
-
rescue JabberAdmin::CommandError => e
|
56
|
+
res = callable.call(meth, check_res_body: false,
|
57
|
+
user: uid, host: host, **args)
|
58
|
+
body = (200..299).cover?(res.code) ? JSON.parse(res.body) : nil
|
59
|
+
body.is_a?(Hash) ? body['content'] : body
|
60
|
+
rescue JabberAdmin::Error => e
|
63
61
|
# When ejabberd tells us there was no value, it does this the hard way
|
64
62
|
next if e.response.body.include? 'error_no_value_found_in_vcard'
|
63
|
+
# Same for the case when there is no vCard at all
|
64
|
+
next if e.response.body.include? 'error_no_vcard_found'
|
65
65
|
|
66
66
|
raise e
|
67
67
|
end
|
data/lib/jabber_admin/version.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# The gem module.
|
3
4
|
module JabberAdmin
|
4
5
|
# The version constant of the gem. Increase this value
|
5
6
|
# in case of a gem release.
|
6
|
-
VERSION = '1.0.
|
7
|
+
VERSION = '1.0.1'
|
7
8
|
|
8
9
|
class << self
|
9
10
|
# Returns the version of gem as a string.
|