pet 0.0.8 → 0.0.9
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/LICENSE +5 -5
- data/README.rdoc +17 -17
- data/lib/pet.rb +4 -17
- metadata +66 -165
data/LICENSE
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Copyright (c) 2010 Brighter Planet
|
|
2
|
-
|
|
3
|
-
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
|
4
|
-
|
|
5
|
-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
1
|
+
Copyright (c) 2010 Brighter Planet
|
|
2
|
+
|
|
3
|
+
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
|
4
|
+
|
|
5
|
+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
data/README.rdoc
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
= pet
|
|
2
|
-
|
|
3
|
-
Description goes here.
|
|
4
|
-
|
|
5
|
-
== Note on Patches/Pull Requests
|
|
6
|
-
|
|
7
|
-
* Fork the project.
|
|
8
|
-
* Make your feature addition or bug fix.
|
|
9
|
-
* Add tests for it. This is important so I don't break it in a
|
|
10
|
-
future version unintentionally.
|
|
11
|
-
* Commit, do not mess with rakefile, version, or history.
|
|
12
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
|
13
|
-
* Send me a pull request. Bonus points for topic branches.
|
|
14
|
-
|
|
15
|
-
== Copyright
|
|
16
|
-
|
|
17
|
-
Copyright (c) 2010 Brighter Planet. See LICENSE for details.
|
|
1
|
+
= pet
|
|
2
|
+
|
|
3
|
+
Description goes here.
|
|
4
|
+
|
|
5
|
+
== Note on Patches/Pull Requests
|
|
6
|
+
|
|
7
|
+
* Fork the project.
|
|
8
|
+
* Make your feature addition or bug fix.
|
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
|
10
|
+
future version unintentionally.
|
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
|
12
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
|
13
|
+
* Send me a pull request. Bonus points for topic branches.
|
|
14
|
+
|
|
15
|
+
== Copyright
|
|
16
|
+
|
|
17
|
+
Copyright (c) 2010 Brighter Planet. See LICENSE for details.
|
data/lib/pet.rb
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
|
+
require 'emitter'
|
|
2
|
+
|
|
1
3
|
module BrighterPlanet
|
|
2
4
|
module Pet
|
|
3
|
-
extend
|
|
4
|
-
|
|
5
|
-
def included(base)
|
|
6
|
-
require 'cohort_scope'
|
|
7
|
-
require 'falls_back_on'
|
|
8
|
-
require 'falls_back_on/active_record_ext'
|
|
5
|
+
extend BrighterPlanet::Emitter
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
require 'pet/characterization'
|
|
12
|
-
require 'pet/data'
|
|
13
|
-
require 'pet/summarization'
|
|
14
|
-
|
|
15
|
-
base.send :include, BrighterPlanet::Pet::CarbonModel
|
|
16
|
-
base.send :include, BrighterPlanet::Pet::Characterization
|
|
17
|
-
base.send :include, BrighterPlanet::Pet::Data
|
|
18
|
-
base.send :include, BrighterPlanet::Pet::Summarization
|
|
19
|
-
end
|
|
20
|
-
def pet_model
|
|
7
|
+
def self.pet_model
|
|
21
8
|
if Object.const_defined? 'Pet'
|
|
22
9
|
::Pet
|
|
23
10
|
elsif Object.const_defined? 'PetRecord'
|
metadata
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 13
|
|
4
5
|
prerelease: false
|
|
5
6
|
segments:
|
|
6
7
|
- 0
|
|
7
8
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
9
|
+
- 9
|
|
10
|
+
version: 0.0.9
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
13
|
- Andy Rossmeissl
|
|
@@ -18,31 +19,36 @@ autorequire:
|
|
|
18
19
|
bindir: bin
|
|
19
20
|
cert_chain: []
|
|
20
21
|
|
|
21
|
-
date: 2010-08-
|
|
22
|
+
date: 2010-08-12 00:00:00 -04:00
|
|
22
23
|
default_executable:
|
|
23
24
|
dependencies:
|
|
24
25
|
- !ruby/object:Gem::Dependency
|
|
25
|
-
|
|
26
|
+
type: :development
|
|
26
27
|
prerelease: false
|
|
27
|
-
|
|
28
|
+
name: activerecord
|
|
29
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
|
30
|
+
none: false
|
|
28
31
|
requirements:
|
|
29
32
|
- - "="
|
|
30
33
|
- !ruby/object:Gem::Version
|
|
34
|
+
hash: -1848230024
|
|
31
35
|
segments:
|
|
32
36
|
- 3
|
|
33
37
|
- 0
|
|
34
38
|
- 0
|
|
35
39
|
- beta4
|
|
36
40
|
version: 3.0.0.beta4
|
|
37
|
-
|
|
38
|
-
version_requirements: *id001
|
|
41
|
+
requirement: *id001
|
|
39
42
|
- !ruby/object:Gem::Dependency
|
|
40
|
-
|
|
43
|
+
type: :development
|
|
41
44
|
prerelease: false
|
|
42
|
-
|
|
45
|
+
name: bundler
|
|
46
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
|
47
|
+
none: false
|
|
43
48
|
requirements:
|
|
44
49
|
- - ">="
|
|
45
50
|
- !ruby/object:Gem::Version
|
|
51
|
+
hash: 62196359
|
|
46
52
|
segments:
|
|
47
53
|
- 1
|
|
48
54
|
- 0
|
|
@@ -50,67 +56,77 @@ dependencies:
|
|
|
50
56
|
- beta
|
|
51
57
|
- 2
|
|
52
58
|
version: 1.0.0.beta.2
|
|
53
|
-
|
|
54
|
-
version_requirements: *id002
|
|
59
|
+
requirement: *id002
|
|
55
60
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
|
|
61
|
+
type: :development
|
|
57
62
|
prerelease: false
|
|
58
|
-
|
|
63
|
+
name: cucumber
|
|
64
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
59
66
|
requirements:
|
|
60
67
|
- - "="
|
|
61
68
|
- !ruby/object:Gem::Version
|
|
69
|
+
hash: 57
|
|
62
70
|
segments:
|
|
63
71
|
- 0
|
|
64
72
|
- 8
|
|
65
73
|
- 3
|
|
66
74
|
version: 0.8.3
|
|
67
|
-
|
|
68
|
-
version_requirements: *id003
|
|
75
|
+
requirement: *id003
|
|
69
76
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
|
|
77
|
+
type: :development
|
|
71
78
|
prerelease: false
|
|
72
|
-
|
|
79
|
+
name: jeweler
|
|
80
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
|
81
|
+
none: false
|
|
73
82
|
requirements:
|
|
74
83
|
- - "="
|
|
75
84
|
- !ruby/object:Gem::Version
|
|
85
|
+
hash: 7
|
|
76
86
|
segments:
|
|
77
87
|
- 1
|
|
78
88
|
- 4
|
|
79
89
|
- 0
|
|
80
90
|
version: 1.4.0
|
|
81
|
-
|
|
82
|
-
version_requirements: *id004
|
|
91
|
+
requirement: *id004
|
|
83
92
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
|
|
93
|
+
type: :development
|
|
85
94
|
prerelease: false
|
|
86
|
-
|
|
95
|
+
name: rake
|
|
96
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
|
97
|
+
none: false
|
|
87
98
|
requirements:
|
|
88
99
|
- - ">="
|
|
89
100
|
- !ruby/object:Gem::Version
|
|
101
|
+
hash: 3
|
|
90
102
|
segments:
|
|
91
103
|
- 0
|
|
92
104
|
version: "0"
|
|
93
|
-
|
|
94
|
-
version_requirements: *id005
|
|
105
|
+
requirement: *id005
|
|
95
106
|
- !ruby/object:Gem::Dependency
|
|
96
|
-
|
|
107
|
+
type: :development
|
|
97
108
|
prerelease: false
|
|
98
|
-
|
|
109
|
+
name: rdoc
|
|
110
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
|
111
|
+
none: false
|
|
99
112
|
requirements:
|
|
100
113
|
- - ">="
|
|
101
114
|
- !ruby/object:Gem::Version
|
|
115
|
+
hash: 3
|
|
102
116
|
segments:
|
|
103
117
|
- 0
|
|
104
118
|
version: "0"
|
|
105
|
-
|
|
106
|
-
version_requirements: *id006
|
|
119
|
+
requirement: *id006
|
|
107
120
|
- !ruby/object:Gem::Dependency
|
|
108
|
-
|
|
121
|
+
type: :development
|
|
109
122
|
prerelease: false
|
|
110
|
-
|
|
123
|
+
name: rspec
|
|
124
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
|
125
|
+
none: false
|
|
111
126
|
requirements:
|
|
112
127
|
- - "="
|
|
113
128
|
- !ruby/object:Gem::Version
|
|
129
|
+
hash: 62196417
|
|
114
130
|
segments:
|
|
115
131
|
- 2
|
|
116
132
|
- 0
|
|
@@ -118,161 +134,39 @@ dependencies:
|
|
|
118
134
|
- beta
|
|
119
135
|
- 17
|
|
120
136
|
version: 2.0.0.beta.17
|
|
121
|
-
|
|
122
|
-
version_requirements: *id007
|
|
137
|
+
requirement: *id007
|
|
123
138
|
- !ruby/object:Gem::Dependency
|
|
124
|
-
|
|
139
|
+
type: :development
|
|
125
140
|
prerelease: false
|
|
126
|
-
|
|
141
|
+
name: sniff
|
|
142
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
|
143
|
+
none: false
|
|
127
144
|
requirements:
|
|
128
145
|
- - "="
|
|
129
146
|
- !ruby/object:Gem::Version
|
|
147
|
+
hash: 3
|
|
130
148
|
segments:
|
|
131
149
|
- 0
|
|
132
150
|
- 0
|
|
133
151
|
- 14
|
|
134
152
|
version: 0.0.14
|
|
135
|
-
|
|
136
|
-
version_requirements: *id008
|
|
137
|
-
- !ruby/object:Gem::Dependency
|
|
138
|
-
name: characterizable
|
|
139
|
-
prerelease: false
|
|
140
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
|
141
|
-
requirements:
|
|
142
|
-
- - "="
|
|
143
|
-
- !ruby/object:Gem::Version
|
|
144
|
-
segments:
|
|
145
|
-
- 0
|
|
146
|
-
- 0
|
|
147
|
-
- 12
|
|
148
|
-
version: 0.0.12
|
|
149
|
-
type: :runtime
|
|
150
|
-
version_requirements: *id009
|
|
151
|
-
- !ruby/object:Gem::Dependency
|
|
152
|
-
name: cohort_scope
|
|
153
|
-
prerelease: false
|
|
154
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
|
155
|
-
requirements:
|
|
156
|
-
- - ~>
|
|
157
|
-
- !ruby/object:Gem::Version
|
|
158
|
-
segments:
|
|
159
|
-
- 0
|
|
160
|
-
- 0
|
|
161
|
-
version: "0.0"
|
|
162
|
-
type: :runtime
|
|
163
|
-
version_requirements: *id010
|
|
153
|
+
requirement: *id008
|
|
164
154
|
- !ruby/object:Gem::Dependency
|
|
165
|
-
name: data_miner
|
|
166
|
-
prerelease: false
|
|
167
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
|
168
|
-
requirements:
|
|
169
|
-
- - "="
|
|
170
|
-
- !ruby/object:Gem::Version
|
|
171
|
-
segments:
|
|
172
|
-
- 0
|
|
173
|
-
- 5
|
|
174
|
-
- 2
|
|
175
|
-
version: 0.5.2
|
|
176
155
|
type: :runtime
|
|
177
|
-
version_requirements: *id011
|
|
178
|
-
- !ruby/object:Gem::Dependency
|
|
179
|
-
name: earth
|
|
180
156
|
prerelease: false
|
|
181
|
-
|
|
157
|
+
name: emitter
|
|
158
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
|
159
|
+
none: false
|
|
182
160
|
requirements:
|
|
183
161
|
- - ">="
|
|
184
162
|
- !ruby/object:Gem::Version
|
|
163
|
+
hash: 29
|
|
185
164
|
segments:
|
|
186
165
|
- 0
|
|
187
166
|
- 0
|
|
188
|
-
- 7
|
|
189
|
-
version: 0.0.7
|
|
190
|
-
type: :runtime
|
|
191
|
-
version_requirements: *id012
|
|
192
|
-
- !ruby/object:Gem::Dependency
|
|
193
|
-
name: falls_back_on
|
|
194
|
-
prerelease: false
|
|
195
|
-
requirement: &id013 !ruby/object:Gem::Requirement
|
|
196
|
-
requirements:
|
|
197
|
-
- - "="
|
|
198
|
-
- !ruby/object:Gem::Version
|
|
199
|
-
segments:
|
|
200
|
-
- 0
|
|
201
|
-
- 0
|
|
202
|
-
- 2
|
|
203
|
-
version: 0.0.2
|
|
204
|
-
type: :runtime
|
|
205
|
-
version_requirements: *id013
|
|
206
|
-
- !ruby/object:Gem::Dependency
|
|
207
|
-
name: fast_timestamp
|
|
208
|
-
prerelease: false
|
|
209
|
-
requirement: &id014 !ruby/object:Gem::Requirement
|
|
210
|
-
requirements:
|
|
211
|
-
- - "="
|
|
212
|
-
- !ruby/object:Gem::Version
|
|
213
|
-
segments:
|
|
214
|
-
- 0
|
|
215
|
-
- 0
|
|
216
|
-
- 4
|
|
217
|
-
version: 0.0.4
|
|
218
|
-
type: :runtime
|
|
219
|
-
version_requirements: *id014
|
|
220
|
-
- !ruby/object:Gem::Dependency
|
|
221
|
-
name: leap
|
|
222
|
-
prerelease: false
|
|
223
|
-
requirement: &id015 !ruby/object:Gem::Requirement
|
|
224
|
-
requirements:
|
|
225
|
-
- - ">="
|
|
226
|
-
- !ruby/object:Gem::Version
|
|
227
|
-
segments:
|
|
228
|
-
- 0
|
|
229
|
-
- 4
|
|
230
|
-
- 1
|
|
231
|
-
version: 0.4.1
|
|
232
|
-
type: :runtime
|
|
233
|
-
version_requirements: *id015
|
|
234
|
-
- !ruby/object:Gem::Dependency
|
|
235
|
-
name: summary_judgement
|
|
236
|
-
prerelease: false
|
|
237
|
-
requirement: &id016 !ruby/object:Gem::Requirement
|
|
238
|
-
requirements:
|
|
239
|
-
- - "="
|
|
240
|
-
- !ruby/object:Gem::Version
|
|
241
|
-
segments:
|
|
242
167
|
- 1
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
version: 1.3.8
|
|
246
|
-
type: :runtime
|
|
247
|
-
version_requirements: *id016
|
|
248
|
-
- !ruby/object:Gem::Dependency
|
|
249
|
-
name: timeframe
|
|
250
|
-
prerelease: false
|
|
251
|
-
requirement: &id017 !ruby/object:Gem::Requirement
|
|
252
|
-
requirements:
|
|
253
|
-
- - "="
|
|
254
|
-
- !ruby/object:Gem::Version
|
|
255
|
-
segments:
|
|
256
|
-
- 0
|
|
257
|
-
- 0
|
|
258
|
-
- 8
|
|
259
|
-
version: 0.0.8
|
|
260
|
-
type: :runtime
|
|
261
|
-
version_requirements: *id017
|
|
262
|
-
- !ruby/object:Gem::Dependency
|
|
263
|
-
name: weighted_average
|
|
264
|
-
prerelease: false
|
|
265
|
-
requirement: &id018 !ruby/object:Gem::Requirement
|
|
266
|
-
requirements:
|
|
267
|
-
- - "="
|
|
268
|
-
- !ruby/object:Gem::Version
|
|
269
|
-
segments:
|
|
270
|
-
- 0
|
|
271
|
-
- 0
|
|
272
|
-
- 4
|
|
273
|
-
version: 0.0.4
|
|
274
|
-
type: :runtime
|
|
275
|
-
version_requirements: *id018
|
|
168
|
+
version: 0.0.1
|
|
169
|
+
requirement: *id009
|
|
276
170
|
description: A software model in Ruby for the greenhouse gas emissions of an pet
|
|
277
171
|
email: andy@rossmeissl.net
|
|
278
172
|
executables: []
|
|
@@ -292,6 +186,9 @@ files:
|
|
|
292
186
|
- lib/pet/summarization.rb
|
|
293
187
|
- lib/test_support/db/schema.rb
|
|
294
188
|
- lib/test_support/pet_record.rb
|
|
189
|
+
- features/support/env.rb
|
|
190
|
+
- features/pet_committees.feature
|
|
191
|
+
- features/pet_emissions.feature
|
|
295
192
|
has_rdoc: true
|
|
296
193
|
homepage: http://github.com/brighterplanet/pet
|
|
297
194
|
licenses: []
|
|
@@ -302,23 +199,27 @@ rdoc_options:
|
|
|
302
199
|
require_paths:
|
|
303
200
|
- lib
|
|
304
201
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
|
+
none: false
|
|
305
203
|
requirements:
|
|
306
204
|
- - ">="
|
|
307
205
|
- !ruby/object:Gem::Version
|
|
206
|
+
hash: 3
|
|
308
207
|
segments:
|
|
309
208
|
- 0
|
|
310
209
|
version: "0"
|
|
311
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
|
+
none: false
|
|
312
212
|
requirements:
|
|
313
213
|
- - ">="
|
|
314
214
|
- !ruby/object:Gem::Version
|
|
215
|
+
hash: 3
|
|
315
216
|
segments:
|
|
316
217
|
- 0
|
|
317
218
|
version: "0"
|
|
318
219
|
requirements: []
|
|
319
220
|
|
|
320
221
|
rubyforge_project:
|
|
321
|
-
rubygems_version: 1.3.
|
|
222
|
+
rubygems_version: 1.3.7
|
|
322
223
|
signing_key:
|
|
323
224
|
specification_version: 3
|
|
324
225
|
summary: A carbon model
|