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: 539a6c8f78226c54b34ef4fbba4a4efdab80070b
4
- data.tar.gz: c775b07759beeeb2b4db8b4cc66297d04e38d0b2
3
+ metadata.gz: b3964a410807f90f094e046bcb2ce14abfc42d10
4
+ data.tar.gz: 5f16d3895cd22bb7a51782b8d5f889c126d885e0
5
5
  SHA512:
6
- metadata.gz: d5378a4478def4b3d76915f56e446cbbe522b2e89446908150bc25bc30a1308c76c046cfbd4f506f7c9114a4a87aa5c5884ce703c78a70e43f3e6199dfc81988
7
- data.tar.gz: 9fe1f23a6679d11299d9d73bfd07b8523b4c88b016b1d04e9c03881380dcc6b03086682b9d68755dbbb2f0114c37ff452f7b0e3eb6479cfe93b7b4e6cc8b48cc
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JabberAdmin
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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