From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:RubyGems gem" |
|---|
| claim | "A .gem is an uncompressed tar that Gem::Package#build writes with three members in this order, each mode 0444: metadata.gz (gzipped YAML of the Gem::Specification), data.tar.gz (gzipped tar of spec.files) and checksums.yaml.gz (gzipped YAML of algorithm to {entry name: hex digest} for metadata.gz and data.tar.gz). When a signing key exists a <entry>.sig file follows each signed entry. Verification fails if the spec or data.tar.gz is missing, if an entry name is duplicated, or if a recorded digest differs (checksums missing from the file are ignored)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:RubyGems gem" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "tar member names" |
|---|
| indicator | "metadata.gz, data.tar.gz, checksums.yaml.gz (+ .sig)" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Class comment, add_checksums, add_contents, add_metadata, build order, verify, verify_checksums, verify_files." |
|---|
| repo | "https://github.com/ruby/rubygems" |
|---|
| commit | "f033df93676007227d1ae0bd7326008e6396b3e9" |
|---|
| path | "lib/rubygems/package.rb" |
|---|
| lines | "17-19, 282-317, 348-380, 723-745, 858-872, 897-915" |
|---|
|
| type | "source" |
|---|
| detail | "add_file_signed adds SHA512 plus the signer digest and writes name.sig when the signer has a key. MIT or Ruby license." |
|---|
| repo | "https://github.com/ruby/rubygems" |
|---|
| commit | "f033df93676007227d1ae0bd7326008e6396b3e9" |
|---|
| path | "lib/rubygems/package/tar_writer.rb" |
|---|
| lines | "166-200" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "gem tar members and order" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T07:16:15.554Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:11:52.824Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Gem::Package#build, add_metadata, add_contents, add_checksums in package.rb at the cited commit: order metadata, data.tar.gz, checksums.yaml.gz, each add_file_signed with 0o444. Did not re-read verify/tar_writer parts." |
|---|
|
|
|---|