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

Constant Summary

Constants inherited from Index

Index::NAME_VERSION_PLATFORM_REGEX

Instance Attribute Summary

Attributes inherited from Index

#repo

Instance Method Summary collapse

Methods inherited from Index

#marshal, #marshalled_specs, #optimize_specs, #serve_indexes, #to_compression_flag

Methods included from Logable

#logger

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

#compression, #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, options = {}  )
  super( app, options )
end