Skip to content

Commit

Permalink
ci: Add support for Rails 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hasghari committed Aug 4, 2024
1 parent 90ae0ed commit 589ddcb
Show file tree
Hide file tree
Showing 30 changed files with 485 additions and 245 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- '6.1.0'
- '7.0.0'
- '7.1.0'
- '7.2.0'

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/activerecord_${{ matrix.activerecord }}.gemfile
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.3.1
ruby 3.3.4
10 changes: 10 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@

appraise 'activerecord-6.1.0' do
gem 'activerecord', '~> 6.1', '< 6.2'
gem 'base64'
gem 'bigdecimal'
gem 'mutex_m'
end

appraise 'activerecord-7.0.0' do
gem 'activerecord', '~> 7.0', '< 7.1'
gem 'base64'
gem 'bigdecimal'
gem 'mutex_m'
end

appraise 'activerecord-7.1.0' do
gem 'activerecord', '~> 7.1', '< 7.2'
end

appraise 'activerecord-7.2.0' do
gem 'activerecord', '~> 7.2.0.beta3', '< 7.3'
end
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gemspec
gem 'appraisal'
gem 'bundler', '~> 2.0'
gem 'combustion', '~> 1.4'
gem 'database_cleaner', '~> 2'
gem 'database_cleaner-active_record', '~> 2.2'
gem 'pry'
gem 'rake', '13.0.3'
gem 'rspec', '~> 3.0'
Expand Down
75 changes: 38 additions & 37 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,80 +9,79 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actionpack (7.1.3.3)
actionview (= 7.1.3.3)
activesupport (= 7.1.3.3)
actionpack (7.2.0.beta3)
actionview (= 7.2.0.beta3)
activesupport (= 7.2.0.beta3)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.3.3)
activesupport (= 7.1.3.3)
useragent (~> 0.16)
actionview (7.2.0.beta3)
activesupport (= 7.2.0.beta3)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activemodel (7.1.3.3)
activesupport (= 7.1.3.3)
activerecord (7.1.3.3)
activemodel (= 7.1.3.3)
activesupport (= 7.1.3.3)
activemodel (7.2.0.beta3)
activesupport (= 7.2.0.beta3)
activerecord (7.2.0.beta3)
activemodel (= 7.2.0.beta3)
activesupport (= 7.2.0.beta3)
timeout (>= 0.4.0)
activesupport (7.1.3.3)
activesupport (7.2.0.beta3)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
tzinfo (~> 2.0, >= 2.0.5)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.2.4)
builder (3.3.0)
coderay (1.1.3)
combustion (1.4.0)
combustion (1.5.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
thor (>= 0.14.6)
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
crass (1.0.6)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.1.0)
database_cleaner-active_record (2.2.0)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1)
diff-lcs (1.5.1)
docile (1.4.0)
drb (2.2.1)
erubi (1.12.0)
erubi (1.13.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
io-console (0.7.2)
irb (1.13.1)
irb (1.14.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
logger (1.6.0)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
method_source (1.1.0)
mini_portile2 (2.8.6)
minitest (5.23.0)
mutex_m (0.2.0)
nokogiri (1.16.5)
mini_portile2 (2.8.7)
minitest (5.24.1)
nokogiri (1.16.7)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
parallel (1.24.0)
Expand All @@ -95,8 +94,8 @@ GEM
method_source (~> 1.0)
psych (5.1.2)
stringio
racc (1.7.3)
rack (3.0.11)
racc (1.8.1)
rack (3.1.7)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
Expand All @@ -111,20 +110,20 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.3.3)
actionpack (= 7.1.3.3)
activesupport (= 7.1.3.3)
irb
railties (7.2.0.beta3)
actionpack (= 7.2.0.beta3)
activesupport (= 7.2.0.beta3)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6)
rainbow (3.1.1)
rake (13.0.3)
rdoc (6.6.3.1)
rdoc (6.7.0)
psych (>= 4.0.0)
regexp_parser (2.9.2)
reline (0.5.7)
reline (0.5.9)
io-console (~> 0.5)
rexml (3.2.8)
strscan (>= 3.0.9)
Expand Down Expand Up @@ -175,24 +174,26 @@ GEM
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
stringio (3.1.0)
stringio (3.1.1)
strscan (3.1.0)
thor (1.3.1)
timeout (0.4.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
useragent (0.16.10)
webrick (1.8.1)
zeitwerk (2.6.14)
zeitwerk (2.6.17)

PLATFORMS
ruby

DEPENDENCIES
activerecord (= 7.2.0.beta3)
appraisal
bundler (~> 2.0)
combustion (~> 1.4)
database_cleaner (~> 2)
database_cleaner-active_record (~> 2.2)
pry
rake (= 13.0.3)
rspec (~> 3.0)
Expand Down
1 change: 1 addition & 0 deletions exe/table-saw
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class CLI < Thor
desc: 'This option takes a hash to override variables provided in the manifest'
def dump
TableSaw.configure(options.to_hash)
::ActiveRecord::Base.establish_connection(TableSaw.configuration.connection)
records = TableSaw::DependencyGraph::Build.new(TableSaw::Manifest.instance).call
TableSaw::CreateDumpFile.new(records, output: options[:output], format: options[:format]).call
end
Expand Down
7 changes: 5 additions & 2 deletions gemfiles/activerecord_6.1.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ source "https://rubygems.org"

gem "appraisal"
gem "bundler", "~> 2.0"
gem "combustion", "~> 1.3"
gem "database_cleaner", "~> 2"
gem "combustion", "~> 1.4"
gem "database_cleaner-active_record", "~> 2.2"
gem "pry"
gem "rake", "13.0.3"
gem "rspec", "~> 3.0"
gem "rubocop-rspec", "~> 2.3"
gem "scenic", "~> 1.5"
gem "simplecov", "~> 0.16"
gem "activerecord", "~> 6.1", "< 6.2"
gem "base64"
gem "bigdecimal"
gem "mutex_m"

gemspec path: "../"
Loading

0 comments on commit 589ddcb

Please sign in to comment.