Skip to content

Commit

Permalink
Merge pull request #46 from SwitchDreams/better-support-for-rails-8
Browse files Browse the repository at this point in the history
Better support for rails 8
  • Loading branch information
PedroAugustoRamalhoDuarte authored Dec 29, 2024
2 parents dfe8317 + b757134 commit 205f5eb
Show file tree
Hide file tree
Showing 12 changed files with 208 additions and 194 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI
env:
RUBY_VERSION: 3.3.4
RUBY_VERSION: 3.4.1

on:
pull_request:
Expand All @@ -26,8 +26,14 @@ jobs:
- name: Check code
run: rubocop
rspec:
strategy:
fail-fast: false
matrix:
rails: [ "7.2", "8.0" ]
name: RSpec
runs-on: ubuntu-latest
env:
RAILS_VERSION: ${{ matrix.rails }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ inherit_gem:

AllCops:
NewCops: enable
TargetRubyVersion: 2.6
TargetRubyVersion: 3.4
Exclude:
- 'tmp/**/*'
- '**/*/bundle'
Expand Down
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ source "https://rubygems.org"
# Specify your gem's dependencies in rest-api-generator.gemspec
gemspec

rails_version = ENV["RAILS_VERSION"] || "8.0"
gem "rails", "~> #{rails_version}"

gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"
Expand All @@ -15,6 +18,6 @@ gem "sqlite3"

# Serializers

gem "panko_serializer"
gem "panko_serializer", "~> 0.8.3"

gem "active_model_serializers", "~> 0.10.0"
Loading

0 comments on commit 205f5eb

Please sign in to comment.