Method: Gem::Package#initialize

Defined in:
lib/rubygems/package.rb

#initialize(gem, security_policy) ⇒ Package

Creates a new package that will read or write to the file gem.



196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# File 'lib/rubygems/package.rb', line 196

def initialize(gem, security_policy) # :notnew:
  require "zlib"

  @gem = gem

  @build_time      = Gem.source_date_epoch
  @checksums       = {}
  @contents        = nil
  @digests         = Hash.new {|h, algorithm| h[algorithm] = {} }
  @files           = nil
  @security_policy = security_policy
  @signatures      = {}
  @signer          = nil
  @spec            = nil
end