Sha256: b753316a65e43603e67ba052d2a8f0b7f4a151c5ae54452afe247aed3080df59

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

# -*- ruby -*-
# frozen_string_literal: true

require 'loggability'
require 'cztop'

#
# A Mongrel2 connector and configuration library for Ruby.
#
# == Author/s
#
# * Michael Granger <ged@FaerieMUD.org>
# * Mahlon E. Smith <mahlon@martini.nu>
#
module Mongrel2
	extend Loggability

	# Loggability API -- set up Mongrel2 as a log host
	log_as :mongrel2


	abort "\n\n>>> Mongrel2 requires Ruby 2.4 or later. <<<\n\n" if RUBY_VERSION < '2.4.0'

	# Library version constant
	VERSION = '0.55.0'

	# Version-control revision constant
	REVISION = %q$Revision$


	require 'mongrel2/constants'
	include Mongrel2::Constants


	### Get the library version. If +include_buildnum+ is true, the version string will
	### include the VCS rev ID.
	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


	require 'mongrel2/exceptions'
	require 'mongrel2/connection'
	require 'mongrel2/handler'
	require 'mongrel2/request'
	require 'mongrel2/httprequest'
	require 'mongrel2/jsonrequest'
	require 'mongrel2/xmlrequest'
	require 'mongrel2/websocket'
	require 'mongrel2/response'
	require 'mongrel2/control'

end # module Mongrel2


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongrel2-0.55.0 lib/mongrel2.rb