Skip to content

Commit 084ff35

Browse files
authored
Rails 7.2 support (#242)
* Rails 7.2 support * Update to Bot API 7.9
1 parent 533d84c commit 084ff35

File tree

7 files changed

+41
-4
lines changed

7 files changed

+41
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
- gemfiles/rails_51.gemfile
2727
include:
2828
# ruby 3.x
29+
- ruby: '3.2'
30+
gemfile: gemfiles/rails_72.gemfile
2931
- ruby: '3.2'
3032
gemfile: gemfiles/rails_71.gemfile
3133
- ruby: '3.0'

Appraisals

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# frozen_string_literal: true
22

3+
appraise 'rails-72' do
4+
gem 'actionpack', '~> 7.2.0'
5+
gem 'railties', '~> 7.2.0'
6+
end
7+
38
appraise 'rails-71' do
49
gem 'actionpack', '~> 7.1.0'
510
gem 'railties', '~> 7.1.0'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Unreleased
22

3+
- Rails 7.2 support
4+
- Update to Bot API 7.9
5+
36
# 0.16.3
47

58
- Update to Bot API 7.7

gemfiles/rails_72.gemfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "actionpack", "~> 7.2.0"
6+
gem "railties", "~> 7.2.0"
7+
8+
group :development do
9+
gem "appraisal", "~> 2.2"
10+
gem "debug", "~> 1.9.2"
11+
gem "sdoc", "~> 2.0.3"
12+
gem "telegram-bot-types", "~> 0.6.3"
13+
gem "rspec", "~> 3.12.0"
14+
gem "rspec-its", "~> 1.3.0"
15+
gem "rspec-rails", "~> 4.0.2"
16+
gem "rubocop", "~> 1.59.0"
17+
gem "rubocop-rails", "~> 2.23.1"
18+
gem "coveralls", "~> 0.8.23", require: false
19+
end
20+
21+
gemspec path: "../"

lib/telegram/bot/client/api_methods.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generated with bin/fetch-telegram-methods
2-
# Bot API 7.7
2+
# Bot API 7.9
33

44
getUpdates
55
setWebhook
@@ -43,6 +43,8 @@ setChatPermissions
4343
exportChatInviteLink
4444
createChatInviteLink
4545
editChatInviteLink
46+
createChatSubscriptionInviteLink
47+
editChatSubscriptionInviteLink
4648
revokeChatInviteLink
4749
approveChatJoinRequest
4850
declineChatJoinRequest

spec/integration_helper.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
class TestApplication < Rails::Application
1616
config.eager_load = false
1717
config.log_level = :debug
18-
config.action_dispatch.show_exceptions = false
18+
if ActionPack::VERSION::MAJOR >= 7 && ActionPack::VERSION::MINOR >= 2
19+
config.action_dispatch.show_exceptions = :none
20+
else
21+
config.action_dispatch.show_exceptions = false
22+
end
1923
routes.default_url_options = {host: 'test.rpsec'}
2024

2125
telegram_config = {

telegram-bot.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
2525

2626
spec.required_ruby_version = '>= 2.4'
2727

28-
spec.add_dependency 'actionpack', '>= 4.0', '< 7.2'
29-
spec.add_dependency 'activesupport', '>= 4.0', '< 7.2'
28+
spec.add_dependency 'actionpack', '>= 4.0', '< 7.3'
29+
spec.add_dependency 'activesupport', '>= 4.0', '< 7.3'
3030
spec.add_dependency 'httpclient', '~> 2.7'
3131

3232
spec.add_development_dependency 'bundler', '> 1.16'

0 commit comments

Comments
 (0)