Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com
All files in this distribution are subject to the terms of the Ruby license.
ROOT | = | File.expand_path(File.dirname(__FILE__)) unless defined?(Ramaze::ROOT) | ||
AppMap | = | Innate::URLMap.new | An application is a collection of controllers and options that have a common name. Every application has a location it dispatches from, this behaves similar to Rack::URLMap. | |
Cache | = | Innate::Cache | ||
Helper | = | Innate::Helper | ||
OpenIDStore | = | OpenID::Store::Filesystem.new(openid_store_file) | Constant for storing meta-information persistent | |
Log | = | Innate::Log | ||
DEPRECATED_CONSTANTS | = | { :BASEDIR => :ROOT, :Template => :View, :Optional => :Optioned, } | ||
VERSION | = | "2010.04.04" | ||
View | = | Innate::View |
options | [RW] |
Require all .rb and .so files on the given globs, utilizes Dir::[].
Examples:
# Given following directory structure: # src/foo.rb # src/bar.so # src/foo.yaml # src/foobar/baz.rb # src/foobar/README # requires all files in 'src': Ramaze.acquire 'src/*' # requires all files in 'src' recursive: Ramaze.acquire 'src/**/*' # require 'src/foo.rb' and 'src/bar.so' and 'src/foobar/baz.rb' Ramaze.acquire 'src/*', 'src/foobar/*'
Convenient setup and activation of gems from different sources and specific versions. It‘s almost like Kernel#gem but also installs automatically if a gem is missing.
@example
Ramaze.setup :verbose => true do # gem and specific version gem 'makura', '>=2009.01' # gem and name for require gem 'aws-s3', :lib => 'aws/s3' # gem with specific version from rubyforge (default) gem 'json', :version => '=1.1.3', :source => rubyforge # gem from github gem 'manveru-org', :lib => 'org', :source => github end
@option options [boolean] (true) verbose @option options [String] (nil) extconf @yield block @see GemSetup#initialize @author manveru