Skip to content

Ruby 3.x compatibility: replace deprecated APIs, add gemspec ruby constraint#32

Open
kitcommerce wants to merge 1 commit into
masterfrom
ruby3-compat
Open

Ruby 3.x compatibility: replace deprecated APIs, add gemspec ruby constraint#32
kitcommerce wants to merge 1 commit into
masterfrom
ruby3-compat

Conversation

@kitcommerce

Copy link
Copy Markdown

Ruby 3.x Compatibility

Changes

  • Replace update_attributes/update_attributes! with update/update! (removed in Rails 6.1+)
  • Add required_ruby_version = '>= 2.7', '< 3.5' to gemspec

Verification

grep -rn 'update_attributes\|Dir\.exists?\|URI\.escape' --include='*.rb' . | grep -v vendor
# Returns no output

Related

Closes workarea-commerce/workarea#676

Client impact: None — backward compatible

…onstraint

- Replace update_attributes/update_attributes! with update/update!
- Add required_ruby_version '>= 2.7', '< 3.5' to gemspec

Fixes workarea-commerce/workarea#676
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.

WA-NEW-026: Plugin modernization Phase 2 — API and blog plugins

1 participant