bus_trip 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/LICENSE +5 -5
  2. data/README.rdoc +17 -17
  3. data/lib/bus_trip.rb +4 -17
  4. metadata +33 -132
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
- = bus_trip
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
+ = bus_trip
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/bus_trip.rb CHANGED
@@ -1,23 +1,10 @@
1
+ require 'emitter'
2
+
1
3
  module BrighterPlanet
2
4
  module BusTrip
3
- extend self
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
- require 'bus_trip/carbon_model'
11
- require 'bus_trip/characterization'
12
- require 'bus_trip/data'
13
- require 'bus_trip/summarization'
14
-
15
- base.send :include, BrighterPlanet::BusTrip::CarbonModel
16
- base.send :include, BrighterPlanet::BusTrip::Characterization
17
- base.send :include, BrighterPlanet::BusTrip::Data
18
- base.send :include, BrighterPlanet::BusTrip::Summarization
19
- end
20
- def bus_trip_model
7
+ def self.bus_trip_model
21
8
  if Object.const_defined? 'BusTrip'
22
9
  ::BusTrip
23
10
  elsif Object.const_defined? 'BusTripRecord'
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bus_trip
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 15
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 7
9
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
10
11
  platform: ruby
11
12
  authors:
12
13
  - Andy Rossmeissl
@@ -18,16 +19,18 @@ autorequire:
18
19
  bindir: bin
19
20
  cert_chain: []
20
21
 
21
- date: 2010-08-11 00:00:00 -05:00
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
  name: activerecord
26
27
  prerelease: false
27
28
  requirement: &id001 !ruby/object:Gem::Requirement
29
+ none: false
28
30
  requirements:
29
31
  - - "="
30
32
  - !ruby/object:Gem::Version
33
+ hash: -1848230024
31
34
  segments:
32
35
  - 3
33
36
  - 0
@@ -40,9 +43,11 @@ dependencies:
40
43
  name: bundler
41
44
  prerelease: false
42
45
  requirement: &id002 !ruby/object:Gem::Requirement
46
+ none: false
43
47
  requirements:
44
48
  - - ">="
45
49
  - !ruby/object:Gem::Version
50
+ hash: 62196359
46
51
  segments:
47
52
  - 1
48
53
  - 0
@@ -56,9 +61,11 @@ dependencies:
56
61
  name: cucumber
57
62
  prerelease: false
58
63
  requirement: &id003 !ruby/object:Gem::Requirement
64
+ none: false
59
65
  requirements:
60
66
  - - "="
61
67
  - !ruby/object:Gem::Version
68
+ hash: 57
62
69
  segments:
63
70
  - 0
64
71
  - 8
@@ -70,9 +77,11 @@ dependencies:
70
77
  name: jeweler
71
78
  prerelease: false
72
79
  requirement: &id004 !ruby/object:Gem::Requirement
80
+ none: false
73
81
  requirements:
74
82
  - - "="
75
83
  - !ruby/object:Gem::Version
84
+ hash: 7
76
85
  segments:
77
86
  - 1
78
87
  - 4
@@ -84,9 +93,11 @@ dependencies:
84
93
  name: rake
85
94
  prerelease: false
86
95
  requirement: &id005 !ruby/object:Gem::Requirement
96
+ none: false
87
97
  requirements:
88
98
  - - ">="
89
99
  - !ruby/object:Gem::Version
100
+ hash: 3
90
101
  segments:
91
102
  - 0
92
103
  version: "0"
@@ -96,9 +107,11 @@ dependencies:
96
107
  name: rdoc
97
108
  prerelease: false
98
109
  requirement: &id006 !ruby/object:Gem::Requirement
110
+ none: false
99
111
  requirements:
100
112
  - - ">="
101
113
  - !ruby/object:Gem::Version
114
+ hash: 3
102
115
  segments:
103
116
  - 0
104
117
  version: "0"
@@ -108,9 +121,11 @@ dependencies:
108
121
  name: rspec
109
122
  prerelease: false
110
123
  requirement: &id007 !ruby/object:Gem::Requirement
124
+ none: false
111
125
  requirements:
112
126
  - - "="
113
127
  - !ruby/object:Gem::Version
128
+ hash: 62196417
114
129
  segments:
115
130
  - 2
116
131
  - 0
@@ -124,9 +139,11 @@ dependencies:
124
139
  name: sniff
125
140
  prerelease: false
126
141
  requirement: &id008 !ruby/object:Gem::Requirement
142
+ none: false
127
143
  requirements:
128
144
  - - "="
129
145
  - !ruby/object:Gem::Version
146
+ hash: 11
130
147
  segments:
131
148
  - 0
132
149
  - 0
@@ -135,144 +152,21 @@ dependencies:
135
152
  type: :development
136
153
  version_requirements: *id008
137
154
  - !ruby/object:Gem::Dependency
138
- name: characterizable
155
+ name: emitter
139
156
  prerelease: false
140
157
  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
164
- - !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
- type: :runtime
177
- version_requirements: *id011
178
- - !ruby/object:Gem::Dependency
179
- name: earth
180
- prerelease: false
181
- requirement: &id012 !ruby/object:Gem::Requirement
158
+ none: false
182
159
  requirements:
183
160
  - - ">="
184
161
  - !ruby/object:Gem::Version
162
+ hash: 29
185
163
  segments:
186
164
  - 0
187
165
  - 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
166
  - 1
231
- version: 0.4.1
167
+ version: 0.0.1
232
168
  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
- - 1
243
- - 3
244
- - 8
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
169
+ version_requirements: *id009
276
170
  description: A software model in Ruby for the greenhouse gas emissions of a bus trip
277
171
  email: andy@rossmeissl.net
278
172
  executables: []
@@ -292,6 +186,9 @@ files:
292
186
  - lib/bus_trip/summarization.rb
293
187
  - lib/test_support/bus_trip_record.rb
294
188
  - lib/test_support/db/schema.rb
189
+ - features/support/env.rb
190
+ - features/bus_trip_committees.feature
191
+ - features/bus_trip_emissions.feature
295
192
  has_rdoc: true
296
193
  homepage: http://github.com/brighterplanet/bus_trip
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.6
222
+ rubygems_version: 1.3.7
322
223
  signing_key:
323
224
  specification_version: 3
324
225
  summary: A carbon model