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, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like: "5M33+zp2ZnZNfDsGUxvziMdZfvWnzwTvVLgW8BIqG0A=".unpack1("m0").unpack1("H*")
#=> "e4cdf7fb3a7666764d7c3b06531bf388c7597ef5a7cf04ef54b816f0122a1b40" |
Beta Was this translation helpful? Give feedback.
Looks like:
from https://github.com/rubygems/rubygems.org/blob/4985a916480e04e9876d3e76ccdc87cb5beabe9b/app/models/version.rb#L359