jabber_admin 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c3c8dc6ddbbea8d817376ab6c870b2b5590a72e69f4e954cf118cad0a54088f
4
- data.tar.gz: 71306c24bf91350ee2597cd7608e0e77787fdc498d308bf70f1bb081625f55c7
3
+ metadata.gz: 8b04fc09ea946409fccfdb4dd37b085e84418591c8c72f990b0e46c1ddb736e4
4
+ data.tar.gz: a9a74a6d345ba34ed5e06d81eda5df5140585778b5aae2196cb5263cccba2c1b
5
5
  SHA512:
6
- metadata.gz: 8668df2cbce010b8978ac1ca4f3e4f496642b30888059b9e098d9eae984b3968e55a349ac082f666977b66b8306feb72fbc5e9696e1d2be6c14170dc22cf7c01
7
- data.tar.gz: 82c2c8be4ca79ae695fc31a30bea1634d482b9797fb0c9e26e6521f6c53a9fe68647f9542cb077167c4c9bdae8d67883c0894af1907508b6a512bac46ab67fcf
6
+ metadata.gz: 326f9d15f3866893a7ec92de4a4475f59848321c8ff9c879eff6fd7d8d46b8cccad5a15a6c167650b3fba532b410837ba57cdc372e56869b35fae49e333def06
7
+ data.tar.gz: 70733d53fb23eba46c48baf9300cefadb8cfe178e1130b8640dd014f782becc8077a4186a868c8cbed8d255f6d166955f52ae48850483e906bd6247f294ea769
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.0.4
2
+
3
+ * Added support for the predefined command `destroy_room`
4
+
1
5
  ### 1.0.3
2
6
 
3
7
  * Migrated to Github Actions
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
@@ -4,7 +4,7 @@
4
4
  module JabberAdmin
5
5
  # The version constant of the gem. Increase this value
6
6
  # in case of a gem release.
7
- VERSION = '1.0.3'
7
+ VERSION = '1.0.4'
8
8
 
9
9
  class << self
10
10
  # Returns the version of gem as a string.
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.3
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-10-15 00:00:00.000000000 Z
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.16
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