Class: Gemvault::Manifest::StoredGem
- Inherits:
-
Object
- Object
- Gemvault::Manifest::StoredGem
- Defined in:
- lib/gemvault/manifest.rb
Overview
One stored gem: its identity (a GemEntry) plus the integrity digest and encryption flag the manifest keeps alongside it.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#filename ⇒ Object
22 |
# File 'lib/gemvault/manifest.rb', line 22 def filename = gem.filename |
#matches?(bytes) ⇒ Boolean
24 |
# File 'lib/gemvault/manifest.rb', line 24 def matches?(bytes) = Manifest.digest(bytes) == sha256 |
#to_h ⇒ Object
26 27 28 29 30 31 |
# File 'lib/gemvault/manifest.rb', line 26 def to_h { name: gem.name, version: gem.version, platform: gem.platform, created_at: gem.created_at, sha256:, encrypted: } end |