sniff 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sniff/database.rb +1 -8
- data/lib/sniff/emitter.rb +5 -0
- metadata +3 -3
data/lib/sniff/database.rb
CHANGED
@@ -84,7 +84,7 @@ module Sniff
|
|
84
84
|
end
|
85
85
|
|
86
86
|
def log(str)
|
87
|
-
logger.
|
87
|
+
logger.info str
|
88
88
|
end
|
89
89
|
|
90
90
|
def load_data?
|
@@ -141,13 +141,6 @@ module Sniff
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def load_models
|
144
|
-
require 'falls_back_on'
|
145
|
-
require 'falls_back_on/active_record_ext'
|
146
|
-
|
147
|
-
require 'cohort_scope'
|
148
|
-
require 'leap'
|
149
|
-
# require 'data_miner'
|
150
|
-
|
151
144
|
Dir["#{lib_path}/data_models/**/*.rb"].each do |lib|
|
152
145
|
log "Loading model #{lib}"
|
153
146
|
require lib
|
data/lib/sniff/emitter.rb
CHANGED
@@ -2,10 +2,15 @@ require 'summary_judgement'
|
|
2
2
|
require 'fast_timestamp'
|
3
3
|
require 'common_name'
|
4
4
|
require 'falls_back_on'
|
5
|
+
require 'falls_back_on/active_record_ext'
|
6
|
+
require 'leap'
|
7
|
+
require 'cohort_scope'
|
8
|
+
require 'data_miner'
|
5
9
|
|
6
10
|
module Sniff
|
7
11
|
module Emitter
|
8
12
|
def self.included(target)
|
13
|
+
target.send :extend, Leap::Subject
|
9
14
|
target.send :extend, ClassMethods
|
10
15
|
target.send :extend, SummaryJudgement
|
11
16
|
target.send :extend, FastTimestamp
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sniff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Derek Kastner
|