sniff 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +1 -1
  2. data/lib/sniff.rb +4 -4
  3. data/lib/sniff/emitter.rb +0 -10
  4. metadata +20 -116
@@ -1,5 +1,5 @@
1
1
  # sniff
2
- Development and testing environment for Brighter Planet emitters.
2
+ Development environment for Brighter Planet emitters.
3
3
 
4
4
  ## Background
5
5
  Brighter Planet's emitters, such as [`flight`](http://github.com/brighterplanet/flight), inhabit a complex production runtime environment backing its [emission estimates web service](http://carbon.brighterplanet.com). Sniff simulates this environment, including representative data, fixtures, and other supporting code, so that developers can test improvements to the emitters before submitting them back to Brighter Planet.
@@ -10,14 +10,14 @@ module Sniff
10
10
 
11
11
  Sniff::Database.init local_root, options
12
12
 
13
- step_definitions = Dir.glob File.join(File.dirname(__FILE__), 'test_support', 'step_definitions', '**', '*.rb')
14
- step_definitions.each { |definition| require definition }
13
+ if defined?(Cucumber)
14
+ step_definitions = Dir.glob File.join(File.dirname(__FILE__), 'test_support', 'step_definitions', '**', '*.rb')
15
+ step_definitions.each { |definition| require definition }
16
+ end
15
17
  end
16
18
  end
17
19
 
18
20
  require 'earth'
19
- require 'characterizable'
20
- require 'timeframe'
21
21
 
22
22
  $:.unshift File.dirname(__FILE__)
23
23
  require 'sniff/database'
@@ -1,21 +1,11 @@
1
- require 'summary_judgement'
2
1
  require 'fast_timestamp'
3
2
  require 'common_name'
4
- require 'falls_back_on'
5
- require 'falls_back_on/active_record_ext'
6
- require 'leap'
7
- require 'cohort_scope'
8
- require 'data_miner'
9
3
 
10
4
  module Sniff
11
5
  module Emitter
12
6
  def self.included(target)
13
7
  target.instance_eval do
14
- extend Leap::Subject
15
8
  extend ClassMethods
16
- extend SummaryJudgement
17
- extend FastTimestamp
18
- include Characterizable
19
9
  include CommonName
20
10
  end
21
11
  end
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Derek Kastner
@@ -68,91 +68,11 @@ dependencies:
68
68
  - 0
69
69
  version: 1.3.0
70
70
  requirement: *id003
71
- - !ruby/object:Gem::Dependency
72
- type: :runtime
73
- prerelease: false
74
- name: falls_back_on
75
- version_requirements: &id004 !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - "="
79
- - !ruby/object:Gem::Version
80
- hash: 27
81
- segments:
82
- - 0
83
- - 0
84
- - 2
85
- version: 0.0.2
86
- requirement: *id004
87
- - !ruby/object:Gem::Dependency
88
- type: :runtime
89
- prerelease: false
90
- name: cohort_scope
91
- version_requirements: &id005 !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - "="
95
- - !ruby/object:Gem::Version
96
- hash: 21
97
- segments:
98
- - 0
99
- - 0
100
- - 5
101
- version: 0.0.5
102
- requirement: *id005
103
- - !ruby/object:Gem::Dependency
104
- type: :runtime
105
- prerelease: false
106
- name: leap
107
- version_requirements: &id006 !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - "="
111
- - !ruby/object:Gem::Version
112
- hash: 21
113
- segments:
114
- - 0
115
- - 3
116
- - 3
117
- version: 0.3.3
118
- requirement: *id006
119
- - !ruby/object:Gem::Dependency
120
- type: :runtime
121
- prerelease: false
122
- name: summary_judgement
123
- version_requirements: &id007 !ruby/object:Gem::Requirement
124
- none: false
125
- requirements:
126
- - - "="
127
- - !ruby/object:Gem::Version
128
- hash: 11
129
- segments:
130
- - 1
131
- - 3
132
- - 8
133
- version: 1.3.8
134
- requirement: *id007
135
- - !ruby/object:Gem::Dependency
136
- type: :runtime
137
- prerelease: false
138
- name: fast_timestamp
139
- version_requirements: &id008 !ruby/object:Gem::Requirement
140
- none: false
141
- requirements:
142
- - - "="
143
- - !ruby/object:Gem::Version
144
- hash: 23
145
- segments:
146
- - 0
147
- - 0
148
- - 4
149
- version: 0.0.4
150
- requirement: *id008
151
71
  - !ruby/object:Gem::Dependency
152
72
  type: :runtime
153
73
  prerelease: false
154
74
  name: common_name
155
- version_requirements: &id009 !ruby/object:Gem::Requirement
75
+ version_requirements: &id004 !ruby/object:Gem::Requirement
156
76
  none: false
157
77
  requirements:
158
78
  - - "="
@@ -163,28 +83,12 @@ dependencies:
163
83
  - 1
164
84
  - 5
165
85
  version: 0.1.5
166
- requirement: *id009
167
- - !ruby/object:Gem::Dependency
168
- type: :runtime
169
- prerelease: false
170
- name: timeframe
171
- version_requirements: &id010 !ruby/object:Gem::Requirement
172
- none: false
173
- requirements:
174
- - - "="
175
- - !ruby/object:Gem::Version
176
- hash: 29
177
- segments:
178
- - 0
179
- - 0
180
- - 1
181
- version: 0.0.1
182
- requirement: *id010
86
+ requirement: *id004
183
87
  - !ruby/object:Gem::Dependency
184
88
  type: :runtime
185
89
  prerelease: false
186
90
  name: earth
187
- version_requirements: &id011 !ruby/object:Gem::Requirement
91
+ version_requirements: &id005 !ruby/object:Gem::Requirement
188
92
  none: false
189
93
  requirements:
190
94
  - - "="
@@ -195,12 +99,12 @@ dependencies:
195
99
  - 0
196
100
  - 7
197
101
  version: 0.0.7
198
- requirement: *id011
102
+ requirement: *id005
199
103
  - !ruby/object:Gem::Dependency
200
104
  type: :development
201
105
  prerelease: false
202
106
  name: bundler
203
- version_requirements: &id012 !ruby/object:Gem::Requirement
107
+ version_requirements: &id006 !ruby/object:Gem::Requirement
204
108
  none: false
205
109
  requirements:
206
110
  - - ">="
@@ -209,12 +113,12 @@ dependencies:
209
113
  segments:
210
114
  - 0
211
115
  version: "0"
212
- requirement: *id012
116
+ requirement: *id006
213
117
  - !ruby/object:Gem::Dependency
214
118
  type: :development
215
119
  prerelease: false
216
120
  name: jeweler
217
- version_requirements: &id013 !ruby/object:Gem::Requirement
121
+ version_requirements: &id007 !ruby/object:Gem::Requirement
218
122
  none: false
219
123
  requirements:
220
124
  - - ">="
@@ -223,12 +127,12 @@ dependencies:
223
127
  segments:
224
128
  - 0
225
129
  version: "0"
226
- requirement: *id013
130
+ requirement: *id007
227
131
  - !ruby/object:Gem::Dependency
228
132
  type: :development
229
133
  prerelease: false
230
134
  name: rake
231
- version_requirements: &id014 !ruby/object:Gem::Requirement
135
+ version_requirements: &id008 !ruby/object:Gem::Requirement
232
136
  none: false
233
137
  requirements:
234
138
  - - ">="
@@ -237,12 +141,12 @@ dependencies:
237
141
  segments:
238
142
  - 0
239
143
  version: "0"
240
- requirement: *id014
144
+ requirement: *id008
241
145
  - !ruby/object:Gem::Dependency
242
146
  type: :development
243
147
  prerelease: false
244
148
  name: rspec
245
- version_requirements: &id015 !ruby/object:Gem::Requirement
149
+ version_requirements: &id009 !ruby/object:Gem::Requirement
246
150
  none: false
247
151
  requirements:
248
152
  - - "="
@@ -255,12 +159,12 @@ dependencies:
255
159
  - beta
256
160
  - 17
257
161
  version: 2.0.0.beta.17
258
- requirement: *id015
162
+ requirement: *id009
259
163
  - !ruby/object:Gem::Dependency
260
164
  type: :development
261
165
  prerelease: false
262
166
  name: rcov
263
- version_requirements: &id016 !ruby/object:Gem::Requirement
167
+ version_requirements: &id010 !ruby/object:Gem::Requirement
264
168
  none: false
265
169
  requirements:
266
170
  - - ">="
@@ -269,12 +173,12 @@ dependencies:
269
173
  segments:
270
174
  - 0
271
175
  version: "0"
272
- requirement: *id016
176
+ requirement: *id010
273
177
  - !ruby/object:Gem::Dependency
274
178
  type: :development
275
179
  prerelease: false
276
180
  name: rdoc
277
- version_requirements: &id017 !ruby/object:Gem::Requirement
181
+ version_requirements: &id011 !ruby/object:Gem::Requirement
278
182
  none: false
279
183
  requirements:
280
184
  - - ">="
@@ -283,10 +187,10 @@ dependencies:
283
187
  segments:
284
188
  - 0
285
189
  version: "0"
286
- requirement: *id017
190
+ requirement: *id011
287
191
  description: |
288
192
  # sniff
289
- Development and testing environment for Brighter Planet emitters.
193
+ Development environment for Brighter Planet emitters.
290
194
 
291
195
  ## Background
292
196
  Brighter Planet's emitters, such as [`flight`](http://github.com/brighterplanet/flight), inhabit a complex production runtime environment backing its [emission estimates web service](http://carbon.brighterplanet.com). Sniff simulates this environment, including representative data, fixtures, and other supporting code, so that developers can test improvements to the emitters before submitting them back to Brighter Planet.