Module: Waw
- Defined in:
- lib/waw/kern/living_state.rb,
lib/waw.rb,
lib/waw/config.rb,
lib/waw/errors.rb,
lib/waw/crawler.rb,
lib/waw/restart.rb,
lib/waw/routing.rb,
lib/waw/session.rb,
lib/waw/version.rb,
lib/waw/kern/app.rb,
lib/waw/fullstate.rb,
lib/waw/wspec/dsl.rb,
lib/waw/controller.rb,
lib/waw/kern/hooks.rb,
lib/waw/kern/utils.rb,
lib/waw/validation.rb,
lib/waw/routing/dsl.rb,
lib/waw/scope_utils.rb,
lib/waw/wspec/suite.rb,
lib/waw/wawgen/create.rb,
lib/waw/wspec/browser.rb,
lib/waw/kern/lifecycle.rb,
lib/waw/wawgen/project.rb,
lib/waw/wspec/scenario.rb,
lib/waw/routing/refresh.rb,
lib/waw/tools/mail/mail.rb,
lib/waw/commands/command.rb,
lib/waw/routing/feedback.rb,
lib/waw/routing/redirect.rb,
lib/waw/environment_utils.rb,
lib/waw/kern/living_state.rb,
lib/waw/validation/errors.rb,
lib/waw/fullstate/on_class.rb,
lib/waw/fullstate/variable.rb,
lib/waw/kern/freezed_state.rb,
lib/waw/routing/javascript.rb,
lib/waw/tools/mail/mailbox.rb,
lib/waw/validation/helpers.rb,
lib/waw/resource_collection.rb,
lib/waw/tools/mail/template.rb,
lib/waw/wspec/html_analysis.rb,
lib/waw/controllers/no_cache.rb,
lib/waw/routing/routing_rule.rb,
lib/waw/validation/signature.rb,
lib/waw/validation/validator.rb,
lib/waw/fullstate/on_instance.rb,
lib/waw/tools/mail/mail_agent.rb,
lib/waw/commands/crawl_command.rb,
lib/waw/commands/start_command.rb,
lib/waw/routing/action_routing.rb,
lib/waw/crawler/crawler_options.rb,
lib/waw/validation/or_validator.rb,
lib/waw/wspec/html_analysis/tag.rb,
lib/waw/commands/profile_command.rb,
lib/waw/controllers/static/match.rb,
lib/waw/crawler/crawler_listener.rb,
lib/waw/validation/and_validator.rb,
lib/waw/validation/not_validator.rb,
lib/waw/controllers/action/action.rb,
lib/waw/controllers/error_handler.rb,
lib/waw/validation/date_validator.rb,
lib/waw/validation/file_validator.rb,
lib/waw/validation/isin_validator.rb,
lib/waw/validation/same_validator.rb,
lib/waw/controllers/static/matcher.rb,
lib/waw/validation/float_validator.rb,
lib/waw/controllers/error/backtrace.rb,
lib/waw/controllers/json_controller.rb,
lib/waw/validation/regexp_validator.rb,
lib/waw/validation/size_validations.rb,
lib/waw/validation/string_validator.rb,
lib/waw/validation/array_validations.rb,
lib/waw/validation/boolean_validator.rb,
lib/waw/validation/default_validator.rb,
lib/waw/validation/integer_validator.rb,
lib/waw/validation/missing_validator.rb,
lib/waw/controllers/action_controller.rb,
lib/waw/controllers/static/waw_access.rb,
lib/waw/controllers/static_controller.rb,
lib/waw/validation/datetime_validator.rb,
lib/waw/validation/mandatory_validator.rb,
lib/waw/controllers/action/action_utils.rb,
lib/waw/controllers/action/js_generation.rb,
lib/waw/routing/form_validation_feedback.rb,
lib/waw/controllers/static/waw_access_dsl.rb,
lib/waw/validation/comparison_validations.rb
Overview
module Waw
Defined Under Namespace
Modules: Commands, EnvironmentUtils, FullState, Kern, Routing, ScopeUtils, Tools, Validation, Version, WSpec, Wawgen Classes: ActionController, Config, ConfigurationError, Controller, Crawler, ErrorHandler, JSONController, NoCache, ResourceCollection, Restart, Session, StaticController, WawError
Constant Summary collapse
- GEM_REQUIREMENTS =
Requirements on gems for this version
{ :rack => '>= 1.2.1', :wlang => '>= 0.9.0', :json => '>= 1.1.9' }
- WAW_KERNELS_LOCK =
Waw loading mutex
Mutex.new
- KERNELS =
Loaded kernels
[]
- VERSION =
Version.to_s
Class Method Summary collapse
-
.autoload(from) ⇒ Object
Autoloads and returns a waw application.
- .kernel ⇒ Object
- .kernel=(kernel) ⇒ Object
-
.logger ⇒ Object
Returns the waw logger, which always works on STDOUT.
-
.logger=(logger) ⇒ Object
Install a logger on waw itself.
-
.method_missing(name, *args, &block) ⇒ Object
Install other deprecated methods now.
-
.rack(&block) ⇒ Object
Loads a rack application.
Class Method Details
.autoload(from) ⇒ Object
Autoloads and returns a waw application
22 23 24 25 26 27 |
# File 'lib/waw.rb', line 22 def self.autoload(from) WAW_KERNELS_LOCK.synchronize { KERNELS << (app = ::Waw::Kern::App.new) app.autoload(from) } end |
.kernel=(kernel) ⇒ Object
42 43 44 |
# File 'lib/waw.rb', line 42 def self.kernel=(kernel) KERNELS << kernel end |
.logger ⇒ Object
Returns the waw logger, which always works on STDOUT
52 53 54 |
# File 'lib/waw.rb', line 52 def self.logger @logger || (self.kernel && self.kernel.logger) || Logger.new(STDOUT) end |
.logger=(logger) ⇒ Object
Install a logger on waw itself
47 48 49 |
# File 'lib/waw.rb', line 47 def self.logger=(logger) @logger = logger end |
.method_missing(name, *args, &block) ⇒ Object
Install other deprecated methods now
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/waw.rb', line 57 def self.method_missing(name, *args, &block) k = self.kernel if k and k.respond_to?(name) $waw_deprecated_io << "Waw.#{name} will be removed in version 0.3.0. "\ "Please use the current kernel instance instead." if $waw_deprecated_io k.send(name, *args, &block) else super(name, *args, &block) end end |