Skip to content

Commit

Permalink
test with rails 8
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Nov 1, 2024
1 parent 4318672 commit 08e597b
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ jobs:
gemfile:
- Gemfile
- gemfiles/Gemfile-rails-6-1
- gemfiles/Gemfile-rails-7-2
ruby:
- '3.0'
- 3.1
- 3.2
- 3.3
exclude:
- gemfile: Gemfile
ruby: '3.0'
- gemfile: Gemfile
ruby: 3.1
runs-on: ${{ matrix.os }}
env:
LOKALISE_API_TOKEN: 123abc
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

* Test with Rails 8

## 7.0.1 (10-May-2024)

* Update documentation, minor code tweaks
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gemspec

group :test do
gem 'dotenv', '~> 3.0'
gem 'rails', '~> 7.1'
gem 'rails', '8.0.0.rc2'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.6'
gem 'rubocop', '~> 1.0'
Expand Down
18 changes: 18 additions & 0 deletions gemfiles/Gemfile-rails-7-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
source "https://rubygems.org"

gemspec path: ".."

group :test do
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
gem 'dotenv', '~> 3.0'
gem 'rails', '~> 7.2'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.6'
gem 'rubocop', '~> 1.0'
gem 'rubocop-performance', '~> 1.5'
gem 'rubocop-rspec', '~> 2.6'
gem 'rubocop-rake', '~> 0.6'
gem 'simplecov', '~> 0.22'
gem 'simplecov-lcov', '~> 0.8'
gem 'webmock', '~> 3.14'
end
4 changes: 3 additions & 1 deletion spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ class Application < Rails::Application

if Rails.gem_version < Gem::Version.new('7.0')
config.load_defaults 6.1
else
elsif Rails.gem_version < Gem::Version.new('8.0')
config.load_defaults 7.0
else
config.load_defaults 8.0
end
end
end

0 comments on commit 08e597b

Please sign in to comment.