telegram-bot-ruby 0.19.0 → 0.20.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: f4a3f55636b586f9c0c40a020c0eec4686fe4c664946dcb560422c3082d82b6c
4
- data.tar.gz: c44b6c28251b3183e5b3bb7256851d0b92f638bcc24b2fd4a188c21aa28beeca
3
+ metadata.gz: dfcdb5381255185948b6a8ce3721c2b7db3af41c75efdb94f6dc23bdbf84ee03
4
+ data.tar.gz: 5d1091fcb432c117832d906cb841c973bc402e5282485d44eae419dfee99f2d4
5
5
  SHA512:
6
- metadata.gz: 31c46eeb60c9c176ba58ba42811968e5c7b7db40849024f1626147f482c06a4e884843ed228a0a8391feeb69682521bec80d92ebac5fdb531dbadaa386193239
7
- data.tar.gz: e3ec13011270299788f4e3e0329c98f9186621b669961e8c669d82a974b1579bf023f70f643071b4eefd5ceec69ebede0ff733cc935e207a2bcaaad9417b9b2e
6
+ metadata.gz: 44face7b6f9889dc3273ebd92608f9776eed7da5678cf03ee6b1f1b9fef06138ff0be373b67779e56c81732dfd0cb504763d43facfbebfc9efe352d3a0e35787
7
+ data.tar.gz: 36056a42058dbf01b1796291998cf5a920f571ad589e49d4ff3b8312e16b1b4b28cb0c992138d42d29d752ecb9e247528bc2c5c8bccd7881c75b7b03c18855eb
data/CHANGELOG.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.0
4
+
5
+ - Update `faraday` up to `2.0`
6
+
3
7
  ## 0.19.0
4
8
 
5
9
  - Implement [Bot API 6.0](https://core.telegram.org/bots/api-changelog#april-16-2022)
6
- - Update rubocop
10
+ - Update `rubocop` up to `1.27`
7
11
 
8
12
  ## 0.18.0
9
13
 
@@ -24,7 +24,9 @@ module Telegram
24
24
  deleteMyCommands setStickerSetThumb logOut close copyMessage
25
25
  createChatInviteLink editChatInviteLink revokeChatInviteLink
26
26
  approveChatJoinRequest declineChatJoinRequest banChatSenderChat
27
- unbanChatSenderChat
27
+ unbanChatSenderChat answerWebAppQuery setChatMenuButton
28
+ getChatMenuButton setMyDefaultAdministratorRights
29
+ getMyDefaultAdministratorRights
28
30
  ].freeze
29
31
 
30
32
  attr_reader :token, :url
@@ -60,7 +60,7 @@ module Telegram
60
60
  def log_incoming_message(message)
61
61
  uid = message.respond_to?(:from) && message.from ? message.from.id : nil
62
62
  logger.info(
63
- format('Incoming message: text="%<text>s" uid=%<uid>s', message: message, uid: uid)
63
+ format('Incoming message: text="%<message>s" uid=%<uid>s', message: message, uid: uid)
64
64
  )
65
65
  end
66
66
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Telegram
4
4
  module Bot
5
- VERSION = '0.19.0'
5
+ VERSION = '0.20.0'
6
6
  end
7
7
  end
data/lib/telegram/bot.rb CHANGED
@@ -4,6 +4,7 @@ require 'virtus'
4
4
  require 'logger'
5
5
  require 'json'
6
6
  require 'faraday'
7
+ require 'faraday/multipart'
7
8
 
8
9
  require 'telegram/bot/types'
9
10
  require 'telegram/bot/exceptions'
@@ -20,7 +20,8 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_dependency 'dry-inflector'
23
- spec.add_dependency 'faraday', '~> 1.0'
23
+ spec.add_dependency 'faraday', '~> 2.0'
24
+ spec.add_dependency 'faraday-multipart', '~> 1.0'
24
25
  spec.add_dependency 'virtus', '~> 2.0'
25
26
 
26
27
  spec.add_development_dependency 'pry'
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.19.0
4
+ version: 0.20.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-04-19 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector
@@ -26,6 +26,20 @@ dependencies:
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday-multipart
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
@@ -306,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
320
  - !ruby/object:Gem::Version
307
321
  version: '0'
308
322
  requirements: []
309
- rubygems_version: 3.3.3
323
+ rubygems_version: 3.3.7
310
324
  signing_key:
311
325
  specification_version: 4
312
326
  summary: Ruby wrapper for Telegram's Bot API