jabber_admin 1.0.3 → 1.0.4
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/README.md +1 -0
- data/lib/jabber_admin/commands/destroy_room.rb +20 -0
- data/lib/jabber_admin/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b04fc09ea946409fccfdb4dd37b085e84418591c8c72f990b0e46c1ddb736e4
|
4
|
+
data.tar.gz: a9a74a6d345ba34ed5e06d81eda5df5140585778b5aae2196cb5263cccba2c1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 326f9d15f3866893a7ec92de4a4475f59848321c8ff9c879eff6fd7d8d46b8cccad5a15a6c167650b3fba532b410837ba57cdc372e56869b35fae49e333def06
|
7
|
+
data.tar.gz: 70733d53fb23eba46c48baf9300cefadb8cfe178e1130b8640dd014f782becc8077a4186a868c8cbed8d255f6d166955f52ae48850483e906bd6247f294ea769
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -114,6 +114,7 @@ Here comes a list of all supported predefined commands:
|
|
114
114
|
- [subscribe_room](https://bit.ly/2Ke7Zoy)
|
115
115
|
- [unregister](https://bit.ly/2wwYnDE)
|
116
116
|
- [unsubscribe_room](https://bit.ly/2G5zcrj)
|
117
|
+
- [destroy_room](https://bit.ly/31CtqxB)
|
117
118
|
|
118
119
|
If you want to contribute more, we accept pull requests!
|
119
120
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module JabberAdmin
|
4
|
+
module Commands
|
5
|
+
# Destroys a given room (MUC).
|
6
|
+
#
|
7
|
+
# @see https://bit.ly/31CtqxB
|
8
|
+
class DestroyRoom
|
9
|
+
# Pass the correct data to the given callable.
|
10
|
+
#
|
11
|
+
# @param callable [Proc, #call] the callable to call
|
12
|
+
# @param room [String] room JID (eg. +room1@conference.localhost+)
|
13
|
+
# @param host [String] the jabber host (eg. +localhost+)
|
14
|
+
def self.call(callable, room:, host:)
|
15
|
+
name, service = room.split('@')
|
16
|
+
callable.call('destroy_room', name: name, service: service, host: host)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/jabber_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jabber_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Vogt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -259,6 +259,7 @@ files:
|
|
259
259
|
- lib/jabber_admin/commands/ban_account.rb
|
260
260
|
- lib/jabber_admin/commands/create_room.rb
|
261
261
|
- lib/jabber_admin/commands/create_room_with_opts.rb
|
262
|
+
- lib/jabber_admin/commands/destroy_room.rb
|
262
263
|
- lib/jabber_admin/commands/get_vcard.rb
|
263
264
|
- lib/jabber_admin/commands/muc_register_nick.rb
|
264
265
|
- lib/jabber_admin/commands/register.rb
|
@@ -297,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
297
298
|
- !ruby/object:Gem::Version
|
298
299
|
version: '0'
|
299
300
|
requirements: []
|
300
|
-
rubygems_version: 3.2.
|
301
|
+
rubygems_version: 3.2.21
|
301
302
|
signing_key:
|
302
303
|
specification_version: 4
|
303
304
|
summary: Library for the ejabberd RESTful admin API
|