Skip to content

Commit

Permalink
Rails 8.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
printercu committed Nov 28, 2024
1 parent 225e02a commit 1943332
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- gemfiles/rails_51.gemfile
include:
# ruby 3.x
- ruby: '3.2'
gemfile: gemfiles/rails_80.gemfile
- ruby: '3.2'
gemfile: gemfiles/rails_72.gemfile
- ruby: '3.2'
Expand Down
5 changes: 5 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# frozen_string_literal: true

appraise 'rails-80' do
gem 'actionpack', '~> 8.0.0'
gem 'railties', '~> 8.0.0'
end

appraise 'rails-72' do
gem 'actionpack', '~> 7.2.0'
gem 'railties', '~> 7.2.0'
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

- Rails 8.0 support

# 0.16.4

- Rails 7.2 support
Expand Down
21 changes: 21 additions & 0 deletions gemfiles/rails_80.gemfile
Original file line number Diff line number Diff line change
@@ -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: "../"
3 changes: 2 additions & 1 deletion spec/integration_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
class TestApplication < Rails::Application
config.eager_load = false
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
else
config.action_dispatch.show_exceptions = false
Expand Down
4 changes: 2 additions & 2 deletions telegram-bot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.4'

spec.add_dependency 'actionpack', '>= 4.0', '< 7.3'
spec.add_dependency 'activesupport', '>= 4.0', '< 7.3'
spec.add_dependency 'actionpack', '>= 4.0', '< 8.1'
spec.add_dependency 'activesupport', '>= 4.0', '< 8.1'
spec.add_dependency 'httpclient', '~> 2.7'

spec.add_development_dependency 'bundler', '> 1.16'
Expand Down

0 comments on commit 1943332

Please sign in to comment.