Skip to content

Commit

Permalink
fix: fix the locale serializer in Rails 7.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Feb 6, 2024
1 parent 0ee85da commit d8739c3
Show file tree
Hide file tree
Showing 13 changed files with 436 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
node: [18]
gemfile: ["Gemfile.legacy", "Gemfile"]
gemfile: ["Gemfile.rails_6", "Gemfile.rails_7", "Gemfile"]

steps:
- name: Checkout code
Expand Down
File renamed without changes.
92 changes: 53 additions & 39 deletions Gemfile.legacy.lock → Gemfile.rails_6_0.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ GEM
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
ast (2.4.2)
bcrypt (3.1.19)
bcrypt (3.1.20)
builder (3.2.4)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.0)
diff-lcs (1.5.1)
docile (1.4.0)
dry-cli (1.0.0)
erubi (1.12.0)
Expand All @@ -87,7 +87,7 @@ GEM
factory_bot (~> 6.2.0)
railties (>= 5.0.0)
ffi (1.16.3)
generator_spec (0.9.4)
generator_spec (0.10.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
globalid (1.2.1)
Expand All @@ -100,7 +100,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
json (2.6.3)
json (2.7.1)
kaminari (1.2.2)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.2.2)
Expand All @@ -114,7 +114,7 @@ GEM
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
language_server-protocol (3.17.0.3)
loofah (2.21.4)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
maglev-injectable (2.1.1)
Expand All @@ -127,23 +127,31 @@ GEM
method_source (1.0.0)
mini_magick (4.12.0)
mini_mime (1.1.5)
minitest (5.20.0)
net-imap (0.4.4)
minitest (5.22.0)
net-imap (0.4.10)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.4.0)
net-smtp (0.4.0.1)
net-protocol
nio4r (2.5.9)
nokogiri (1.15.4-x86_64-darwin)
nio4r (2.7.0)
nokogiri (1.16.2-aarch64-linux)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-linux)
nokogiri (1.16.2-arm-linux)
racc (~> 1.4)
parallel (1.23.0)
parser (3.2.2.4)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86-linux)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-linux)
racc (~> 1.4)
parallel (1.24.0)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pg (1.5.4)
Expand Down Expand Up @@ -183,55 +191,57 @@ GEM
thor (~> 1.0)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.8.2)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rspec-core (3.13.0)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-rails (6.0.3)
rspec-support (~> 3.13.0)
rspec-rails (6.1.1)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-core (~> 3.12)
rspec-expectations (~> 3.12)
rspec-mocks (~> 3.12)
rspec-support (~> 3.12)
rspec-support (3.12.1)
rubocop (1.57.2)
rspec-support (3.13.0)
rubocop (1.60.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.19.0)
rubocop-capybara (2.20.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-factory_bot (2.24.0)
rubocop (~> 1.33)
rubocop-md (1.2.1)
rubocop-md (1.2.2)
rubocop (>= 1.0)
rubocop-minitest (0.33.0)
rubocop-minitest (0.34.5)
rubocop (>= 1.39, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-packaging (0.5.2)
rubocop (>= 1.33, < 2.0)
rubocop-performance (1.19.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.22.1)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rails (2.23.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rails_config (1.16.0)
rubocop (>= 1.57.0)
rubocop-ast (>= 1.26.0)
Expand All @@ -240,7 +250,7 @@ GEM
rubocop-packaging (~> 0.5)
rubocop-performance (~> 1.11)
rubocop-rails (~> 2.0)
rubocop-rspec (2.25.0)
rubocop-rspec (2.26.1)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
Expand Down Expand Up @@ -275,10 +285,14 @@ GEM
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.6.12)
zeitwerk (2.6.13)

PLATFORMS
x86_64-darwin-22
aarch64-linux
arm-linux
arm64-darwin
x86-linux
x86_64-darwin
x86_64-linux

DEPENDENCIES
Expand All @@ -299,4 +313,4 @@ DEPENDENCIES
sprockets-rails

BUNDLED WITH
2.3.26
2.5.4
51 changes: 51 additions & 0 deletions Gemfile.rails_7_0
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# frozen_string_literal: true

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

# Declare your gem's dependencies in maglev.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec

gem 'rails', '7.0.8'

# Active Storage analyser
gem 'mini_magick', '~> 4.11'

# Use Active Storage variant
gem 'image_processing', '~> 1.12.2'

# Use Sprockets to deal with assets in the dummy app
gem "sprockets-rails"

# Temporary use this branch because it solves a bug
# gem 'maglev-injectable', path: '../injectable'

# Declare any dependencies that are still in development here instead of in
# your gemspec. These might include edge Rails or gems from your path or
# Git. Remember to move these dependencies to your gemspec before releasing
# your gem to rubygems.org.

# To use a debugger
# gem 'byebug', group: [:development, :test]

group :development, :test do
# Use SCSS for stylesheets
gem 'bcrypt'

gem 'factory_bot_rails', '~> 6.2.0'
gem 'rspec-rails'

gem 'rubocop', require: false
gem 'rubocop-rails_config'
gem 'rubocop-rspec'

gem 'generator_spec'

gem 'nokogiri', '>= 1.13.10'
end

group :test do
gem 'simplecov', require: false
end
Loading

0 comments on commit d8739c3

Please sign in to comment.