telegram-bot-ruby 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/telegram/bot/api.rb +2 -2
- data/lib/telegram/bot/client.rb +1 -0
- data/lib/telegram/bot/configuration.rb +3 -3
- data/lib/telegram/bot/version.rb +1 -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: 7bca107deda1051398ddcbc2e07373d9391b1bd28ca076d7610d164bd80ff24b
|
4
|
+
data.tar.gz: 70d72be64d6706cedc45c125d439c15502c8b7f9d75821646455b0a30466fbc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a436f947e37fdf9642e48208d0dadae058499c9b9b99994819459be7b2a6819139c4c8f1651eb50fc52e8bcbe601417e0f8f7d1929d5420c36d50a6f39879024
|
7
|
+
data.tar.gz: 2bee228283223aa1c6bdeb29ffe54e72c2c7fe39b43a3e60f158d20e1fdeace5e68a53a02cafde29b91fee3e622b7ca6a9d8587599f657925cf25912c26676a9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.23.0
|
4
|
+
|
5
|
+
- Rename `Telegram::Bot.configuration` options:
|
6
|
+
- `timeout` to `connection_timeout`
|
7
|
+
- `open_timeout` to `connection_open_timeout`
|
8
|
+
- Fix issue with missing default value for long-polling timeout
|
9
|
+
|
3
10
|
## 0.21.0
|
4
11
|
|
5
12
|
- Implement [Bot API 6.1](https://core.telegram.org/bots/api#june-20-2022)
|
data/lib/telegram/bot/api.rb
CHANGED
@@ -99,8 +99,8 @@ module Telegram
|
|
99
99
|
faraday.request :multipart
|
100
100
|
faraday.request :url_encoded
|
101
101
|
faraday.adapter Telegram::Bot.configuration.adapter
|
102
|
-
faraday.options.timeout = Telegram::Bot.configuration.
|
103
|
-
faraday.options.open_timeout = Telegram::Bot.configuration.
|
102
|
+
faraday.options.timeout = Telegram::Bot.configuration.connection_timeout
|
103
|
+
faraday.options.open_timeout = Telegram::Bot.configuration.connection_open_timeout
|
104
104
|
end
|
105
105
|
end
|
106
106
|
end
|
data/lib/telegram/bot/client.rb
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
module Telegram
|
4
4
|
module Bot
|
5
5
|
class Configuration
|
6
|
-
attr_accessor :adapter, :
|
6
|
+
attr_accessor :adapter, :connection_open_timeout, :connection_timeout
|
7
7
|
|
8
8
|
def initialize
|
9
9
|
@adapter = Faraday.default_adapter
|
10
|
-
@
|
11
|
-
@
|
10
|
+
@connection_open_timeout = 20
|
11
|
+
@connection_timeout = 20
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/lib/telegram/bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegram-bot-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tipugin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|