Class: Gemgate::QuickMarshalSpecs

Inherits:
Object
  • Object
show all
Defined in:
lib/gemgate/quick_marshal_specs.rb

Defined Under Namespace

Classes: Entry

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#storageObject

Returns the value of attribute storage.



17
18
19
# File 'lib/gemgate/quick_marshal_specs.rb', line 17

def storage
  @storage
end

Instance Method Details

#add(gem) ⇒ Object



19
20
21
22
23
# File 'lib/gemgate/quick_marshal_specs.rb', line 19

def add(gem)
  entry = Entry.new(gem)

  storage.create(entry.filename, to_deflated_marshal(entry.spec))
end