emitter 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +22 -0
- data/Gemfile +3 -0
- data/LICENSE-PREAMBLE +50 -0
- data/Rakefile +22 -0
- data/emitter.gemspec +33 -0
- data/lib/emitter.rb +1 -0
- data/lib/emitter/version.rb +3 -0
- data/spec/fixtures/biplane/lib/biplane/fallback.rb +7 -0
- data/spec/fixtures/biplane/lib/biplane/relationships.rb +6 -0
- metadata +82 -84
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE-PREAMBLE
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
BRIGHTER PLANET ADDITIONAL PREAMBLE TO THE GNU AFFERO GENERAL PUBLIC LICENSE
|
2
|
+
January 7, 2011
|
3
|
+
|
4
|
+
This preamble is meant to help the licensee understand exactly what
|
5
|
+
software is being received under the license and set expectations as to
|
6
|
+
what is not covered.
|
7
|
+
|
8
|
+
IDENTITY OF THE SOFTWARE MODULE COVERED BY LICENSE:
|
9
|
+
|
10
|
+
This license covers the Brighter Planet generic emitter module, called
|
11
|
+
'emitter,' officially distributed from
|
12
|
+
http://github.com/brighterplanet/emitter.
|
13
|
+
|
14
|
+
SCOPE OF THE SOFTWARE MODULE COVERED BY LICENSE:
|
15
|
+
|
16
|
+
The scope of the license includes only those files included in the
|
17
|
+
official Brighter Planet distribution package for the emitter module,
|
18
|
+
including only the generic emitter module files.
|
19
|
+
|
20
|
+
WHAT IS NOT COVERED BY LICENSE:
|
21
|
+
|
22
|
+
This license does not extend to the following:
|
23
|
+
|
24
|
+
* Any element of any Brighter Planet website, including but not
|
25
|
+
limited the copyrights, trademarks, graphic design, text,
|
26
|
+
documentation, method of interaction with clients, runtime
|
27
|
+
environment, technical infrastructure, and software code associated
|
28
|
+
therewith;
|
29
|
+
|
30
|
+
* Any element of any Brighter Planet website user interface, including
|
31
|
+
but not limited to the copyrights, trademarks, graphic design, text,
|
32
|
+
documentation, method of interaction with clients, runtime
|
33
|
+
environment, technical infrastructure, and software code associated
|
34
|
+
therewith;
|
35
|
+
|
36
|
+
* Any element of other software modules licensed under any form of
|
37
|
+
license including but not limited to other forms of open source
|
38
|
+
license, commercial license, and the like;
|
39
|
+
|
40
|
+
* Any element of any Brighter Planet Carbon Middleware web service,
|
41
|
+
including but not limited to the copyrights, trademarks, graphic
|
42
|
+
design, text, documentation, method of interaction with clients,
|
43
|
+
runtime environment, technical infrastructure, and software code, is
|
44
|
+
not covered by the license; and
|
45
|
+
|
46
|
+
* Any aspect or use of http://carbon.brighterplanet.com.
|
47
|
+
|
48
|
+
If you have any questions, please contact licensing@brighterplanet.com
|
49
|
+
|
50
|
+
Copyright 2010, 2011 Brighter Planet, Inc.
|
data/Rakefile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
Bundler.setup
|
3
|
+
Bundler::GemHelper.install_tasks
|
4
|
+
|
5
|
+
require 'bueller'
|
6
|
+
Bueller::Tasks.new
|
7
|
+
|
8
|
+
require 'rake/rdoctask'
|
9
|
+
Rake::RDocTask.new do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'emitter'
|
12
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
13
|
+
rdoc.rdoc_files.include('README*')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
require 'sniff'
|
18
|
+
require 'sniff/rake_tasks'
|
19
|
+
Sniff::RakeTasks.define_tasks do |s|
|
20
|
+
s.cucumber = false
|
21
|
+
s.rspec = true
|
22
|
+
end
|
data/emitter.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "emitter/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'emitter'
|
7
|
+
s.version = "0.3.4"
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Andy Rossmeissl", "Seamus Abshere", "Ian Hough", "Matt Kling", 'Derek Kastner']
|
10
|
+
s.email = %q{derek@brighterplanet.com}
|
11
|
+
s.homepage = "https://github.com/brighterplanet/emitter"
|
12
|
+
s.summary = %q{The mother of all carbon models}
|
13
|
+
s.description = %q{A software model in Ruby for the greenhouse gas emissions}
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
|
20
|
+
s.add_dependency 'activesupport', '>=2.3.4'
|
21
|
+
s.add_dependency 'characterizable'
|
22
|
+
s.add_dependency 'cohort_scope'
|
23
|
+
s.add_dependency 'data_miner', '>=1.1' unless ENV['LOCAL_DATA_MINER']
|
24
|
+
s.add_dependency 'earth' unless ENV['LOCAL_EARTH']
|
25
|
+
s.add_dependency 'falls_back_on' unless ENV['LOCAL_FALLS_BACK_ON']
|
26
|
+
s.add_dependency 'leap' unless ENV['LOCAL_LEAP']
|
27
|
+
s.add_dependency 'summary_judgement'
|
28
|
+
s.add_dependency 'timeframe'
|
29
|
+
s.add_dependency 'weighted_average'
|
30
|
+
s.add_development_dependency 'activerecord', '~>3'
|
31
|
+
s.add_development_dependency 'bueller'
|
32
|
+
s.add_development_dependency 'sniff'
|
33
|
+
end
|
data/lib/emitter.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 4
|
9
|
+
version: 0.3.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andy Rossmeissl
|
@@ -18,39 +18,39 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date:
|
21
|
+
date: 2011-02-08 00:00:00 -05:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
|
-
name:
|
25
|
+
name: activesupport
|
26
26
|
requirement: &id001 !ruby/object:Gem::Requirement
|
27
27
|
none: false
|
28
28
|
requirements:
|
29
|
-
- -
|
29
|
+
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
31
|
segments:
|
32
|
+
- 2
|
32
33
|
- 3
|
33
|
-
|
34
|
-
|
34
|
+
- 4
|
35
|
+
version: 2.3.4
|
36
|
+
type: :runtime
|
35
37
|
prerelease: false
|
36
38
|
version_requirements: *id001
|
37
39
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
40
|
+
name: characterizable
|
39
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
42
|
none: false
|
41
43
|
requirements:
|
42
|
-
- -
|
44
|
+
- - ">="
|
43
45
|
- !ruby/object:Gem::Version
|
44
46
|
segments:
|
45
|
-
- 1
|
46
|
-
- 0
|
47
47
|
- 0
|
48
|
-
version:
|
49
|
-
type: :
|
48
|
+
version: "0"
|
49
|
+
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: *id002
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
|
-
name:
|
53
|
+
name: cohort_scope
|
54
54
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
55
|
none: false
|
56
56
|
requirements:
|
@@ -59,150 +59,138 @@ dependencies:
|
|
59
59
|
segments:
|
60
60
|
- 0
|
61
61
|
version: "0"
|
62
|
-
type: :
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: *id003
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
|
-
name:
|
66
|
+
name: data_miner
|
67
67
|
requirement: &id004 !ruby/object:Gem::Requirement
|
68
68
|
none: false
|
69
69
|
requirements:
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
segments:
|
73
|
-
-
|
74
|
-
|
73
|
+
- 1
|
74
|
+
- 1
|
75
|
+
version: "1.1"
|
75
76
|
type: :runtime
|
76
77
|
prerelease: false
|
77
78
|
version_requirements: *id004
|
78
79
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
80
|
+
name: earth
|
80
81
|
requirement: &id005 !ruby/object:Gem::Requirement
|
81
82
|
none: false
|
82
83
|
requirements:
|
83
|
-
- -
|
84
|
+
- - ">="
|
84
85
|
- !ruby/object:Gem::Version
|
85
86
|
segments:
|
86
87
|
- 0
|
87
|
-
|
88
|
-
version: "0.1"
|
88
|
+
version: "0"
|
89
89
|
type: :runtime
|
90
90
|
prerelease: false
|
91
91
|
version_requirements: *id005
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
93
|
+
name: falls_back_on
|
94
94
|
requirement: &id006 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
segments:
|
100
100
|
- 0
|
101
|
-
|
102
|
-
version: "0.1"
|
101
|
+
version: "0"
|
103
102
|
type: :runtime
|
104
103
|
prerelease: false
|
105
104
|
version_requirements: *id006
|
106
105
|
- !ruby/object:Gem::Dependency
|
107
|
-
name:
|
106
|
+
name: leap
|
108
107
|
requirement: &id007 !ruby/object:Gem::Requirement
|
109
108
|
none: false
|
110
109
|
requirements:
|
111
|
-
- -
|
110
|
+
- - ">="
|
112
111
|
- !ruby/object:Gem::Version
|
113
112
|
segments:
|
114
113
|
- 0
|
115
|
-
|
116
|
-
version: "0.5"
|
114
|
+
version: "0"
|
117
115
|
type: :runtime
|
118
116
|
prerelease: false
|
119
117
|
version_requirements: *id007
|
120
118
|
- !ruby/object:Gem::Dependency
|
121
|
-
name:
|
119
|
+
name: summary_judgement
|
122
120
|
requirement: &id008 !ruby/object:Gem::Requirement
|
123
121
|
none: false
|
124
122
|
requirements:
|
125
|
-
- -
|
123
|
+
- - ">="
|
126
124
|
- !ruby/object:Gem::Version
|
127
125
|
segments:
|
128
126
|
- 0
|
129
|
-
|
130
|
-
version: "0.3"
|
127
|
+
version: "0"
|
131
128
|
type: :runtime
|
132
129
|
prerelease: false
|
133
130
|
version_requirements: *id008
|
134
131
|
- !ruby/object:Gem::Dependency
|
135
|
-
name:
|
132
|
+
name: timeframe
|
136
133
|
requirement: &id009 !ruby/object:Gem::Requirement
|
137
134
|
none: false
|
138
135
|
requirements:
|
139
|
-
- -
|
136
|
+
- - ">="
|
140
137
|
- !ruby/object:Gem::Version
|
141
138
|
segments:
|
142
139
|
- 0
|
143
|
-
|
144
|
-
- 3
|
145
|
-
version: 0.0.3
|
140
|
+
version: "0"
|
146
141
|
type: :runtime
|
147
142
|
prerelease: false
|
148
143
|
version_requirements: *id009
|
149
144
|
- !ruby/object:Gem::Dependency
|
150
|
-
name:
|
145
|
+
name: weighted_average
|
151
146
|
requirement: &id010 !ruby/object:Gem::Requirement
|
152
147
|
none: false
|
153
148
|
requirements:
|
154
|
-
- -
|
149
|
+
- - ">="
|
155
150
|
- !ruby/object:Gem::Version
|
156
151
|
segments:
|
157
152
|
- 0
|
158
|
-
|
159
|
-
- 4
|
160
|
-
version: 0.4.4
|
153
|
+
version: "0"
|
161
154
|
type: :runtime
|
162
155
|
prerelease: false
|
163
156
|
version_requirements: *id010
|
164
157
|
- !ruby/object:Gem::Dependency
|
165
|
-
name:
|
158
|
+
name: activerecord
|
166
159
|
requirement: &id011 !ruby/object:Gem::Requirement
|
167
160
|
none: false
|
168
161
|
requirements:
|
169
162
|
- - ~>
|
170
163
|
- !ruby/object:Gem::Version
|
171
164
|
segments:
|
172
|
-
- 1
|
173
165
|
- 3
|
174
|
-
version: "
|
175
|
-
type: :
|
166
|
+
version: "3"
|
167
|
+
type: :development
|
176
168
|
prerelease: false
|
177
169
|
version_requirements: *id011
|
178
170
|
- !ruby/object:Gem::Dependency
|
179
|
-
name:
|
171
|
+
name: bueller
|
180
172
|
requirement: &id012 !ruby/object:Gem::Requirement
|
181
173
|
none: false
|
182
174
|
requirements:
|
183
|
-
- -
|
175
|
+
- - ">="
|
184
176
|
- !ruby/object:Gem::Version
|
185
177
|
segments:
|
186
178
|
- 0
|
187
|
-
|
188
|
-
|
189
|
-
version: 0.0.8
|
190
|
-
type: :runtime
|
179
|
+
version: "0"
|
180
|
+
type: :development
|
191
181
|
prerelease: false
|
192
182
|
version_requirements: *id012
|
193
183
|
- !ruby/object:Gem::Dependency
|
194
|
-
name:
|
184
|
+
name: sniff
|
195
185
|
requirement: &id013 !ruby/object:Gem::Requirement
|
196
186
|
none: false
|
197
187
|
requirements:
|
198
|
-
- -
|
188
|
+
- - ">="
|
199
189
|
- !ruby/object:Gem::Version
|
200
190
|
segments:
|
201
191
|
- 0
|
202
|
-
|
203
|
-
|
204
|
-
version: 0.0.4
|
205
|
-
type: :runtime
|
192
|
+
version: "0"
|
193
|
+
type: :development
|
206
194
|
prerelease: false
|
207
195
|
version_requirements: *id013
|
208
196
|
description: A software model in Ruby for the greenhouse gas emissions
|
@@ -211,35 +199,42 @@ executables: []
|
|
211
199
|
|
212
200
|
extensions: []
|
213
201
|
|
214
|
-
extra_rdoc_files:
|
215
|
-
|
216
|
-
- README.rdoc
|
202
|
+
extra_rdoc_files: []
|
203
|
+
|
217
204
|
files:
|
205
|
+
- .gitignore
|
206
|
+
- Gemfile
|
218
207
|
- LICENSE
|
208
|
+
- LICENSE-PREAMBLE
|
219
209
|
- README.rdoc
|
210
|
+
- Rakefile
|
211
|
+
- emitter.gemspec
|
220
212
|
- lib/emitter.rb
|
213
|
+
- lib/emitter/version.rb
|
221
214
|
- spec/emitter/meta_spec.rb
|
222
215
|
- spec/emitter_spec.rb
|
223
|
-
- spec/fixtures/dirigible/lib/dirigible/fallback.rb
|
224
|
-
- spec/fixtures/dirigible/lib/dirigible/carbon_model.rb
|
225
|
-
- spec/fixtures/dirigible/lib/dirigible/data.rb
|
226
|
-
- spec/fixtures/dirigible/lib/dirigible/relationships.rb
|
227
|
-
- spec/fixtures/dirigible/lib/dirigible/characterization.rb
|
228
|
-
- spec/fixtures/dirigible/lib/dirigible/summarization.rb
|
229
|
-
- spec/fixtures/dirigible/lib/dirigible.rb
|
230
216
|
- spec/fixtures/biplane/lib/biplane.rb
|
231
217
|
- spec/fixtures/biplane/lib/biplane/carbon_model.rb
|
232
|
-
- spec/fixtures/biplane/lib/biplane/data.rb
|
233
218
|
- spec/fixtures/biplane/lib/biplane/characterization.rb
|
219
|
+
- spec/fixtures/biplane/lib/biplane/data.rb
|
220
|
+
- spec/fixtures/biplane/lib/biplane/fallback.rb
|
221
|
+
- spec/fixtures/biplane/lib/biplane/relationships.rb
|
234
222
|
- spec/fixtures/biplane/lib/biplane/summarization.rb
|
223
|
+
- spec/fixtures/dirigible/lib/dirigible.rb
|
224
|
+
- spec/fixtures/dirigible/lib/dirigible/carbon_model.rb
|
225
|
+
- spec/fixtures/dirigible/lib/dirigible/characterization.rb
|
226
|
+
- spec/fixtures/dirigible/lib/dirigible/data.rb
|
227
|
+
- spec/fixtures/dirigible/lib/dirigible/fallback.rb
|
228
|
+
- spec/fixtures/dirigible/lib/dirigible/relationships.rb
|
229
|
+
- spec/fixtures/dirigible/lib/dirigible/summarization.rb
|
235
230
|
- spec/spec_helper.rb
|
236
231
|
has_rdoc: true
|
237
|
-
homepage:
|
232
|
+
homepage: https://github.com/brighterplanet/emitter
|
238
233
|
licenses: []
|
239
234
|
|
240
235
|
post_install_message:
|
241
|
-
rdoc_options:
|
242
|
-
|
236
|
+
rdoc_options: []
|
237
|
+
|
243
238
|
require_paths:
|
244
239
|
- lib
|
245
240
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -247,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
242
|
requirements:
|
248
243
|
- - ">="
|
249
244
|
- !ruby/object:Gem::Version
|
250
|
-
hash:
|
245
|
+
hash: 2896490800850256272
|
251
246
|
segments:
|
252
247
|
- 0
|
253
248
|
version: "0"
|
@@ -256,6 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
251
|
requirements:
|
257
252
|
- - ">="
|
258
253
|
- !ruby/object:Gem::Version
|
254
|
+
hash: 2896490800850256272
|
259
255
|
segments:
|
260
256
|
- 0
|
261
257
|
version: "0"
|
@@ -269,16 +265,18 @@ summary: The mother of all carbon models
|
|
269
265
|
test_files:
|
270
266
|
- spec/emitter/meta_spec.rb
|
271
267
|
- spec/emitter_spec.rb
|
272
|
-
- spec/fixtures/dirigible/lib/dirigible/fallback.rb
|
273
|
-
- spec/fixtures/dirigible/lib/dirigible/carbon_model.rb
|
274
|
-
- spec/fixtures/dirigible/lib/dirigible/data.rb
|
275
|
-
- spec/fixtures/dirigible/lib/dirigible/relationships.rb
|
276
|
-
- spec/fixtures/dirigible/lib/dirigible/characterization.rb
|
277
|
-
- spec/fixtures/dirigible/lib/dirigible/summarization.rb
|
278
|
-
- spec/fixtures/dirigible/lib/dirigible.rb
|
279
268
|
- spec/fixtures/biplane/lib/biplane.rb
|
280
269
|
- spec/fixtures/biplane/lib/biplane/carbon_model.rb
|
281
|
-
- spec/fixtures/biplane/lib/biplane/data.rb
|
282
270
|
- spec/fixtures/biplane/lib/biplane/characterization.rb
|
271
|
+
- spec/fixtures/biplane/lib/biplane/data.rb
|
272
|
+
- spec/fixtures/biplane/lib/biplane/fallback.rb
|
273
|
+
- spec/fixtures/biplane/lib/biplane/relationships.rb
|
283
274
|
- spec/fixtures/biplane/lib/biplane/summarization.rb
|
275
|
+
- spec/fixtures/dirigible/lib/dirigible.rb
|
276
|
+
- spec/fixtures/dirigible/lib/dirigible/carbon_model.rb
|
277
|
+
- spec/fixtures/dirigible/lib/dirigible/characterization.rb
|
278
|
+
- spec/fixtures/dirigible/lib/dirigible/data.rb
|
279
|
+
- spec/fixtures/dirigible/lib/dirigible/fallback.rb
|
280
|
+
- spec/fixtures/dirigible/lib/dirigible/relationships.rb
|
281
|
+
- spec/fixtures/dirigible/lib/dirigible/summarization.rb
|
284
282
|
- spec/spec_helper.rb
|