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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2156d1fd144e2ea7808de4108f0973e638a28db4
4
- data.tar.gz: 72a36e82a6d60df942a29424ae9b8c4bd863049b
3
+ metadata.gz: f5b953a20f5dffce5b8a1badba3689736cc29b20
4
+ data.tar.gz: bc5a528c9c6e764d0ad90c41e090a69371fe82da
5
5
  SHA512:
6
- metadata.gz: 0cd3179c5dfe9505d1a47b58154e290fcb91998d43664de65e7f185a6451edf881e89701b7b757f05ef0f54033427309da8ebfe28cc42681c94888fe6cb6593c
7
- data.tar.gz: d41cfdf494f5f40b9773feee043d3848ffb2cae8ee22471cd114952bc536805129aa6d108fef973902dc88991977021b1d853590dcfd2a9fd42256fd1f253f2e
6
+ metadata.gz: a84e8f5ec2f2653549d4baaa198cd6487d4f9390c2ad3988eca9305ed8e88d1914a25ec9989e64cc4835646fbd586a8655eed9c6f97cde3357f9f19dbd30f944
7
+ data.tar.gz: ae31da045f12757e5c1b674adbde8de3fa33cc2fd5093743e17afd97a5c7a92bb9b300b9b8cf077b38160d2ccb4bbfd8ab65c6dba44c06339caecf52bb10a5ac
@@ -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")
@@ -1,5 +1,5 @@
1
1
  module Zulip
2
2
  class Client
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zulip-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - okkez