jabber_admin 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3964a410807f90f094e046bcb2ce14abfc42d10
|
4
|
+
data.tar.gz: 5f16d3895cd22bb7a51782b8d5f889c126d885e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3c2138dfda7e17e807e3261319d05712076716079be91db086ec81e2c28d263934da84c918d4829535e9c3d4ef1cea1325bec0a24903e4b92d3acfd90b4278f
|
7
|
+
data.tar.gz: 95b54d81663a0c181f8a60235a80f63ef2ff01aaf6b5cc515cdd97f1cb0e2b6f33f357013a34d9d9968bd6ab1f3799e197af0255b5dab7d2a4d78d3e68fcfefa
|
@@ -9,6 +9,7 @@ require 'jabber_admin/commands/send_direct_invitation'
|
|
9
9
|
require 'jabber_admin/commands/subscribe_room'
|
10
10
|
require 'jabber_admin/commands/unsubscribe_room'
|
11
11
|
require 'jabber_admin/commands/unregister'
|
12
|
+
require 'jabber_admin/commands/set_room_affiliation'
|
12
13
|
|
13
14
|
##
|
14
15
|
# Contains alle commands that are supported
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module JabberAdmin
|
4
|
+
module Commands
|
5
|
+
##
|
6
|
+
# Change an affiliation in a MUC room
|
7
|
+
# https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#set-room-affiliation-change-an-affiliation-in-a-muc-room
|
8
|
+
class SetRoomAffiliation
|
9
|
+
# @param [name] Room name
|
10
|
+
# @param [service] MUC service
|
11
|
+
# @param [jid] User JID
|
12
|
+
# @param [affiliation] Affiliation to set
|
13
|
+
def self.call(name:, service:, jid:, affiliation:)
|
14
|
+
JabberAdmin::ApiCall.perform(
|
15
|
+
'set_room_affiliation',
|
16
|
+
name: name, service: service, jid: jid, affiliation: affiliation
|
17
|
+
)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
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: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Vogt
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- lib/jabber_admin/commands/register.rb
|
127
127
|
- lib/jabber_admin/commands/restart.rb
|
128
128
|
- lib/jabber_admin/commands/send_direct_invitation.rb
|
129
|
+
- lib/jabber_admin/commands/set_room_affiliation.rb
|
129
130
|
- lib/jabber_admin/commands/subscribe_room.rb
|
130
131
|
- lib/jabber_admin/commands/unregister.rb
|
131
132
|
- lib/jabber_admin/commands/unsubscribe_room.rb
|