rocketchat 0.1.8 → 0.1.9
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/chat.rb +4 -4
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 623740084d610f8caf2ff246adede0d7c5c17640
|
4
|
+
data.tar.gz: 64a24a0dbed08184ab50467f364d02e7b774ac22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 872cebf2f5e74c1a0c04c88ff37ca12ec758a011125013911e328be82a924e9cf882c20807b058c766c1250f6dc9b0966a6dee49c53d4995f7f60d33cc3c8cdd
|
7
|
+
data.tar.gz: 350e59ec50f3caca841b012775471dac34fa920e76d7faa99f07c4e8083cde4185bbc3a9fae00c51d2efbd8941e884347f50318788404f3732502cd515395fb9
|
@@ -22,7 +22,7 @@ module RocketChat
|
|
22
22
|
# @return [Boolean]
|
23
23
|
# @raise [HTTPError, StatusError]
|
24
24
|
#
|
25
|
-
def delete(room_id: nil, name: nil, msg_id
|
25
|
+
def delete(room_id: nil, name: nil, msg_id: nil, as_user: nil)
|
26
26
|
session.request_json(
|
27
27
|
'/api/v1/chat.delete',
|
28
28
|
method: :post,
|
@@ -40,7 +40,7 @@ module RocketChat
|
|
40
40
|
# @return [RocketChat::Message]
|
41
41
|
# @raise [HTTPError, StatusError]
|
42
42
|
#
|
43
|
-
def get_message(msg_id:)
|
43
|
+
def get_message(msg_id: nil)
|
44
44
|
response = session.request_json(
|
45
45
|
'/api/v1/chat.getMessage',
|
46
46
|
body: { msgId: msg_id }
|
@@ -57,7 +57,7 @@ module RocketChat
|
|
57
57
|
# @return [RocketChat::Message]
|
58
58
|
# @raise [HTTPError, StatusError]
|
59
59
|
#
|
60
|
-
def post_message(room_id: nil, name: nil, channel
|
60
|
+
def post_message(room_id: nil, name: nil, channel: nil, **params)
|
61
61
|
response = session.request_json(
|
62
62
|
'/api/v1/chat.postMessage',
|
63
63
|
method: :post,
|
@@ -77,7 +77,7 @@ module RocketChat
|
|
77
77
|
# @return [RocketChat::Message]
|
78
78
|
# @raise [HTTPError, StatusError]
|
79
79
|
#
|
80
|
-
def update(room_id: nil, name: nil, msg_id
|
80
|
+
def update(room_id: nil, name: nil, msg_id: nil, text: nil)
|
81
81
|
response = session.request_json(
|
82
82
|
'/api/v1/chat.update',
|
83
83
|
method: :post,
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- int512
|
@@ -15,84 +15,84 @@ dependencies:
|
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.11'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.11'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '10.0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '10.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ~>
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '3.0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: webmock
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ~>
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '2.3'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '2.3'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: yard
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 0.8.7.6
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ~>
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 0.8.7.6
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: rubocop
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ~>
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 0.48.1
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ~>
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: 0.48.1
|
98
98
|
description: Rocket.Chat REST API v1 for Ruby
|
@@ -104,9 +104,9 @@ executables:
|
|
104
104
|
extensions: []
|
105
105
|
extra_rdoc_files: []
|
106
106
|
files:
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
107
|
+
- .gitignore
|
108
|
+
- .rubocop.yml
|
109
|
+
- .travis.yml
|
110
110
|
- Gemfile
|
111
111
|
- LICENSE
|
112
112
|
- README.md
|
@@ -145,17 +145,17 @@ require_paths:
|
|
145
145
|
- lib
|
146
146
|
required_ruby_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
|
-
- -
|
148
|
+
- - '>='
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
152
|
requirements:
|
153
|
-
- -
|
153
|
+
- - '>='
|
154
154
|
- !ruby/object:Gem::Version
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.4.8
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: Rocket.Chat REST API v1 for Ruby
|