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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed12cd37565f3e4906733b1023bfac88e5a6f3cb
4
- data.tar.gz: cd0d89858645ca5385aca940d2ba7efd7f4357a4
3
+ metadata.gz: 7daacf63eeac8a39cca2b669985a82f050d986fc
4
+ data.tar.gz: bfe5f9c723868a932e25a2553e8fa46105d9077f
5
5
  SHA512:
6
- metadata.gz: a2cbd52d970d141b7938dfbd8ffbbf3bad29b0f38788e1da079b63ac67c78dfb2bd5338d8f87fd10ff98d1ebee97b01495ccf452404e6be381dc1f8e0b277bad
7
- data.tar.gz: 5879c04d4384ef56ac148c9608a4c7606c1521e4d3b2336021ee43fbe7d76c0a775caead524cb7ca49a66e35f5411faab267bbdbf59c46e35f7a7ecab32d0086
6
+ metadata.gz: add0b41372ce7ab821f78d9d071f390e13d137ebf64748474ae98a8b9f49313dfea733e158e0677fd668464a0625792ddba9f0591ae05e7c47b6a87a275f3041
7
+ data.tar.gz: 15d887ac7c5bc4d19f68bdb4299b9c09450d6069b69f1b42353b87d4a44fc83c2b4f576e7e4cea91bbfb08c6329f757a07acaa1d0c93fc66b3350cbf609ceb34
@@ -1,3 +1,3 @@
1
1
  module RocketChat
2
- VERSION = '0.1.6'.freeze
2
+ VERSION = '0.1.7'.freeze
3
3
  end
@@ -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.6
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-11 00:00:00.000000000 Z
12
+ date: 2017-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler