rocketchat 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rocket_chat/gem_version.rb +1 -1
- data/lib/rocket_chat/messages/room.rb +28 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7daacf63eeac8a39cca2b669985a82f050d986fc
|
4
|
+
data.tar.gz: bfe5f9c723868a932e25a2553e8fa46105d9077f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add0b41372ce7ab821f78d9d071f390e13d137ebf64748474ae98a8b9f49313dfea733e158e0677fd668464a0625792ddba9f0591ae05e7c47b6a87a275f3041
|
7
|
+
data.tar.gz: 15d887ac7c5bc4d19f68bdb4299b9c09450d6069b69f1b42353b87d4a44fc83c2b4f576e7e4cea91bbfb08c6329f757a07acaa1d0c93fc66b3350cbf609ceb34
|
@@ -132,6 +132,34 @@ module RocketChat
|
|
132
132
|
)['success']
|
133
133
|
end
|
134
134
|
|
135
|
+
#
|
136
|
+
# *.archive REST API
|
137
|
+
# @param [String] room_id Rocket.Chat room id
|
138
|
+
# @return [Boolean]
|
139
|
+
# @raise [HTTPError, StatusError]
|
140
|
+
#
|
141
|
+
def archive(room_id: nil, name: nil)
|
142
|
+
session.request_json(
|
143
|
+
self.class.api_path('archive'),
|
144
|
+
method: :post,
|
145
|
+
body: room_params(room_id, name)
|
146
|
+
)['success']
|
147
|
+
end
|
148
|
+
|
149
|
+
#
|
150
|
+
# *.unarchive REST API
|
151
|
+
# @param [String] room_id Rocket.Chat room id
|
152
|
+
# @return [Boolean]
|
153
|
+
# @raise [HTTPError, StatusError]
|
154
|
+
#
|
155
|
+
def unarchive(room_id: nil, name: nil)
|
156
|
+
session.request_json(
|
157
|
+
self.class.api_path('unarchive'),
|
158
|
+
method: :post,
|
159
|
+
body: room_params(room_id, name)
|
160
|
+
)['success']
|
161
|
+
end
|
162
|
+
|
135
163
|
#
|
136
164
|
# *.leave REST API
|
137
165
|
# @param [String] room_id Rocket.Chat room id
|
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.
|
4
|
+
version: 0.1.7
|
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-07-
|
12
|
+
date: 2017-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|