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 for Ruby 3.1 #4366

Merged
merged 4 commits into from
May 5, 2022

Conversation

waiting-for-dev
Copy link
Contributor

This is #4359, with master as the base branch. We closed that one by mistake. @kennyadsl, @jarednorman, you already had approved that one.

SQLite adapter fails to provide a unique index for the convoluted chain
of ActiveRecord persistence calls that happen on
https://github.com/solidusio/solidus/blob/8b03161a1894a7d10c8d95f62c016da55027d2b0/core/app/models/spree/stock/simple_coordinator.rb#L83.

```
SQLite3::ConstraintException:
UNIQUE constraint failed: spree_shipping_rates.shipment_id, spree_shipping_rates.shipping_method_id
```

That's not a problem on production databases (MySQL & PostgreSQL), but
at least we mark the tests as failing locally.

[skip ci]
The new Psych version required by Ruby 3.1 no longer allows the loading
of arbitrary classes into YAML by default. We switch to `#safe_load` and
enable the class we're currently using.

See:

ruby/psych@cb50aa8
ruby/psych@1764942

[skip ci]
Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waiting-for-dev thanks 🎉

@waiting-for-dev waiting-for-dev merged commit 093fad1 into solidusio:master May 5, 2022
@waiting-for-dev waiting-for-dev deleted the waiting-for-dev/ruby_31 branch May 5, 2022 08:40
Naokimi added a commit to solidusio/solidus_bolt that referenced this pull request May 12, 2022
This currently won't display correctly in Ruby 2.5 - 2.7 due to an error
caused by solidusio/solidus#4366
Naokimi added a commit to solidusio/solidus_bolt that referenced this pull request May 13, 2022
This currently won't display correctly in Ruby 2.5 - 2.7 due to an error
caused by solidusio/solidus#4366
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.

5 participants