zulip-client 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zulip/client.rb +8 -0
- data/lib/zulip/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5b953a20f5dffce5b8a1badba3689736cc29b20
|
4
|
+
data.tar.gz: bc5a528c9c6e764d0ad90c41e090a69371fe82da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a84e8f5ec2f2653549d4baaa198cd6487d4f9390c2ad3988eca9305ed8e88d1914a25ec9989e64cc4835646fbd586a8655eed9c6f97cde3357f9f19dbd30f944
|
7
|
+
data.tar.gz: ae31da045f12757e5c1b674adbde8de3fa33cc2fd5093743e17afd97a5c7a92bb9b300b9b8cf077b38160d2ccb4bbfd8ab65c6dba44c06339caecf52bb10a5ac
|
data/lib/zulip/client.rb
CHANGED
@@ -39,6 +39,14 @@ module Zulip
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
def send_public_message(to:, subject:, content:)
|
43
|
+
send_message(type: :stream, to: to, subject: subject, content: content)
|
44
|
+
end
|
45
|
+
|
46
|
+
def send_private_message(to:, content:)
|
47
|
+
send_message(type: :private, to: to, content: content)
|
48
|
+
end
|
49
|
+
|
42
50
|
def register(event_types: [], narrow: [])
|
43
51
|
response = @connection.post do |request|
|
44
52
|
request.url("/api/v1/register")
|
data/lib/zulip/client/version.rb
CHANGED