Repository navigation
sha256 or sha of the gem in the versions API and versions tables of pg-dump #6433
|
Hello, I need help in understanding below data: How could I transform the dump's API: https://rubygems.org/api/v2/rubygems/catsay/versions/0.2.1.json pg-dump of rubygems has below data for the same gem and version: id: 634090 Thanks in advance, any help is appreciated. Regards, |
Answered by
composerinteralia
Mar 4, 2023
Replies: 1 comment 1 reply
|
Looks like: "5M33+zp2ZnZNfDsGUxvziMdZfvWnzwTvVLgW8BIqG0A=".unpack1("m0").unpack1("H*")
#=> "e4cdf7fb3a7666764d7c3b06531bf388c7597ef5a7cf04ef54b816f0122a1b40" |
1 reply
Answer selected by
nareshdevasani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like:
from https://github.com/rubygems/rubygems.org/blob/4985a916480e04e9876d3e76ccdc87cb5beabe9b/app/models/version.rb#L359