rocketchat 0.1.12 → 0.1.13

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: 63f58a275a91d855085d31a1dad2e3433c42a4df
4
- data.tar.gz: b5fadc76d2dba57c3c0630dc6824638e812eb30e
3
+ metadata.gz: e09d8e7433b161f2eb8e4e0c6ce3d8b87a22e847
4
+ data.tar.gz: 7a7923ec50a526e4311e7279b613c0c685a606e8
5
5
  SHA512:
6
- metadata.gz: ea4165b7d6b3a9d166f4ecf5f625d13276bda50b04607a486bba9a885c2e48d25a5f2f1a234c8afc2354d108a89b83e9068e75ae423ab040ba701c6f8d1d47a0
7
- data.tar.gz: d2fb0207c8a889482b93d6141a8cbf69f73df4ffa204b77d2998e33956346530a0ef613688c78510503d0711556290d8408a75c22563ce4c16da8f519f410d7c
6
+ metadata.gz: 399591e7a351f07d6a71f5aa17bdd858a9d332dac20fd2531c3ee29a3d056be84ce0c08b0541fec6008b2765ba61bdb49822079609c67d4c53c1ce43ba486cbb
7
+ data.tar.gz: be8cdd10af5faa415ac9f0427bbdcdc384bf78e4968e4a1c1149750e40e53409a031cc53c2fe9311bea568052728dce2e8555b4038e66504d2f94c2485312be6
data/README.md CHANGED
@@ -45,6 +45,11 @@ This gem supports the following Rocket.Chat APIs (Tested against Rocket.Chat v0.
45
45
  * /api/v1/channels.archive
46
46
  * [/api/v1/channels.create](docs/channels.md#channelscreate)
47
47
  * [/api/v1/channels.delete](docs/channels.md#channelsdelete)
48
+ * [/api/v1/channels.addAll](docs/channels.md#channelsaddall)
49
+ * [/api/v1/channels.addOwner](docs/channels.md#channelsaddowner)
50
+ * [/api/v1/channels.removeOwner](docs/channels.md#channelsremoveowner)
51
+ * [/api/v1/channels.addModerator](docs/channels.md#channelsaddmoderator)
52
+ * [/api/v1/channels.removeModerator](docs/channels.md#channelsremovemoderator)
48
53
  * [/api/v1/channels.info](docs/channels.md#channelsinfo)
49
54
  * [/api/v1/channels.invite](docs/channels.md#channelsinvite)
50
55
  * [/api/v1/channels.join](docs/channels.md#channelsjoin)
@@ -63,6 +68,11 @@ This gem supports the following Rocket.Chat APIs (Tested against Rocket.Chat v0.
63
68
  * /api/v1/groups.archive
64
69
  * /api/v1/groups.create
65
70
  * /api/v1/groups.delete
71
+ * [/api/v1/groups.addAll](docs/groups.md#groupsaddall)
72
+ * [/api/v1/groups.addOwner](docs/groups.md#groupsaddowner)
73
+ * [/api/v1/groups.removeOwner](docs/groups.md#groupsremoveowner)
74
+ * [/api/v1/groups.addModerator](docs/groups.md#groupsaddmoderator)
75
+ * [/api/v1/groups.removeModerator](docs/groups.md#groupsremovemoderator)
66
76
  * /api/v1/groups.info
67
77
  * /api/v1/groups.invite
68
78
  * /api/v1/groups.leave
@@ -1,3 +1,3 @@
1
1
  module RocketChat
2
- VERSION = '0.1.12'.freeze
2
+ VERSION = '0.1.13'.freeze
3
3
  end
@@ -60,10 +60,29 @@ module RocketChat
60
60
  )['success']
61
61
  end
62
62
 
63
+ #
64
+ # *.addAll REST API
65
+ # @param [String] room_id Rocket.Chat room id
66
+ # @param [String] name Rocket.Chat room name (coming soon)
67
+ # @param [String] active_users_only Add active users only
68
+ # @return [Boolean]
69
+ # @raise [HTTPError, StatusError]
70
+ #
71
+ def add_all(room_id: nil, name: nil, active_users_only: false)
72
+ session.request_json(
73
+ self.class.api_path('addAll'),
74
+ method: :post,
75
+ body: room_params(room_id, name)
76
+ .merge(activeUsersOnly: active_users_only)
77
+ )['success']
78
+ end
79
+
63
80
  #
64
81
  # *.add_owner REST API
65
82
  # @param [String] room_id Rocket.Chat room id
83
+ # @param [String] name Rocket.Chat room name (coming soon)
66
84
  # @param [String] user_id Rocket.Chat user id
85
+ # @param [String] username Rocket.Chat username
67
86
  # @return [Boolean]
68
87
  # @raise [HTTPError, StatusError]
69
88
  #
@@ -79,7 +98,9 @@ module RocketChat
79
98
  #
80
99
  # *.remove_owner REST API
81
100
  # @param [String] room_id Rocket.Chat room id
101
+ # @param [String] name Rocket.Chat room name (coming soon)
82
102
  # @param [String] user_id Rocket.Chat user id
103
+ # @param [String] username Rocket.Chat username
83
104
  # @return [Boolean]
84
105
  # @raise [HTTPError, StatusError]
85
106
  #
@@ -95,7 +116,9 @@ module RocketChat
95
116
  #
96
117
  # *.add_moderator REST API
97
118
  # @param [String] room_id Rocket.Chat room id
119
+ # @param [String] name Rocket.Chat room name (coming soon)
98
120
  # @param [String] user_id Rocket.Chat user id
121
+ # @param [String] username Rocket.Chat username
99
122
  # @return [Boolean]
100
123
  # @raise [HTTPError, StatusError]
101
124
  #
@@ -111,7 +134,9 @@ module RocketChat
111
134
  #
112
135
  # *.remove_moderator REST API
113
136
  # @param [String] room_id Rocket.Chat room id
137
+ # @param [String] name Rocket.Chat room name (coming soon)
114
138
  # @param [String] user_id Rocket.Chat user id
139
+ # @param [String] username Rocket.Chat username
115
140
  # @return [Boolean]
116
141
  # @raise [HTTPError, StatusError]
117
142
  #
@@ -146,7 +171,7 @@ module RocketChat
146
171
  # @param [String] room_id Rocket.Chat room id
147
172
  # @param [String] name Rocket.Chat room name (coming soon)
148
173
  # @param [String] user_id Rocket.Chat user id
149
- # @param [String] username Username
174
+ # @param [String] username Rocket.Chat username
150
175
  # @return [Boolean]
151
176
  # @raise [HTTPError, StatusError]
152
177
  #
@@ -162,6 +187,7 @@ module RocketChat
162
187
  #
163
188
  # *.archive REST API
164
189
  # @param [String] room_id Rocket.Chat room id
190
+ # @param [String] name Rocket.Chat room name (coming soon)
165
191
  # @return [Boolean]
166
192
  # @raise [HTTPError, StatusError]
167
193
  #
@@ -176,6 +202,7 @@ module RocketChat
176
202
  #
177
203
  # *.unarchive REST API
178
204
  # @param [String] room_id Rocket.Chat room id
205
+ # @param [String] name Rocket.Chat room name (coming soon)
179
206
  # @return [Boolean]
180
207
  # @raise [HTTPError, StatusError]
181
208
  #
@@ -220,7 +247,7 @@ module RocketChat
220
247
  #
221
248
  # *.set* REST API
222
249
  # @param [String] room_id Rocket.Chat room id
223
- # @param [String] new_name New room name
250
+ # @param [String] name Rocket.Chat room name (coming soon)
224
251
  # @param [Hash] setting Single key-value
225
252
  # @return [Boolean]
226
253
  # @raise [ArgumentError, HTTPError, StatusError]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocketchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - int512
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-27 00:00:00.000000000 Z
12
+ date: 2017-09-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler