Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ruby 3.2 and Rails 7.2 #64

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- 2.7
- 3.0
- 3.1
- 3.2
gemfile:
- active_record_32.gemfile
- active_record_42.gemfile
Expand All @@ -38,6 +39,7 @@ jobs:
- active_record_61.gemfile
- active_record_70.gemfile
- active_record_71.gemfile
- active_record_72.gemfile
- mongoid_54.gemfile
- mongoid_64.gemfile
- mongoid_73.gemfile
Expand All @@ -50,6 +52,8 @@ jobs:
ruby: 3.0
- gemfile: active_record_32.gemfile
ruby: 3.1
- gemfile: active_record_32.gemfile
ruby: 3.2
- gemfile: active_record_32.gemfile
orm: MONGOID
- gemfile: active_record_42.gemfile
Expand All @@ -58,24 +62,32 @@ jobs:
ruby: 3.0
- gemfile: active_record_42.gemfile
ruby: 3.1
- gemfile: active_record_42.gemfile
ruby: 3.2
- gemfile: active_record_42.gemfile
orm: MONGOID
- gemfile: active_record_50.gemfile
ruby: 3.0
- gemfile: active_record_50.gemfile
ruby: 3.1
- gemfile: active_record_50.gemfile
ruby: 3.2
- gemfile: active_record_50.gemfile
orm: MONGOID
- gemfile: active_record_51.gemfile
ruby: 3.0
- gemfile: active_record_51.gemfile
ruby: 3.1
- gemfile: active_record_51.gemfile
ruby: 3.2
- gemfile: active_record_51.gemfile
orm: MONGOID
- gemfile: active_record_52.gemfile
ruby: 3.0
- gemfile: active_record_52.gemfile
ruby: 3.1
- gemfile: active_record_52.gemfile
ruby: 3.2
- gemfile: active_record_52.gemfile
orm: MONGOID
- gemfile: active_record_60.gemfile
Expand All @@ -98,12 +110,24 @@ jobs:
ruby: 2.6
- gemfile: active_record_71.gemfile
orm: MONGOID
- gemfile: active_record_72.gemfile
ruby: 2.3
- gemfile: active_record_72.gemfile
ruby: 2.6
- gemfile: active_record_72.gemfile
ruby: 2.7
- gemfile: active_record_72.gemfile
ruby: 3.0
- gemfile: active_record_72.gemfile
orm: MONGOID
- gemfile: mongoid_54.gemfile
ruby: 2.7
- gemfile: mongoid_54.gemfile
ruby: 3.0
- gemfile: mongoid_54.gemfile
ruby: 3.1
- gemfile: mongoid_54.gemfile
ruby: 3.2
- gemfile: mongoid_54.gemfile
orm: ACTIVE_RECORD
- gemfile: mongoid_64.gemfile
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ If you have a Rails 3 project, and want to pluck not only one column,
feel free to use this gem and no need to worry about upgrading to Rails 4, 5, 6 in the future will break this.

## Supports
- Ruby 2.3 ~ 2.7, 3.0 ~ 3.1
- Rails 3.2, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0, 7.1
- Ruby 2.3 ~ 2.7, 3.0 ~ 3.2
- Rails 3.2, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0, 7.1, 7.2

## Installation

Expand Down
19 changes: 19 additions & 0 deletions gemfiles/active_record_72.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in pluck_all.gemspec

gem 'sqlite3', '~> 1.4.1'
gem 'zeitwerk'
gem 'activerecord', '~> 7.2.1'
gem 'rails_compatibility', '~> 0.0.7'

gem 'carrierwave', '~> 0.11.0'
gem 'mimemagic', '< 0.4.3' # Used by carrierwave gem

# gem 'globalize', '~> 6.0.1' # TODO: wait for globalize to support Rails 7.

group :test do
gem 'simplecov', '< 0.18'
end

gemspec path: '../'
7 changes: 6 additions & 1 deletion test/active_record/support/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# frozen_string_literal: true
class User < ActiveRecord::Base
serialize :serialized_attribute, Hash
if Gem::Version.new(ActiveRecord::VERSION::STRING) < Gem::Version.new('7.1.0')
serialize :serialized_attribute, Hash
else
serialize :serialized_attribute, type: Hash
end

mount_uploader :profile_pic, ProfilePictureUploader
mount_uploader :pet_pic, PetPictureUploader
has_many :posts
Expand Down
Loading