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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/khl/version.rb +1 -1
- data/lib/khl/web_socket/client.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c3438ba02ff5739b31b529cd0b1c217f91c4f24dc45a0692c267fa4bce4991f
|
4
|
+
data.tar.gz: 7785960928430e73a7ab9c8091868bc7f951884ff1a0ccd680d5fc836a5fd9ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92d7bfdfd6e71ca3e6f082badd5c54072d47084b0befc4dfdf628e90d02b637a19b4522055127645bffc504018266b20701cc8ca6b0f345369d7171b2f3eee54
|
7
|
+
data.tar.gz: 0a30f6b6f64cf0c16d3e7f353ee558f4f95d98ed3377eaa4addac0b6c3c78873227aa6f5d4e8b4a7ec41d5120139c56c1b0abdaf5bb5e8c6664e1873cc354ed6
|
data/CHANGELOG.md
CHANGED
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
@@ -19,7 +19,8 @@ module KHL
|
|
19
19
|
class Client
|
20
20
|
attr_reader :config, :url, :messages, :state
|
21
21
|
|
22
|
-
# @param config [
|
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.
|
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-
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|