Skip to content

Commit

Permalink
Merge pull request #2 from fursich/feature/rails-7.x
Browse files Browse the repository at this point in the history
test against ruby 3.3 / rails 7.x
  • Loading branch information
fursich authored Sep 4, 2024
2 parents d7c2f52 + afcdeb3 commit 4518c0b
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 28 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: ci

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
ruby_version: ['3.3', '3.2']
rails_version: ['7.2', '7.1', '7.0', '6.1']
env:
BUNDLE_GEMFILE: gemfiles/Gemfile.rails_${{ matrix.rails_version }}

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
rubygems: 'latest'
- run: bundle exec rake spec
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions dumped_railers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'rake', '~> 12.3.3'
spec.add_development_dependency 'rspec', '~> 3.10'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'sqlite3'
spec.add_development_dependency 'activerecord', '>= 5.2'
spec.add_development_dependency 'database_cleaner-active_record', '~> 1.8'
spec.add_development_dependency 'activerecord'
spec.add_development_dependency 'database_cleaner-active_record', '~> 2.0'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'pry-byebug'
spec.add_development_dependency 'pry-doc'
Expand Down
5 changes: 3 additions & 2 deletions gemfiles/Gemfile.rails_6.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source "https://rubygems.org"
source 'https://rubygems.org'

# Specify your gem's dependencies in dumped_railers.gemspec
gem 'activerecord', '6.1.1'
gem 'activerecord', '6.1.7'
gem 'sqlite3', '~> 1.5'

gemspec path: '../'
5 changes: 3 additions & 2 deletions gemfiles/Gemfile.rails_5.2 → gemfiles/Gemfile.rails_7.0
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source "https://rubygems.org"
source 'https://rubygems.org'

# Specify your gem's dependencies in dumped_railers.gemspec
gem 'activerecord', '5.2.4.4'
gem 'activerecord', '7.0.8'
gem 'sqlite3', '~> 1.7'

gemspec path: '../'
7 changes: 7 additions & 0 deletions gemfiles/Gemfile.rails_7.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in dumped_railers.gemspec
gem 'activerecord', '~> 7.1.0'
gem 'sqlite3', '~> 1.7'

gemspec path: '../'
5 changes: 3 additions & 2 deletions gemfiles/Gemfile.rails_6.0 → gemfiles/Gemfile.rails_7.2
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
source "https://rubygems.org"
source 'https://rubygems.org'

# Specify your gem's dependencies in dumped_railers.gemspec
gem 'activerecord', '6.0.3.4'
gem 'activerecord', '7.2.1'
gem 'sqlite3', '~> 1.7'

gemspec path: '../'
2 changes: 2 additions & 0 deletions lib/dumped_railers/configuration.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'forwardable'
require 'ostruct'
module DumpedRailers
module Configuration
extend Forwardable
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
end

# need to maintain class-baseed caches in clean state
config.around(:each) do |example|
config.around(:each) do |example|
DumpedRailers.configure_defaults!
example.run
DumpedRailers::RecordBuilder::FixtureRow::RecordStore.clear!
Expand Down

0 comments on commit 4518c0b

Please sign in to comment.