Class: Stickler::Middleware::Gemcutter
- 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
Instance Method Summary collapse
-
#initialize(app = nil, options = {}) ⇒ Gemcutter
constructor
A new instance of Gemcutter.
Methods inherited from Index
#marshal, #marshalled_specs, #serve_indexes, #to_compression_flag
Methods included from Logable
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
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, = {} ) super( app, ) end |