A Mongrel2
connector and configuration library for Ruby.
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.
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.
Version-control revision constant
Library version constant
Factory method that creates subclasses of Mongrel2::Config
.
# File lib/mongrel2/config.rb, line 265
def self::Config( source )
return Mongrel2::Config.Model( source )
end
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