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 rails 7.1 #810

Merged
merged 5 commits into from
Oct 11, 2023
Merged

Conversation

willnet
Copy link
Contributor

@willnet willnet commented Oct 6, 2023

Add Ruby 3.2 and Rails 7.1 to CI and make it work where it didn't work

CI result is here.

- Ruby 3.2 was released at 2022/12/25
- Rails 7.1 was released  at 2023/10/05
I don't know why "MiniTest" worked before.
i18n library specs have changed, old i18n gem returns "translation missing" but recent one returns "Translation missing".
CI fails with rails 7.1 like following

```
/home/runner/work/globalize/globalize/vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.0/lib/active_record/connection_adapters/abstract/schema_statements.rb:1778:in `validate_table_length!': Table name 'migrated_with_mega_ultra_super_long_model_name_with_more_then_sixty_characters' is too long; the limit is 64 characters (ArgumentError)

            raise ArgumentError, "Table name '#{table_name}' is too long; the limit is #{table_name_length} characters"
```

We need to skip creating a long name table with rails 7.1 due to rails/rails#45136
@basex
Copy link

basex commented Oct 10, 2023

Thanks @willnet Works without problems.

@parndt can it be merged?

@parndt
Copy link
Member

parndt commented Oct 10, 2023

Thanks this look good but, forgive my ignorance, when did Minitest change and why did we have MiniTest 😂 ?

@willnet
Copy link
Contributor Author

willnet commented Oct 11, 2023

s/MiniTest/Minitest/ change seems to be done at minitest 5.0
minitest/minitest@9a57c52

@parndt parndt merged commit 27b6906 into globalize:main Oct 11, 2023
78 checks passed
@parndt
Copy link
Member

parndt commented Oct 11, 2023

thank you 🌈

@willnet willnet deleted the support-ruby-3-2-rails-7-1 branch October 11, 2023 06:30
@jwoodrow
Copy link

Hi 👋 Thanks for the work on globalize, when do you think a release might happen ? The current latest gem version prevents upgrading to rails 7.1 🙏

@parndt
Copy link
Member

parndt commented Oct 20, 2023

https://rubygems.org/gems/globalize/versions/6.3.0 😄 enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants