зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
Сравнить коммиты
5 Коммитов
| Автор | SHA1 | Дата | |
|---|---|---|---|
|
|
a66e18a84f | ||
|
|
b8ebc2d491 | ||
|
|
343e7179e2 | ||
|
|
66ad451d74 | ||
|
|
14370bd8de |
2
.github/workflows/ci.yml
поставляемый
2
.github/workflows/ci.yml
поставляемый
@@ -27,7 +27,7 @@ jobs:
|
||||
include:
|
||||
# ruby 3.x
|
||||
- ruby: '3.2'
|
||||
gemfile: gemfiles/rails_80.gemfile
|
||||
gemfile: gemfiles/rails_81.gemfile
|
||||
- ruby: '3.2'
|
||||
gemfile: gemfiles/rails_72.gemfile
|
||||
- ruby: '3.2'
|
||||
|
||||
@@ -5,6 +5,11 @@ appraise 'rails-80' do
|
||||
gem 'railties', '~> 8.0.0'
|
||||
end
|
||||
|
||||
appraise 'rails-81' do
|
||||
gem 'actionpack', '~> 8.1.0'
|
||||
gem 'railties', '~> 8.1.0'
|
||||
end
|
||||
|
||||
appraise 'rails-72' do
|
||||
gem 'actionpack', '~> 7.2.0'
|
||||
gem 'railties', '~> 7.2.0'
|
||||
|
||||
@@ -42,7 +42,6 @@ API_METHODS_FILE = File.expand_path('../lib/telegram/bot/client/api_methods.txt'
|
||||
File.write(API_METHODS_FILE, result_txt)
|
||||
puts '', "Updated #{API_METHODS_FILE}"
|
||||
|
||||
|
||||
puts '', 'Payload types:'
|
||||
update_tbody = doc.css('tbody').
|
||||
find { |tbody| tbody.css('td').any? { |td| td.text == 'update_id' } }
|
||||
|
||||
21
gemfiles/rails_81.gemfile
Обычный файл
21
gemfiles/rails_81.gemfile
Обычный файл
@@ -0,0 +1,21 @@
|
||||
# This file was generated by Appraisal
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "actionpack", "~> 8.1.0"
|
||||
gem "railties", "~> 8.1.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: "../"
|
||||
@@ -47,7 +47,7 @@ module Telegram
|
||||
as: RoutesHelper.route_name_for_bot(bot),
|
||||
format: false,
|
||||
}.merge!(options)
|
||||
post(path || "telegram/#{bot.token && RoutesHelper.token_hash(bot.token)}", params)
|
||||
post(path || "telegram/#{bot.token && RoutesHelper.token_hash(bot.token)}", **params)
|
||||
UpdatesPoller.add(bot, controller) if Telegram.bot_poller_mode?
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,9 +8,7 @@ module Telegram
|
||||
module Instrumentation
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
config_accessor :logger
|
||||
end
|
||||
include AbstractController::Logger
|
||||
|
||||
class << self
|
||||
def instrument(action, *args, &block)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'logger'
|
||||
require 'pathname'
|
||||
require 'debug'
|
||||
require 'rspec/its'
|
||||
|
||||
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
|
||||
|
||||
spec.required_ruby_version = '>= 2.4'
|
||||
|
||||
spec.add_dependency 'actionpack', '>= 4.0', '< 8.1'
|
||||
spec.add_dependency 'activesupport', '>= 4.0', '< 8.1'
|
||||
spec.add_dependency 'actionpack', '>= 4.0'
|
||||
spec.add_dependency 'activesupport', '>= 4.0'
|
||||
spec.add_dependency 'httpclient', '~> 2.7'
|
||||
|
||||
spec.add_development_dependency 'bundler', '> 1.16'
|
||||
|
||||
Ссылка в новой задаче
Block a user