Skip to content

Ruby 3.x compatibility: replace deprecated APIs, update gemspec ruby constraint#30

Open
kitcommerce wants to merge 1 commit intomasterfrom
ruby3-compat
Open

Ruby 3.x compatibility: replace deprecated APIs, update gemspec ruby constraint#30
kitcommerce wants to merge 1 commit intomasterfrom
ruby3-compat

Conversation

@kitcommerce
Copy link

Ruby 3.x Compatibility

Changes

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

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

…y constraint

- Replace update_attributes/update_attributes! with update/update!
- Replace URI.escape with CGI.escape
- Update required_ruby_version to '>= 2.7', '< 3.5'

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