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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8030abc5a162f5722c34de4e39f57dfd7f772799b52c6c9f343222bd096ba13
4
- data.tar.gz: 1b76a2b67b4843d2441ffed6f2b464fafee7dda4ebe2479517574bc6bd58779e
3
+ metadata.gz: 7bca107deda1051398ddcbc2e07373d9391b1bd28ca076d7610d164bd80ff24b
4
+ data.tar.gz: 70d72be64d6706cedc45c125d439c15502c8b7f9d75821646455b0a30466fbc6
5
5
  SHA512:
6
- metadata.gz: be56c3408f95d8767939d973fd1b91c0cd990ec4c7119c5d868e3af5e6662a5f884109006713f0eabf231fa7e0816c85b221574bf12f9439a06c368dabc96943
7
- data.tar.gz: 2737d5f9fb49fbb08343b632eaab7a7e61f25c27665424c25d4a4e54e1986ddc82b627a7018565da35a65968bc42e2b7098da0b5c7702db2fc10b8f459a233ed
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)
@@ -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.timeout
103
- faraday.options.open_timeout = Telegram::Bot.configuration.open_timeout
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
@@ -52,6 +52,7 @@ module Telegram
52
52
  def default_options
53
53
  {
54
54
  offset: 0,
55
+ timeout: 20,
55
56
  logger: NullLogger.new,
56
57
  url: 'https://api.telegram.org',
57
58
  environment: :production
@@ -3,12 +3,12 @@
3
3
  module Telegram
4
4
  module Bot
5
5
  class Configuration
6
- attr_accessor :adapter, :open_timeout, :timeout
6
+ attr_accessor :adapter, :connection_open_timeout, :connection_timeout
7
7
 
8
8
  def initialize
9
9
  @adapter = Faraday.default_adapter
10
- @open_timeout = 20
11
- @timeout = 20
10
+ @connection_open_timeout = 20
11
+ @connection_timeout = 20
12
12
  end
13
13
  end
14
14
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Telegram
4
4
  module Bot
5
- VERSION = '0.22.0'
5
+ VERSION = '0.23.0'
6
6
  end
7
7
  end
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.22.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-19 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector