Skip to content

Commit

Permalink
Rails 7.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jprosevear committed Aug 11, 2024
1 parent a58b465 commit bb4d222
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 11 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: build
on:
push:
branches:
- 'master'
- 'development'
- "master"
- "development"
pull_request:
branches:
- '**'
- '!images'
- "**"
- "!images"

jobs:
build:
Expand All @@ -24,6 +24,7 @@ jobs:
- gemfiles/Gemfile.rails-6.1
- gemfiles/Gemfile.rails-7.0
- gemfiles/Gemfile.rails-7.1
- gemfiles/Gemfile.rails-7.2
orm:
- active_record
- mongoid
Expand All @@ -44,22 +45,24 @@ jobs:
ruby-version: 3.1.6
- gemfile: gemfiles/Gemfile.rails-7.1
ruby-version: 3.2.4
- gemfile: gemfiles/Gemfile.rails-7.2
ruby-version: 3.3.4
- gemfile: Gemfile
ruby-version: 3.3.3
ruby-version: 3.3.4
orm: active_record
test-db: mysql
- gemfile: Gemfile
ruby-version: 3.3.3
ruby-version: 3.3.4
orm: active_record
test-db: postgresql
- gemfile: Gemfile
ruby-version: 3.3.3
ruby-version: 3.3.4
orm: mongoid
test-db: mongodb
- gemfile: Gemfile
ruby-version: head
orm: active_record
allow_failures: 'true'
allow_failures: "true"
exclude:
- gemfile: gemfiles/Gemfile.rails-6.0
orm: dynamoid
Expand All @@ -69,6 +72,8 @@ jobs:
orm: dynamoid
- gemfile: gemfiles/Gemfile.rails-7.1
orm: dynamoid
- gemfile: gemfiles/Gemfile.rails-7.2
orm: dynamoid

env:
RAILS_ENV: test
Expand Down
6 changes: 4 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ source 'https://rubygems.org'

gemspec

gem 'rails', '~> 7.1.0'
gem 'rails', '~> 7.2.0'

group :production do
gem 'sprockets-rails'
gem 'puma'
gem 'pg'
gem 'devise'
gem 'devise_token_auth'
# gem 'devise_token_auth'
# https://github.com/lynndylanhurley/devise_token_auth/pull/1632
gem 'devise_token_auth', git: 'https://github.com/lynndylanhurley/devise_token_auth.git'
end

group :development do
Expand Down
2 changes: 1 addition & 1 deletion activity_notification.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.required_ruby_version = '>= 2.1.0'

s.add_dependency 'railties', '>= 5.0.0', '< 7.2'
s.add_dependency 'railties', '>= 5.0.0', '< 8'
s.add_dependency 'i18n', '>= 0.5.0'
s.add_dependency 'jquery-rails', '>= 3.1.1'
s.add_dependency 'swagger-blocks', '>= 3.0.0'
Expand Down
28 changes: 28 additions & 0 deletions gemfiles/Gemfile.rails-7.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
source 'https://rubygems.org'

gemspec path: '../'

gem 'rails', '~> 7.2.0'
gem 'sprockets-rails'

group :production do
# https://github.com/lynndylanhurley/devise_token_auth/pull/1632
gem 'devise_token_auth', git: 'https://github.com/lynndylanhurley/devise_token_auth.git'
end

group :development do
gem 'bullet'
gem 'rack-cors'
end

group :test do
gem 'rails-controller-testing'
gem 'ammeter'
gem 'timecop'
gem 'committee'
gem 'committee-rails', '< 0.6'
# gem 'coveralls', require: false
gem 'coveralls_reborn', require: false
end

gem 'dotenv-rails', groups: [:development, :test]

0 comments on commit bb4d222

Please sign in to comment.