Module: Uncool

Defined in:
lib/uncool/app.rb,
lib/uncool/cli.rb,
lib/uncool/log.rb,
lib/uncool/unit.rb,
lib/uncool/trace.rb,
lib/uncool/report.rb,
lib/uncool/analysis.rb,
lib/uncool/meta/data.rb,
lib/uncool/generator/ko.rb,
lib/uncool/generator/qed.rb,
lib/uncool/generator/lemon.rb,
lib/uncool/generator/abstract.rb

Defined Under Namespace

Classes: Analysis, App, CLI, GeneratorAbstract, GeneratorKO, GeneratorLemon, GeneratorQED, Report, Trace, Unit

Class Method Summary collapse

Class Method Details

.__DIR__Object



5
6
7
# File 'lib/uncool/meta/data.rb', line 5

def self.__DIR__
  File.dirname(__FILE__)
end

.const_missing(name) ⇒ Object



23
24
25
26
# File 'lib/uncool/meta/data.rb', line 23

def self.const_missing(name)
  name = name.to_s.downcase
  gemfile[name] || profile[name]
end

.gemfileObject



9
10
11
12
13
14
# File 'lib/uncool/meta/data.rb', line 9

def self.gemfile
  @gemfile ||= (
    require 'yaml'
    YAML.load(File.new(__DIR__ + '/gemfile.yml'))
  )
end

.log(options = {}) ⇒ Object

Run coverage trace and log results.

targets = ENV['squeeze'].split(',')
Lemon.log(targets, :output=>'log')

NOTE: This sets up an at_exit routine.



11
12
13
14
# File 'lib/uncool/log.rb', line 11

def self.log(options={})
  app = App.new(options)
  app.log
end

.profileObject



16
17
18
19
20
21
# File 'lib/uncool/meta/data.rb', line 16

def self.profile
  @profile ||= (
    require 'yaml'
    YAML.load(File.new(__DIR__ + '/profile.yml'))
  )
end