We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! I have created new ruby library for ULID manipulations as https://github.com/kachick/ruby-ulid 😄 I would like to import test cases from other implementations for robustness, then found this repository.
Some examples looks weird to me, are they actually correct example?
ulid-ruby/lib/ulid.rb
Lines 42 to 47 in 381daa7
In my gem
ULID.generate(moment: Time.at(1_000_000)) #=> ULID(1970-01-12 13:46:40.000 UTC: 0000XSNJG0WM2T5DT27HYBT8D4)
The timestamp handling looks correct from following result
Time.at(1_000_000, in: 'UTC') #=> 1970-01-12 13:46:40 UTC
Lines 54 to 59 in 381daa7
ULID.parse('0009A0QS00SGEFTGMFFEAS6B9A').to_time #=> 1970-04-26 17:46:40 UTC
Ensuring my result is same with https://github.com/oklog/ulid
$ ulid 0009A0QS00SGEFTGMFFEAS6B9A Sun Apr 26 17:46:40 UTC 1970
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hi! I have created new ruby library for ULID manipulations as https://github.com/kachick/ruby-ulid 😄
I would like to import test cases from other implementations for robustness, then found this repository.
Some examples looks weird to me, are they actually correct example?
ulid-ruby/lib/ulid.rb
Lines 42 to 47 in 381daa7
In my gem
The timestamp handling looks correct from following result
ulid-ruby/lib/ulid.rb
Lines 54 to 59 in 381daa7
In my gem
Ensuring my result is same with https://github.com/oklog/ulid
The text was updated successfully, but these errors were encountered: