зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
Fix poller rake task for Rails 8.0
Этот коммит содержится в:
@@ -1,5 +1,9 @@
|
||||
# Unreleased
|
||||
|
||||
# 0.16.6
|
||||
|
||||
- Fix poller rake task for Rails 8.0
|
||||
|
||||
# 0.16.5
|
||||
|
||||
- Rails 8.0 support
|
||||
|
||||
@@ -15,6 +15,9 @@ namespace :telegram do
|
||||
Rails.logger.extend ActiveSupport::Logger.broadcast console
|
||||
end
|
||||
end
|
||||
# Routes are not loaded by default in Rails >= 8.0.
|
||||
# Load them explicitly to identify a controller for a bot.
|
||||
Rails.application.try(:reload_routes_unless_loaded)
|
||||
Telegram::Bot::UpdatesPoller.start(ENV['BOT']&.to_sym || :default)
|
||||
end
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
module Telegram
|
||||
module Bot
|
||||
VERSION = '0.16.5'
|
||||
VERSION = '0.16.6'
|
||||
|
||||
def self.gem_version
|
||||
Gem::Version.new VERSION
|
||||
|
||||
Ссылка в новой задаче
Block a user