Class: Stickler::Middleware::Gemcutter

Inherits:
Local
  • Object
show all
Defined in:
lib/stickler/middleware/gemcutter.rb

Overview

A rack middleware for implementing the gemcutter api

Options

:serve_indexes

the same as the Index middleware

:repo_root

the same as the Local middleware

The :repo_root option is required.

Usage

use Stickler::Middleware::Gemcutter, :repo_root => '/path/to/repository'

use Stickler::Middleware::Gemcutter, :repo_root => '/path/to/repository',
                                     :serve_indexes => true

Instance Attribute Summary

Attributes inherited from Index

#repo

Instance Method Summary collapse

Methods inherited from Index

#marshal, #marshalled_specs, #serve_indexes, #to_compression_flag

Methods included from Logable

#logger

Methods included from Helpers::Specs

#append_latest_specs, #append_spec, #append_specs, #specs, #specs_by_first_upcase_char, #specs_by_name, #specs_by_repo, #specs_grouped_by_name

Methods included from Helpers::Compression

#compression, #compression=

Constructor Details

#initialize(app = nil, options = {}) ⇒ Gemcutter

Returns a new instance of Gemcutter.



28
29
30
# File 'lib/stickler/middleware/gemcutter.rb', line 28

def initialize( app = nil, options = {}  )
  super( app, options )
end