telegram-bot-ruby 0.3.3 → 0.3.4

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: 0736511a6c4fa9c27902fe5b18330aee0a90c733
4
- data.tar.gz: af1edd744e538db9638c1a35904e4e12cf475e8e
3
+ metadata.gz: c0be0d9f9b09686f972ed3bbbd2647e93dd757a4
4
+ data.tar.gz: 0b0508dd065cb45c221d0b77354e8881a93c876b
5
5
  SHA512:
6
- metadata.gz: 829e4c7f85a03cb3e929dd3b930fdba8f2401160f1ebc8f6f6ac4fa40966106b7b557285338f375345c7f1ba49bedc630f65a271d674a5aa5e6de8419c64bf30
7
- data.tar.gz: 592a7fa7785301d046c699111d785ba100a359327ca3cb10733770c77e7c893eb3e2cfead22526d9f2f2572f7a58c51bc0ea3a99314be69e6286a6bb642c80a9
6
+ metadata.gz: b36eac94ac838a19e51e2735a49274b994e0fc1b998050f9009ad3cffd43809cadf4304529d6c0893a905e58cefa532d0ee6d85de79dc3c89c30c7259c85c4cd
7
+ data.tar.gz: 0d4298c22bf1bdf9e58ae0af41b2573334dc8893e0b708dd2c1c64906b41c5faadce5f7a9d89f688ed90598259a9a87d9d1172441e5fc80f14d86203c8612a91
data/README.md CHANGED
@@ -125,6 +125,10 @@ end
125
125
  - Telegram's user id (required)
126
126
  - hash of additional properties (optional)
127
127
 
128
+ ## Connection pool size
129
+
130
+ Sometimes you need to do some heavy work in another thread and send response from where.
131
+
128
132
  ## Contributing
129
133
 
130
134
  1. Fork it
@@ -13,11 +13,12 @@ module Telegram
13
13
  Telegram::Bot::Types::ReplyKeyboardHide,
14
14
  Telegram::Bot::Types::ForceReply
15
15
  ].freeze
16
+ POOL_SIZE = ENV.fetch('TELEGRAM_BOT_POOL_SIZE', 1).to_i.freeze
16
17
 
17
18
  attr_reader :token
18
19
 
19
20
  base_uri 'https://api.telegram.org'
20
- persistent_connection_adapter
21
+ persistent_connection_adapter pool_size: POOL_SIZE
21
22
 
22
23
  def initialize(token)
23
24
  @token = token
@@ -1,5 +1,5 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.3.3'
3
+ VERSION = '0.3.4'
4
4
  end
5
5
  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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tipugin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty