-
Notifications
You must be signed in to change notification settings - Fork 0
Hotfix and cleanup ULID optimizations #8
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
Conversation
lib/ulid/constants.rb
Outdated
| B32_CROCKFORD_FRAGMENT = "JKMNPQRSTVWXYZ" | ||
| B32_RCF4648_FRAGMENT = "ijklmnopqrstuv" # downcase becase .to_s(32) is always lowercase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be handled as frozen by
ulid-ruby/lib/ulid/constants.rb
Line 1 in 7d82497
| # frozen_string_literal: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea, I just wanted to make it visually comparable. this is probably better
f02d739 to
de91761
Compare
The main change in this PR is the fix in 3ba0841 to prevent
b32from beingnilin the absence of changes when modified bytr!andupcase!. This will fix intermittent failures which we sometimes encounter in integrating the forked gem to caller code.While I was at it, I happened to notice that there was also some unresolved PR feedback on abachman#10 so I figured I may as well solve those also - per 7d82497 .