Namespace for Ramaze
THINK:
* for now, we don't extend this with Innate to keep things clean. But we should eventually do it for a simple API, or people always have to find out whether something is in Innate or Ramaze. No matter which way we go, we should keep references point to the original location to avoid too much confusion for core developers.
DEPRECATED_CONSTANTS | = | { :BASEDIR => :ROOT, :Template => :View, :Optional => :Optioned, } | ||
Cache | = | Innate::Cache | ||
View | = | Innate::View | ||
VERSION | = | "2011.10.23" | ||
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. | |
Log | = | Innate::Log | ||
Helper | = | Innate::Helper | ||
OpenIDStore | = | OpenID::Store::Filesystem.new(openid_store_file) | Constant for storing meta-information persistent | |
UNSUPPORTED_GEMS | = | [ 'lokar', 'localmemcache', 'ruby-growl', 'nagoro', 'syslog' | Array containing gems that aren‘t supported for certain reasons. The gems that are in this array by default will be removed if the current setup does support them. | |
DEPENDENCIES | = | [ {:name => 'innate', :version => ['>= 2010.03']} | Array containing the names and versions of all the gems required by Ramaze along with the name of how the gem should be required. | |
DEVELOPMENT_DEPENDENCIES | = | [ {:name => 'bacon' , :version => ['>= 1.1.0']}, {:name => 'dalli' , :version => ['>= 1.0.5']}, {:name => 'erector' , :version => ['>= 0.8.2']}, {:name => 'erubis' , :version => ['>= 2.7.0']}, {:name => 'ezamar' , :version => ['>= 2009.06']}, {:name => 'sass' , :version => ['>= 3.1.4']}, {:name => 'haml' , :version => ['>= 3.1.2']}, {:name => 'hpricot' , :version => ['>= 0.8.4']}, {:name => 'liquid' , :version => ['>= 2.2.2']}, {:name => 'locale' , :version => ['>= 2.0.5']}, {:name => 'maruku' , :version => ['>= 0.6.0']}, {:name => 'mustache' , :version => ['>= 0.99.4']}, {:name => 'rack-contrib', :version => ['>= 1.1.0'], :lib => 'rack/contrib'}, {:name => 'rack-test' , :version => ['>= 0.6.0'], :lib => 'rack/test'}, {:name => 'Remarkably' , :version => ['>= 0.6.1'], :lib => 'remarkably'}, {:name => 'sequel' , :version => ['>= 3.25.0']}, {:name => 'slippers' , :version => ['>= 0.0.14']}, {:name => 'sqlite3' , :version => ['>= 1.3.3']}, {:name => 'tagz' , :version => ['>= 9.0.0']}, {:name => 'tenjin' , :version => ['>= 0.6.1']}, {:name => 'yard' , :version => ['>= 0.7.2']}, {:name => 'redis' , :version => ['>= 2.2.2']}, {:name => 'rdiscount' , :version => ['>= 1.6.8']} | Array containing all the development dependencies. | |
ROOT | = | File.expand_path(File.dirname(__FILE__)) unless defined?(Ramaze::ROOT) |
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 end
@author manveru @since 19-05-2009 @see GemSetup#initialize