[FIX] No one really uses it, but clean up and test Language class
[ohcount] / lib / ohcount.rb
1 module Ohcount
2 end
3
4 require 'rbconfig'
5
6 OHCOUNT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
7 $: << OHCOUNT_ROOT
8 $: << File.join(OHCOUNT_ROOT, 'vendor', 'gems', 'diff-lcs-1.1.2', 'lib')
9
10 begin
11         require 'ohcount_native'
12 rescue LoadError
13         require "lib/#{Config::CONFIG['arch']}/ohcount_native"
14 end
15
16 require 'lib/ohcount/language'
17 require 'lib/ohcount/loc'
18 require 'lib/ohcount/loc_list'
19 require 'lib/ohcount/loc_delta'
20 require 'lib/ohcount/loc_delta_list'
21
22 require "lib/ohcount/scratch_dir"
23 require "lib/ohcount/helpers"
24 require "lib/ohcount/detector"
25 require "lib/ohcount/language_breakdown"
26 require "lib/ohcount/source_file"
27 require "lib/ohcount/source_file_list"
28 require "lib/ohcount/gestalt_facts"
29
30 require "lib/licenses/license_sniffer"
31
32 require "lib/gestalt/platform"
33 require "lib/gestalt/tool"
34
35 require 'rules/platforms'
36 require 'rules/tools'