khl 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: ed901cab84178a2961285b975bf703bb034b998e0d70e7e8c8e06c5f27187137
4
- data.tar.gz: 0447d12135db7697c59aadfd7f358e64982db782af00c2fdb90c4ea1bb2123a7
3
+ metadata.gz: 7c3438ba02ff5739b31b529cd0b1c217f91c4f24dc45a0692c267fa4bce4991f
4
+ data.tar.gz: 7785960928430e73a7ab9c8091868bc7f951884ff1a0ccd680d5fc836a5fd9ba
5
5
  SHA512:
6
- metadata.gz: 2b71ec8d6a9f2e46c412a0552f2f6484d37a273ce141386ea9b94c8756ab54d15774d857cc42a25f1b4ea6be32b1a5e03d4544d04b1911dfc121778bed1ef4c5
7
- data.tar.gz: 97ee22265dd77c70c3d432418e2a89410b2eb14984a81df83a08206fe1344f6c3479090afcb488e8f43bf9ba363ffaa8c33ff8dbe8804b3ec6932fdd4bb0e05e
6
+ metadata.gz: 92d7bfdfd6e71ca3e6f082badd5c54072d47084b0befc4dfdf628e90d02b637a19b4522055127645bffc504018266b20701cc8ca6b0f345369d7171b2f3eee54
7
+ data.tar.gz: 0a30f6b6f64cf0c16d3e7f353ee558f4f95d98ed3377eaa4addac0b6c3c78873227aa6f5d4e8b4a7ec41d5120139c56c1b0abdaf5bb5e8c6664e1873cc354ed6
data/CHANGELOG.md CHANGED
@@ -3,3 +3,7 @@
3
3
  * Add 开黑啦 HTTP API
4
4
  * Add 开黑啦 WebSocket API
5
5
  * Add GitHub CI
6
+
7
+ ### 1.0.1 - 2022-03-29
8
+
9
+ * Fix params type
data/README.md CHANGED
@@ -32,11 +32,11 @@ require "khl"
32
32
  token = "your_bot_token"
33
33
 
34
34
  # Call HTTP API
35
- http_client = KHL::HTTP::Client.new(token)
35
+ http_client = KHL::HTTP::Client.new(token: token)
36
36
  http_client.guild.list # Call guild/list API
37
37
 
38
38
  # Connect to WebSocket API
39
- ws_client = KHL::WebSocket::Client.new(token)
39
+ ws_client = KHL::WebSocket::Client.new(token: token)
40
40
  Thread.new { ws_client.run } # Run WebSocket client
41
41
  ws_clinet.state # Get current state
42
42
  ws_client.messages.pop # Get message from queue
data/lib/khl/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KHL
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
@@ -19,7 +19,8 @@ module KHL
19
19
  class Client
20
20
  attr_reader :config, :url, :messages, :state
21
21
 
22
- # @param config [String] :token Bot token
22
+ # @param config [Hash] :config Config
23
+ # @option config [String] :token Bot token (required)
23
24
  # @option config [String] :token_type Token type
24
25
  # @option config [String] :language Language
25
26
  # @option config [Boolean] :compress Compress
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: khl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dounx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2022-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport