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

Remove unicode gem #5907

Merged
merged 2 commits into from
Oct 15, 2020
Merged

Remove unicode gem #5907

merged 2 commits into from
Oct 15, 2020

Conversation

gbp
Copy link
Member

@gbp gbp commented Oct 2, 2020

Relevant issue(s)

Requires mysociety/commonlib#72

What does this do?

For Ruby 2.4+ this now uses core Ruby string #upcase method instead of using the Unicode gem. This seems to helpped with issues various issues seen in production.

Once #5222 is done we can remove the gem completely.

Closes #5870 #5871 #5873 #5874 #5876 #5877 #5878 #5879

@gbp gbp force-pushed the remove-unicode-gbp branch 2 times, most recently from e7fef77 to 2340924 Compare October 6, 2020 11:29
@garethrees garethrees mentioned this pull request Oct 8, 2020
@gbp gbp marked this pull request as ready for review October 13, 2020 11:41
@gbp gbp requested a review from garethrees October 13, 2020 11:41
@gbp gbp assigned garethrees and unassigned gbp Oct 13, 2020
Copy link
Member

@garethrees garethrees left a comment

Choose a reason for hiding this comment

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

Wow, probably the most closed issues per PR on this one! 🎰 🎰 🎰

gbp and others added 2 commits October 15, 2020 14:15
We can replace the unicode gem completely for Ruby 2.4+ by using the
core `#upcase` method which now has "Full Unicode case mapping" by
default [1].

[1] https://ruby-doc.org/core-2.4.0/String.html#method-i-downcase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ERROR] user#show (TypeError) "no implicit conversion of false into Integer"
2 participants