[NEW] Rails a recognized platform
[ohcount] / lib / ohcount.rb
1 module Ohcount
2 end
3
4 require 'rbconfig'
5
6 OHCOUNT_ROOT = File.dirname(__FILE__) + "/.."
7 $: << OHCOUNT_ROOT
8
9 begin
10         require 'ohcount_native'
11 rescue LoadError
12         require "lib/#{Config::CONFIG['arch']}/ohcount_native"
13 end
14
15 require "lib/ohcount/helpers"
16 require "lib/ohcount/detector"
17 require "lib/ohcount/language_breakdown"
18 require "lib/ohcount/sloc_info"
19 require "lib/ohcount/scratch_dir"
20 require "lib/ohcount/source_file"
21 require "lib/ohcount/language_facts"
22 require "lib/ohcount/gestalt_facts"
23 require "lib/ohcount/source_file_list"
24
25 require "lib/licenses/license_sniffer"
26
27 require "lib/gestalt/library"
28 require "lib/gestalt/platform"
29
30 # require the dynamic rules
31 require 'rules/libraries'
32 require 'rules/platforms'
33