Sha256: a6336657361ca93c8bdf7ddbd6467d125edfff035dfb43d4e6745d24ee557884

Contents?: true

Size: 725 Bytes

Versions: 8

Compression:

Stored size: 725 Bytes

Contents

$:.unshift(File.dirname(__FILE__)) unless
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

require 'yaml'
require 'logger'
require 'lucid/platform'
require 'lucid/parser'
require 'lucid/runtime'
require 'lucid/cli/app'
require 'lucid/step_definitions'
require 'lucid/term/ansicolor'

module Lucid
  class << self
    attr_accessor :wants_to_quit

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

    def logger=(logger)
      @log = logger
    end
  end

  class LogFormatter < ::Logger::Formatter
    def call(severity, time, progname, msg)
      "\n[ LUCID (#{severity}) ] #{msg}"
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lucid-0.2.0 lib/lucid.rb
lucid-0.1.1 lib/lucid.rb
lucid-0.1.0 lib/lucid.rb
lucid-0.0.9 lib/lucid.rb
lucid-0.0.8 lib/lucid.rb
lucid-0.0.7 lib/lucid.rb
lucid-0.0.6 lib/lucid.rb
lucid-0.0.5 lib/lucid.rb