Module: Lucid
- Defined in:
- lib/lucid.rb,
lib/lucid/ast.rb,
lib/lucid/unit.rb,
lib/lucid/errors.rb,
lib/lucid/facade.rb,
lib/lucid/cli/app.rb,
lib/lucid/context.rb,
lib/lucid/factory.rb,
lib/lucid/results.rb,
lib/lucid/ast/spec.rb,
lib/lucid/ast/step.rb,
lib/lucid/ast/tags.rb,
lib/lucid/platform.rb,
lib/lucid/ansicolor.rb,
lib/lucid/ast/names.rb,
lib/lucid/ast/table.rb,
lib/lucid/interface.rb,
lib/lucid/load_path.rb,
lib/lucid/spec_file.rb,
lib/lucid/ast/walker.rb,
lib/lucid/step_match.rb,
lib/lucid/ast/comment.rb,
lib/lucid/ast/feature.rb,
lib/lucid/cli/context.rb,
lib/lucid/cli/options.rb,
lib/lucid/cli/profile.rb,
lib/lucid/lang_extend.rb,
lib/lucid/spec_loader.rb,
lib/lucid/ast/examples.rb,
lib/lucid/ast/location.rb,
lib/lucid/ast/scenario.rb,
lib/lucid/formatter/io.rb,
lib/lucid/interface_io.rb,
lib/lucid/orchestrator.rb,
lib/lucid/spec_builder.rb,
lib/lucid/ast/has_steps.rb,
lib/lucid/ast/background.rb,
lib/lucid/ast/doc_string.rb,
lib/lucid/context_loader.rb,
lib/lucid/formatter/html.rb,
lib/lucid/formatter/json.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/step_definitions.rb,
lib/lucid/ast/outline_table.rb,
lib/lucid/formatter/console.rb,
lib/lucid/formatter/gpretty.rb,
lib/lucid/formatter/summary.rb,
lib/lucid/formatter/unicode.rb,
lib/lucid/formatter/duration.rb,
lib/lucid/formatter/progress.rb,
lib/lucid/formatter/standard.rb,
lib/lucid/formatter/testdefs.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/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_usage.rb,
lib/lucid/ast/multiline_argument.rb,
lib/lucid/interface_rb/rb_language.rb,
lib/lucid/interface_rb/rb_transform.rb,
lib/lucid/interface_rb/rb_step_definition.rb,
lib/lucid/formatter/gherkin_formatter_adapter.rb,
lib/lucid/interface_rb/regexp_argument_matcher.rb
Defined Under Namespace
Modules: AST, CLI, Factory, Formatter, Interface, InterfaceRb, LoadPath, Parser, Term, WindowsOutput
Classes: Ambiguous, ArityMismatchError, Context, ContextLoader, LogFormatter, NoStepMatch, Pending, SpecFile, StepDefinitionUsage, StepDefinitions, StepMatch, TagExcess, Undefined, Unit
Constant Summary
collapse
- VERSION =
'0.4.1'
- 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_backtrace ⇒ Object
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_quit ⇒ Object
Returns the value of attribute wants_to_quit.
16
17
18
|
# File 'lib/lucid.rb', line 16
def wants_to_quit
@wants_to_quit
end
|
Class Method Details
.breakdown(*args) ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/lucid.rb', line 18
def breakdown(*args)
current_output = $stdout
begin
msg_string = StringIO.new
$stdout = msg_string
pp(*args)
ensure
$stdout = current_output
end
msg_string.string
end
|
.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
|
30
31
32
33
34
35
|
# File 'lib/lucid.rb', line 30
def logger
return @log if @log
@log = Logger.new(STDOUT)
@log.level = Logger::INFO
@log
end
|
.logger=(logger) ⇒ Object
37
38
39
|
# File 'lib/lucid.rb', line 37
def logger=(logger)
@log = logger
end
|