Skip to content

Commit

Permalink
Merge pull request #4 from Invoca/TECH-17267_support_ruby_3_4
Browse files Browse the repository at this point in the history
Add Support for Ruby 3.4
  • Loading branch information
ttstarck authored Jan 31, 2025
2 parents edfc83f + a10a79b commit 88c4373
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 18 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.7, '3.0', 3.1, 3.2]
ruby: [3.1, 3.2, 3.3, 3.4]
gemfile:
- Gemfile
- gemfiles/activerecord_6_0.gemfile
- gemfiles/activerecord_6_1.gemfile
- gemfiles/activerecord_7_0.gemfile
- gemfiles/activerecord_7_1.gemfile
- gemfiles/activerecord_7_2.gemfile
- gemfiles/activerecord_8_0.gemfile
exclude:
- ruby: 3.1
gemfile: gemfiles/activerecord_8_0.gemfile
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
Expand Down
13 changes: 2 additions & 11 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
# frozen_string_literal: true

appraise 'activerecord-6-0' do
gem 'activerecord', '~> 6.0.0'
end

appraise 'activerecord-6-1' do
gem 'activesupport', '~> 6.1.0'
end

appraise 'activerecord-7-0' do
gem 'activerecord', '~> 7.0.0'
end
require "appraisal/matrix"
appraisal_matrix(activerecord: "7.0")
9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ source "https://rubygems.org"
gemspec

gem "appraisal"
gem "appraisal-matrix"
gem "csv"
gem "rake"
gem 'rspec'
gem 'rspec_junit_formatter'
Expand All @@ -16,3 +18,10 @@ gem 'ruby-prof'
gem 'ruby-prof-flamegraph'
gem 'simplecov'
gem 'simplecov-lcov'


gem "concurrent-ruby", "~> 1.3", "< 1.3.5"

gem "base64", ">= 0.1.1"
gem "bigdecimal", ">= 3.1"
gem "mutex_m", ">= 0.1.2"
15 changes: 13 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ GEM
bundler
rake
thor (>= 0.14.0)
appraisal-matrix (0.3.0)
appraisal (~> 2.2)
ast (2.4.2)
base64 (0.1.1)
bigdecimal (3.1.4)
concurrent-ruby (1.2.2)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
csv (3.3.2)
diff-lcs (1.5.0)
docile (1.4.0)
drb (2.1.1)
Expand Down Expand Up @@ -104,11 +107,19 @@ GEM

PLATFORMS
arm64-darwin-22
arm64-darwin-23
arm64-darwin-24
x86_64-linux

DEPENDENCIES
activerecord-data_classification!
appraisal
appraisal-matrix
base64 (>= 0.1.1)
bigdecimal (>= 3.1)
concurrent-ruby (~> 1.3, < 1.3.5)
csv
mutex_m (>= 0.1.2)
rake
rspec
rspec-mocks
Expand All @@ -121,4 +132,4 @@ DEPENDENCIES
simplecov-lcov

BUNDLED WITH
2.4.17
2.6.2
6 changes: 6 additions & 0 deletions gemfiles/activerecord_7_0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
source "https://rubygems.org"

gem "appraisal"
gem "appraisal-matrix"
gem "csv"
gem "rake"
gem "rspec"
gem "rspec_junit_formatter"
Expand All @@ -13,6 +15,10 @@ gem "ruby-prof"
gem "ruby-prof-flamegraph"
gem "simplecov"
gem "simplecov-lcov"
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
gem "base64", ">= 0.1.1"
gem "bigdecimal", ">= 3.1"
gem "mutex_m", ">= 0.1.2"
gem "activerecord", "~> 7.0.0"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
source "https://rubygems.org"

gem "appraisal"
gem "appraisal-matrix"
gem "csv"
gem "rake"
gem "rspec"
gem "rspec_junit_formatter"
Expand All @@ -13,6 +15,10 @@ gem "ruby-prof"
gem "ruby-prof-flamegraph"
gem "simplecov"
gem "simplecov-lcov"
gem "activerecord", "~> 6.0.0"
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
gem "base64", ">= 0.1.1"
gem "bigdecimal", ">= 3.1"
gem "mutex_m", ">= 0.1.2"
gem "activerecord", "~> 7.1.0"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
source "https://rubygems.org"

gem "appraisal"
gem "appraisal-matrix"
gem "csv"
gem "rake"
gem "rspec"
gem "rspec_junit_formatter"
Expand All @@ -13,6 +15,10 @@ gem "ruby-prof"
gem "ruby-prof-flamegraph"
gem "simplecov"
gem "simplecov-lcov"
gem "activesupport", "~> 6.1.0"
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
gem "base64", ">= 0.1.1"
gem "bigdecimal", ">= 3.1"
gem "mutex_m", ">= 0.1.2"
gem "activerecord", "~> 7.2.0"

gemspec path: "../"
24 changes: 24 additions & 0 deletions gemfiles/activerecord_8_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "appraisal-matrix"
gem "csv"
gem "rake"
gem "rspec"
gem "rspec_junit_formatter"
gem "rspec-mocks"
gem "rubocop"
gem "rubocop-git"
gem "ruby-prof"
gem "ruby-prof-flamegraph"
gem "simplecov"
gem "simplecov-lcov"
gem "concurrent-ruby", "~> 1.3", "< 1.3.5"
gem "base64", ">= 0.1.1"
gem "bigdecimal", ">= 3.1"
gem "mutex_m", ">= 0.1.2"
gem "activerecord", "~> 8.0.0"

gemspec path: "../"

0 comments on commit 88c4373

Please sign in to comment.