зеркало из
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
|
# Unreleased
|
||||||
|
|
||||||
|
# 0.16.6
|
||||||
|
|
||||||
|
- Fix poller rake task for Rails 8.0
|
||||||
|
|
||||||
# 0.16.5
|
# 0.16.5
|
||||||
|
|
||||||
- Rails 8.0 support
|
- Rails 8.0 support
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ namespace :telegram do
|
|||||||
Rails.logger.extend ActiveSupport::Logger.broadcast console
|
Rails.logger.extend ActiveSupport::Logger.broadcast console
|
||||||
end
|
end
|
||||||
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)
|
Telegram::Bot::UpdatesPoller.start(ENV['BOT']&.to_sym || :default)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
module Telegram
|
module Telegram
|
||||||
module Bot
|
module Bot
|
||||||
VERSION = '0.16.5'
|
VERSION = '0.16.6'
|
||||||
|
|
||||||
def self.gem_version
|
def self.gem_version
|
||||||
Gem::Version.new VERSION
|
Gem::Version.new VERSION
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user