sniff 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sniff/rake_tasks.rb +7 -1
- data/lib/sniff/version.rb +1 -1
- data/spec/fixtures/dirigible/lib/dirigible.rb +26 -19
- data/spec/lib/sniff/database_spec.rb +3 -0
- metadata +17 -4
data/lib/sniff/rake_tasks.rb
CHANGED
@@ -9,7 +9,7 @@ module Sniff
|
|
9
9
|
new(&blk).define_tasks
|
10
10
|
end
|
11
11
|
|
12
|
-
attr_accessor :earth_domains, :cucumber, :rspec, :rcov, :rocco
|
12
|
+
attr_accessor :earth_domains, :cucumber, :rspec, :rcov, :rocco, :bueller
|
13
13
|
|
14
14
|
def initialize
|
15
15
|
self.earth_domains = :all
|
@@ -17,6 +17,7 @@ module Sniff
|
|
17
17
|
self.rspec = false
|
18
18
|
self.rcov = true
|
19
19
|
self.rocco = true
|
20
|
+
self.bueller = true
|
20
21
|
yield self if block_given?
|
21
22
|
end
|
22
23
|
|
@@ -153,6 +154,11 @@ module Sniff
|
|
153
154
|
rdoc.rdoc_files.include('README*')
|
154
155
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
155
156
|
end
|
157
|
+
|
158
|
+
if bueller
|
159
|
+
require 'bueller'
|
160
|
+
Bueller::Tasks.new
|
161
|
+
end
|
156
162
|
end
|
157
163
|
end
|
158
164
|
end
|
data/lib/sniff/version.rb
CHANGED
@@ -1,30 +1,37 @@
|
|
1
|
+
require "dirigible/fallback"
|
2
|
+
require 'characterizable'
|
3
|
+
require 'cohort_scope'
|
4
|
+
require 'data_miner'
|
5
|
+
require 'dirigible/carbon_model'
|
6
|
+
require 'dirigible/characterization'
|
7
|
+
require 'dirigible/data'
|
8
|
+
require 'dirigible/relationships'
|
9
|
+
require 'dirigible/summarization'
|
1
10
|
require 'emitter'
|
11
|
+
require 'falls_back_on'
|
12
|
+
require 'leap'
|
13
|
+
require 'summary_judgement'
|
2
14
|
|
3
15
|
module BrighterPlanet
|
4
16
|
module Dirigible
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
include CarbonModel
|
17
|
+
def self.included(base)
|
18
|
+
instance_variable_set :@emission_scope, @emission_scope if @emission_scope
|
19
|
+
|
20
|
+
base.extend Leap::Subject
|
21
|
+
base.send :include, CarbonModel
|
11
22
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
add_implicit_characteristics
|
23
|
+
base.send :include, Characterizable
|
24
|
+
base.send :include, Characterization
|
25
|
+
# add_implicit_characteristics
|
16
26
|
|
17
|
-
|
18
|
-
include Data
|
27
|
+
base.send :include, Data
|
19
28
|
|
20
|
-
|
21
|
-
|
22
|
-
include Summarization
|
29
|
+
base.extend SummaryJudgement
|
30
|
+
base.send :include, Summarization
|
23
31
|
|
24
|
-
|
25
|
-
require "dirigible/fallback"
|
26
|
-
include Fallback
|
32
|
+
base.send :include, Fallback
|
27
33
|
|
28
|
-
|
34
|
+
base.send :include, Relationships
|
35
|
+
end
|
29
36
|
end
|
30
37
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'fileutils'
|
3
|
+
require 'data_miner'
|
4
|
+
require 'logger'
|
3
5
|
|
4
6
|
describe Sniff::Database do
|
5
7
|
describe '#connect' do
|
@@ -8,6 +10,7 @@ describe Sniff::Database do
|
|
8
10
|
before :all do
|
9
11
|
$:.unshift File.join(dirigible_path, 'lib')
|
10
12
|
require File.join('dirigible')
|
13
|
+
DataMiner.logger = Logger.new nil
|
11
14
|
end
|
12
15
|
|
13
16
|
it 'should load the air domain' do
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 5
|
9
|
+
version: 0.6.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Derek Kastner
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-03-
|
17
|
+
date: 2011-03-08 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -213,6 +213,19 @@ dependencies:
|
|
213
213
|
type: :development
|
214
214
|
prerelease: false
|
215
215
|
version_requirements: *id014
|
216
|
+
- !ruby/object:Gem::Dependency
|
217
|
+
name: emitter
|
218
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
219
|
+
none: false
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
segments:
|
224
|
+
- 0
|
225
|
+
version: "0"
|
226
|
+
type: :development
|
227
|
+
prerelease: false
|
228
|
+
version_requirements: *id015
|
216
229
|
description: Provides development and test environment for emitter gems
|
217
230
|
email: derek.kastner@brighterplanet.com
|
218
231
|
executables: []
|
@@ -279,7 +292,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
279
292
|
requirements:
|
280
293
|
- - ">="
|
281
294
|
- !ruby/object:Gem::Version
|
282
|
-
hash: -
|
295
|
+
hash: -1292260499555144081
|
283
296
|
segments:
|
284
297
|
- 0
|
285
298
|
version: "0"
|