Module: Lucid

Defined in:
lib/lucid.rb,
lib/lucid/ast.rb,
lib/lucid/unit.rb,
lib/lucid/errors.rb,
lib/lucid/cli/app.rb,
lib/lucid/factory.rb,
lib/lucid/runtime.rb,
lib/lucid/ast/step.rb,
lib/lucid/ast/tags.rb,
lib/lucid/platform.rb,
lib/lucid/ast/names.rb,
lib/lucid/ast/specs.rb,
lib/lucid/ast/table.rb,
lib/lucid/generator.rb,
lib/lucid/interface.rb,
lib/lucid/load_path.rb,
lib/lucid/spec_file.rb,
lib/lucid/step_match.rb,
lib/lucid/ast/comment.rb,
lib/lucid/ast/feature.rb,
lib/lucid/cli/options.rb,
lib/lucid/cli/profile.rb,
lib/lucid/tdl_builder.rb,
lib/lucid/ast/examples.rb,
lib/lucid/ast/location.rb,
lib/lucid/ast/scenario.rb,
lib/lucid/formatter/io.rb,
lib/lucid/ast/has_steps.rb,
lib/lucid/configuration.rb,
lib/lucid/ast/background.rb,
lib/lucid/ast/doc_string.rb,
lib/lucid/ast/tdl_walker.rb,
lib/lucid/formatter/html.rb,
lib/lucid/formatter/json.rb,
lib/lucid/runtime/facade.rb,
lib/lucid/term/ansicolor.rb,
lib/lucid/ast/step_result.rb,
lib/lucid/formatter/debug.rb,
lib/lucid/formatter/junit.rb,
lib/lucid/formatter/rerun.rb,
lib/lucid/formatter/steps.rb,
lib/lucid/formatter/usage.rb,
lib/lucid/runtime/results.rb,
lib/lucid/step_definitions.rb,
lib/lucid/ast/outline_table.rb,
lib/lucid/cli/configuration.rb,
lib/lucid/formatter/console.rb,
lib/lucid/formatter/gpretty.rb,
lib/lucid/formatter/summary.rb,
lib/lucid/formatter/unicode.rb,
lib/lucid/interface_methods.rb,
lib/lucid/formatter/duration.rb,
lib/lucid/formatter/progress.rb,
lib/lucid/formatter/standard.rb,
lib/lucid/formatter/testdefs.rb,
lib/lucid/generators/project.rb,
lib/lucid/ast/step_collection.rb,
lib/lucid/ast/step_invocation.rb,
lib/lucid/formatter/ansicolor.rb,
lib/lucid/formatter/condensed.rb,
lib/lucid/ast/empty_background.rb,
lib/lucid/ast/scenario_outline.rb,
lib/lucid/ast/step_invocations.rb,
lib/lucid/interface_rb/matcher.rb,
lib/lucid/interface_rb/rb_hook.rb,
lib/lucid/runtime/interface_io.rb,
lib/lucid/runtime/orchestrator.rb,
lib/lucid/runtime/specs_loader.rb,
lib/lucid/formatter/interceptor.rb,
lib/lucid/formatter/json_pretty.rb,
lib/lucid/interface_rb/rb_lucid.rb,
lib/lucid/interface_rb/rb_world.rb,
lib/lucid/step_definition_light.rb,
lib/lucid/ast/multiline_argument.rb,
lib/lucid/core_ext/instance_exec.rb,
lib/lucid/wire_support/connection.rb,
lib/lucid/interface_rb/rb_language.rb,
lib/lucid/wire_support/wire_packet.rb,
lib/lucid/interface_rb/rb_transform.rb,
lib/lucid/wire_support/configuration.rb,
lib/lucid/wire_support/wire_language.rb,
lib/lucid/wire_support/wire_protocol.rb,
lib/lucid/wire_support/wire_exception.rb,
lib/lucid/wire_support/request_handler.rb,
lib/lucid/interface_rb/rb_step_definition.rb,
lib/lucid/wire_support/wire_step_definition.rb,
lib/lucid/formatter/gherkin_formatter_adapter.rb,
lib/lucid/wire_support/wire_protocol/requests.rb,
lib/lucid/interface_rb/regexp_argument_matcher.rb

Defined Under Namespace

Modules: AST, CLI, Formatter, Generators, Interface, InterfaceRb, LoadPath, ObjectFactory, Parser, Term, WindowsOutput, WireSupport Classes: Ambiguous, ArityMismatchError, Configuration, Generator, LogFormatter, NoStepMatch, Pending, Runtime, SpecFile, StepDefinitionLight, StepDefinitions, StepMatch, TagExcess, Undefined, Unit

Constant Summary collapse

VERSION =
'0.3.0'
BINARY =
File.expand_path(File.dirname(__FILE__) + '/../../bin/lucid')
LIBDIR =
File.expand_path(File.dirname(__FILE__) + '/../../lib')
JRUBY =
defined?(JRUBY_VERSION)
IRONRUBY =
defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ironruby'
WINDOWS =
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
OS_X =
RbConfig::CONFIG['host_os'] =~ /darwin/
WINDOWS_MRI =
WINDOWS && !JRUBY && !IRONRUBY
RAILS =
defined?(Rails)
RUBY_BINARY =
File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
RUBY_2_0 =
RUBY_VERSION =~ /^2\.0/
RUBY_1_9 =
RUBY_VERSION =~ /^1\.9/
CODEPAGE =
"cp1252"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.use_full_backtraceObject

Returns the value of attribute use_full_backtrace.



19
20
21
# File 'lib/lucid/platform.rb', line 19

def use_full_backtrace
  @use_full_backtrace
end

.wants_to_quitObject

Returns the value of attribute wants_to_quit.



14
15
16
# File 'lib/lucid.rb', line 14

def wants_to_quit
  @wants_to_quit
end

Class Method Details

.file_mode(m, encoding = 'UTF-8') ⇒ Object



21
22
23
# File 'lib/lucid/platform.rb', line 21

def file_mode(m, encoding='UTF-8')
  "#{m}:#{encoding}"
end

.loggerObject



16
17
18
19
20
21
# File 'lib/lucid.rb', line 16

def logger
  return @log if @log
  @log = Logger.new(STDOUT)
  @log.level = Logger::INFO
  @log
end

.logger=(logger) ⇒ Object



23
24
25
# File 'lib/lucid.rb', line 23

def logger=(logger)
  @log = logger
end