module Mongrel2
A Mongrel2
connector and configuration library for Ruby.
Author/s¶ ↑
-
Michael Granger <ged@FaerieMUD.org>
-
Mahlon E. Smith <mahlon@martini.nu>
A collection of constants and functions for testing Mongrel2
applications, as well as Mongrel2
itself.
Constants
- Config
Initialize the Cozy::Postgres::Model class as an abstract model class (i.e., without a default dataset). This prevents it from looking for a table called `models`, and makes inheriting it more straightforward. Thanks to Jeremy Evans for the suggestion.
- REVISION
Version-control revision constant
- VERSION
Library version constant
Public Class Methods
Config( source )
click to toggle source
Factory method that creates subclasses of Mongrel2::Config
.
# File lib/mongrel2/config.rb, line 266 def self::Config( source ) return Mongrel2::Config.Model( source ) end
version_string( include_buildnum=false )
click to toggle source
Get the library version. If include_buildnum
is true, the version string will include the VCS rev ID.
# File lib/mongrel2.rb, line 36 def self::version_string( include_buildnum=false ) vstring = "Ruby-Mongrel2 %s" % [ VERSION ] vstring << " (build %s)" % [ REVISION[/: ([[:xdigit:]]+)/, 1] || '0' ] if include_buildnum return vstring end