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
Constant Summary
Constants inherited from Index
Index::NAME_VERSION_PLATFORM_REGEX
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, #optimize_specs, #serve_indexes, #to_compression_flag
Methods included from Logable
Methods included from Helpers::Specs
#collect_specs_via, #latest_specs, #prerelease_specs, #released_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.
24 25 26 |
# File 'lib/stickler/middleware/gemcutter.rb', line 24 def initialize( app = nil, = {} ) super( app, ) end |