зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
коммит произвёл
GitHub
родитель
225e02abb4
Коммит
42b98dbf40
2
.github/workflows/ci.yml
поставляемый
2
.github/workflows/ci.yml
поставляемый
@@ -26,6 +26,8 @@ jobs:
|
|||||||
- gemfiles/rails_51.gemfile
|
- gemfiles/rails_51.gemfile
|
||||||
include:
|
include:
|
||||||
# ruby 3.x
|
# ruby 3.x
|
||||||
|
- ruby: '3.2'
|
||||||
|
gemfile: gemfiles/rails_80.gemfile
|
||||||
- ruby: '3.2'
|
- ruby: '3.2'
|
||||||
gemfile: gemfiles/rails_72.gemfile
|
gemfile: gemfiles/rails_72.gemfile
|
||||||
- ruby: '3.2'
|
- ruby: '3.2'
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
appraise 'rails-80' do
|
||||||
|
gem 'actionpack', '~> 8.0.0'
|
||||||
|
gem 'railties', '~> 8.0.0'
|
||||||
|
end
|
||||||
|
|
||||||
appraise 'rails-72' do
|
appraise 'rails-72' do
|
||||||
gem 'actionpack', '~> 7.2.0'
|
gem 'actionpack', '~> 7.2.0'
|
||||||
gem 'railties', '~> 7.2.0'
|
gem 'railties', '~> 7.2.0'
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- Rails 8.0 support
|
||||||
|
- Update to Bot API 8.0
|
||||||
|
|
||||||
# 0.16.4
|
# 0.16.4
|
||||||
|
|
||||||
- Rails 7.2 support
|
- Rails 7.2 support
|
||||||
|
|||||||
21
gemfiles/rails_80.gemfile
Обычный файл
21
gemfiles/rails_80.gemfile
Обычный файл
@@ -0,0 +1,21 @@
|
|||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "actionpack", "~> 8.0.0"
|
||||||
|
gem "railties", "~> 8.0.0"
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
gem "appraisal", "~> 2.2"
|
||||||
|
gem "debug", "~> 1.9.2"
|
||||||
|
gem "sdoc", "~> 2.0.3"
|
||||||
|
gem "telegram-bot-types", "~> 0.6.3"
|
||||||
|
gem "rspec", "~> 3.12.0"
|
||||||
|
gem "rspec-its", "~> 1.3.0"
|
||||||
|
gem "rspec-rails", "~> 4.0.2"
|
||||||
|
gem "rubocop", "~> 1.59.0"
|
||||||
|
gem "rubocop-rails", "~> 2.23.1"
|
||||||
|
gem "coveralls", "~> 0.8.23", require: false
|
||||||
|
end
|
||||||
|
|
||||||
|
gemspec path: "../"
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# Generated with bin/fetch-telegram-methods
|
# Generated with bin/fetch-telegram-methods
|
||||||
# Bot API 7.9
|
# Bot API 8.0
|
||||||
|
|
||||||
getUpdates
|
getUpdates
|
||||||
setWebhook
|
setWebhook
|
||||||
@@ -31,6 +31,7 @@ sendDice
|
|||||||
sendChatAction
|
sendChatAction
|
||||||
setMessageReaction
|
setMessageReaction
|
||||||
getUserProfilePhotos
|
getUserProfilePhotos
|
||||||
|
setUserEmojiStatus
|
||||||
getFile
|
getFile
|
||||||
banChatMember
|
banChatMember
|
||||||
unbanChatMember
|
unbanChatMember
|
||||||
@@ -118,9 +119,12 @@ setStickerSetTitle
|
|||||||
setStickerSetThumbnail
|
setStickerSetThumbnail
|
||||||
setCustomEmojiStickerSetThumbnail
|
setCustomEmojiStickerSetThumbnail
|
||||||
deleteStickerSet
|
deleteStickerSet
|
||||||
|
getAvailableGifts
|
||||||
|
sendGift
|
||||||
|
|
||||||
answerInlineQuery
|
answerInlineQuery
|
||||||
answerWebAppQuery
|
answerWebAppQuery
|
||||||
|
savePreparedInlineMessage
|
||||||
|
|
||||||
sendInvoice
|
sendInvoice
|
||||||
createInvoiceLink
|
createInvoiceLink
|
||||||
@@ -128,6 +132,7 @@ answerShippingQuery
|
|||||||
answerPreCheckoutQuery
|
answerPreCheckoutQuery
|
||||||
getStarTransactions
|
getStarTransactions
|
||||||
refundStarPayment
|
refundStarPayment
|
||||||
|
editUserStarSubscription
|
||||||
|
|
||||||
setPassportDataErrors
|
setPassportDataErrors
|
||||||
|
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ module Telegram
|
|||||||
callback_query
|
callback_query
|
||||||
shipping_query
|
shipping_query
|
||||||
pre_checkout_query
|
pre_checkout_query
|
||||||
|
purchased_paid_media
|
||||||
poll
|
poll
|
||||||
poll_answer
|
poll_answer
|
||||||
my_chat_member
|
my_chat_member
|
||||||
@@ -112,7 +113,6 @@ module Telegram
|
|||||||
chat_join_request
|
chat_join_request
|
||||||
chat_boost
|
chat_boost
|
||||||
removed_chat_boost
|
removed_chat_boost
|
||||||
pre_checkout_query
|
|
||||||
].freeze)
|
].freeze)
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ ENV['RAILS_ENV'] = 'test'
|
|||||||
class TestApplication < Rails::Application
|
class TestApplication < Rails::Application
|
||||||
config.eager_load = false
|
config.eager_load = false
|
||||||
config.log_level = :debug
|
config.log_level = :debug
|
||||||
if ActionPack::VERSION::MAJOR >= 7 && ActionPack::VERSION::MINOR >= 2
|
if (ActionPack::VERSION::MAJOR >= 8) ||
|
||||||
|
(ActionPack::VERSION::MAJOR == 7 && ActionPack::VERSION::MINOR >= 2)
|
||||||
config.action_dispatch.show_exceptions = :none
|
config.action_dispatch.show_exceptions = :none
|
||||||
else
|
else
|
||||||
config.action_dispatch.show_exceptions = false
|
config.action_dispatch.show_exceptions = false
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ RSpec.describe Telegram::Bot::UpdatesController::TypedUpdate do
|
|||||||
message_reaction_count
|
message_reaction_count
|
||||||
chat_boost
|
chat_boost
|
||||||
removed_chat_boost
|
removed_chat_boost
|
||||||
|
purchased_paid_media
|
||||||
pre_checkout_query
|
pre_checkout_query
|
||||||
]).
|
]).
|
||||||
map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.
|
map { |x| [x, Telegram::Bot::Types.const_get(x.camelize)] }.to_h.
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
|
|||||||
|
|
||||||
spec.required_ruby_version = '>= 2.4'
|
spec.required_ruby_version = '>= 2.4'
|
||||||
|
|
||||||
spec.add_dependency 'actionpack', '>= 4.0', '< 7.3'
|
spec.add_dependency 'actionpack', '>= 4.0', '< 8.1'
|
||||||
spec.add_dependency 'activesupport', '>= 4.0', '< 7.3'
|
spec.add_dependency 'activesupport', '>= 4.0', '< 8.1'
|
||||||
spec.add_dependency 'httpclient', '~> 2.7'
|
spec.add_dependency 'httpclient', '~> 2.7'
|
||||||
|
|
||||||
spec.add_development_dependency 'bundler', '> 1.16'
|
spec.add_development_dependency 'bundler', '> 1.16'
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user