earth 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/earth/air/flight_segment/data_miner.rb +3 -3
- metadata +66 -270
@@ -164,7 +164,7 @@ FlightSegment.class_eval do
|
|
164
164
|
integer 'departures_performed'
|
165
165
|
integer 'passengers'
|
166
166
|
integer 'total_seats'
|
167
|
-
float 'payload' #
|
167
|
+
float 'payload' # theoretical max freight + mail + passengers; needs to be a float because the import includes a units conversion
|
168
168
|
string 'payload_units'
|
169
169
|
float 'freight' # this needs to be a float because the import includes a units conversion
|
170
170
|
string 'freight_units'
|
@@ -299,8 +299,8 @@ FlightSegment.class_eval do
|
|
299
299
|
end
|
300
300
|
end
|
301
301
|
|
302
|
-
process "Derive freight share as a fraction of
|
303
|
-
update_all 'freight_share = (freight + mail) /
|
302
|
+
process "Derive freight share as a fraction of the total weight carried" do
|
303
|
+
update_all 'freight_share = (freight + mail) / (freight + mail + (passengers * 90.718474))', '(freight + mail + passengers) > 0'
|
304
304
|
end
|
305
305
|
|
306
306
|
process "Derive load factor, which is passengers divided by the total seats available" do
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: earth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Seamus Abshere
|
@@ -19,233 +20,15 @@ cert_chain: []
|
|
19
20
|
date: 2010-11-19 00:00:00 -05:00
|
20
21
|
default_executable:
|
21
22
|
dependencies:
|
22
|
-
- !ruby/object:Gem::Dependency
|
23
|
-
name: earth
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
32
|
-
type: :runtime
|
33
|
-
prerelease: false
|
34
|
-
version_requirements: *id001
|
35
23
|
- !ruby/object:Gem::Dependency
|
36
24
|
name: activerecord
|
37
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
segments:
|
43
|
-
- 3
|
44
|
-
- 0
|
45
|
-
- 0
|
46
|
-
- beta4
|
47
|
-
version: 3.0.0.beta4
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: data_miner
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
|
-
requirements:
|
56
|
-
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
- 5
|
61
|
-
- 6
|
62
|
-
version: 0.5.6
|
63
|
-
type: :runtime
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: falls_back_on
|
68
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
|
-
requirements:
|
71
|
-
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
segments:
|
74
|
-
- 0
|
75
|
-
- 0
|
76
|
-
- 3
|
77
|
-
version: 0.0.3
|
78
|
-
type: :runtime
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: *id004
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: geokit
|
83
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
-
none: false
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
segments:
|
89
|
-
- 1
|
90
|
-
- 5
|
91
|
-
- 0
|
92
|
-
version: 1.5.0
|
93
|
-
type: :runtime
|
94
|
-
prerelease: false
|
95
|
-
version_requirements: *id005
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: cohort_scope
|
98
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
segments:
|
104
|
-
- 0
|
105
|
-
- 0
|
106
|
-
- 7
|
107
|
-
version: 0.0.7
|
108
|
-
type: :runtime
|
109
|
-
prerelease: false
|
110
|
-
version_requirements: *id006
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: conversions
|
113
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
|
-
requirements:
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
segments:
|
119
|
-
- 1
|
120
|
-
- 4
|
121
|
-
- 5
|
122
|
-
version: 1.4.5
|
123
|
-
type: :runtime
|
124
|
-
prerelease: false
|
125
|
-
version_requirements: *id007
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: weighted_average
|
128
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ">="
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
- 0
|
136
|
-
- 4
|
137
|
-
version: 0.0.4
|
138
|
-
type: :runtime
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: *id008
|
141
|
-
- !ruby/object:Gem::Dependency
|
142
|
-
name: loose_tight_dictionary
|
143
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
144
|
-
none: false
|
145
|
-
requirements:
|
146
|
-
- - ">="
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
segments:
|
149
|
-
- 0
|
150
|
-
- 0
|
151
|
-
- 8
|
152
|
-
version: 0.0.8
|
153
|
-
type: :runtime
|
154
|
-
prerelease: false
|
155
|
-
version_requirements: *id009
|
156
|
-
- !ruby/object:Gem::Dependency
|
157
|
-
name: rspec
|
158
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
159
|
-
none: false
|
160
|
-
requirements:
|
161
|
-
- - ">="
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
segments:
|
164
|
-
- 2
|
165
|
-
- 0
|
166
|
-
- 0
|
167
|
-
- beta
|
168
|
-
- 17
|
169
|
-
version: 2.0.0.beta.17
|
170
|
-
type: :development
|
171
|
-
prerelease: false
|
172
|
-
version_requirements: *id010
|
173
|
-
- !ruby/object:Gem::Dependency
|
174
|
-
name: rake
|
175
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
176
|
-
none: false
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
segments:
|
181
|
-
- 0
|
182
|
-
version: "0"
|
183
|
-
type: :development
|
184
|
-
prerelease: false
|
185
|
-
version_requirements: *id011
|
186
|
-
- !ruby/object:Gem::Dependency
|
187
|
-
name: jeweler
|
188
|
-
requirement: &id012 !ruby/object:Gem::Requirement
|
189
|
-
none: false
|
190
|
-
requirements:
|
191
|
-
- - "="
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
segments:
|
194
|
-
- 1
|
195
|
-
- 5
|
196
|
-
- 0
|
197
|
-
version: 1.5.0
|
198
|
-
type: :development
|
199
|
-
prerelease: false
|
200
|
-
version_requirements: *id012
|
201
|
-
- !ruby/object:Gem::Dependency
|
202
|
-
name: rcov
|
203
|
-
requirement: &id013 !ruby/object:Gem::Requirement
|
204
|
-
none: false
|
205
|
-
requirements:
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
segments:
|
209
|
-
- 0
|
210
|
-
version: "0"
|
211
|
-
type: :development
|
212
|
-
prerelease: false
|
213
|
-
version_requirements: *id013
|
214
|
-
- !ruby/object:Gem::Dependency
|
215
|
-
name: rdoc
|
216
|
-
requirement: &id014 !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
|
-
requirements:
|
219
|
-
- - ">="
|
220
|
-
- !ruby/object:Gem::Version
|
221
|
-
segments:
|
222
|
-
- 0
|
223
|
-
version: "0"
|
224
|
-
type: :development
|
225
|
-
prerelease: false
|
226
|
-
version_requirements: *id014
|
227
|
-
- !ruby/object:Gem::Dependency
|
228
|
-
name: sqlite3-ruby
|
229
|
-
requirement: &id015 !ruby/object:Gem::Requirement
|
230
|
-
none: false
|
231
|
-
requirements:
|
232
|
-
- - ">="
|
233
|
-
- !ruby/object:Gem::Version
|
234
|
-
segments:
|
235
|
-
- 1
|
236
|
-
- 3
|
237
|
-
- 0
|
238
|
-
version: 1.3.0
|
239
|
-
type: :development
|
240
25
|
prerelease: false
|
241
|
-
|
242
|
-
- !ruby/object:Gem::Dependency
|
243
|
-
name: activerecord
|
244
|
-
requirement: &id016 !ruby/object:Gem::Requirement
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
245
27
|
none: false
|
246
28
|
requirements:
|
247
29
|
- - ">="
|
248
30
|
- !ruby/object:Gem::Version
|
31
|
+
hash: -1848230024
|
249
32
|
segments:
|
250
33
|
- 3
|
251
34
|
- 0
|
@@ -253,120 +36,128 @@ dependencies:
|
|
253
36
|
- beta4
|
254
37
|
version: 3.0.0.beta4
|
255
38
|
type: :runtime
|
256
|
-
|
257
|
-
version_requirements: *id016
|
39
|
+
version_requirements: *id001
|
258
40
|
- !ruby/object:Gem::Dependency
|
259
41
|
name: data_miner
|
260
|
-
|
42
|
+
prerelease: false
|
43
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
261
44
|
none: false
|
262
45
|
requirements:
|
263
46
|
- - ~>
|
264
47
|
- !ruby/object:Gem::Version
|
48
|
+
hash: 7
|
265
49
|
segments:
|
266
50
|
- 0
|
267
51
|
- 5
|
268
52
|
- 6
|
269
53
|
version: 0.5.6
|
270
54
|
type: :runtime
|
271
|
-
|
272
|
-
version_requirements: *id017
|
55
|
+
version_requirements: *id002
|
273
56
|
- !ruby/object:Gem::Dependency
|
274
57
|
name: falls_back_on
|
275
|
-
|
58
|
+
prerelease: false
|
59
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
276
60
|
none: false
|
277
61
|
requirements:
|
278
62
|
- - ">="
|
279
63
|
- !ruby/object:Gem::Version
|
64
|
+
hash: 25
|
280
65
|
segments:
|
281
66
|
- 0
|
282
67
|
- 0
|
283
68
|
- 3
|
284
69
|
version: 0.0.3
|
285
70
|
type: :runtime
|
286
|
-
|
287
|
-
version_requirements: *id018
|
71
|
+
version_requirements: *id003
|
288
72
|
- !ruby/object:Gem::Dependency
|
289
73
|
name: geokit
|
290
|
-
|
74
|
+
prerelease: false
|
75
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
291
76
|
none: false
|
292
77
|
requirements:
|
293
78
|
- - ">="
|
294
79
|
- !ruby/object:Gem::Version
|
80
|
+
hash: 3
|
295
81
|
segments:
|
296
82
|
- 1
|
297
83
|
- 5
|
298
84
|
- 0
|
299
85
|
version: 1.5.0
|
300
86
|
type: :runtime
|
301
|
-
|
302
|
-
version_requirements: *id019
|
87
|
+
version_requirements: *id004
|
303
88
|
- !ruby/object:Gem::Dependency
|
304
89
|
name: cohort_scope
|
305
|
-
|
90
|
+
prerelease: false
|
91
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
306
92
|
none: false
|
307
93
|
requirements:
|
308
94
|
- - ">="
|
309
95
|
- !ruby/object:Gem::Version
|
96
|
+
hash: 17
|
310
97
|
segments:
|
311
98
|
- 0
|
312
99
|
- 0
|
313
100
|
- 7
|
314
101
|
version: 0.0.7
|
315
102
|
type: :runtime
|
316
|
-
|
317
|
-
version_requirements: *id020
|
103
|
+
version_requirements: *id005
|
318
104
|
- !ruby/object:Gem::Dependency
|
319
105
|
name: conversions
|
320
|
-
|
106
|
+
prerelease: false
|
107
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
321
108
|
none: false
|
322
109
|
requirements:
|
323
110
|
- - ">="
|
324
111
|
- !ruby/object:Gem::Version
|
112
|
+
hash: 13
|
325
113
|
segments:
|
326
114
|
- 1
|
327
115
|
- 4
|
328
116
|
- 5
|
329
117
|
version: 1.4.5
|
330
118
|
type: :runtime
|
331
|
-
|
332
|
-
version_requirements: *id021
|
119
|
+
version_requirements: *id006
|
333
120
|
- !ruby/object:Gem::Dependency
|
334
121
|
name: weighted_average
|
335
|
-
|
122
|
+
prerelease: false
|
123
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
336
124
|
none: false
|
337
125
|
requirements:
|
338
126
|
- - ">="
|
339
127
|
- !ruby/object:Gem::Version
|
128
|
+
hash: 23
|
340
129
|
segments:
|
341
130
|
- 0
|
342
131
|
- 0
|
343
132
|
- 4
|
344
133
|
version: 0.0.4
|
345
134
|
type: :runtime
|
346
|
-
|
347
|
-
version_requirements: *id022
|
135
|
+
version_requirements: *id007
|
348
136
|
- !ruby/object:Gem::Dependency
|
349
137
|
name: loose_tight_dictionary
|
350
|
-
|
138
|
+
prerelease: false
|
139
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
351
140
|
none: false
|
352
141
|
requirements:
|
353
142
|
- - ">="
|
354
143
|
- !ruby/object:Gem::Version
|
144
|
+
hash: 15
|
355
145
|
segments:
|
356
146
|
- 0
|
357
147
|
- 0
|
358
148
|
- 8
|
359
149
|
version: 0.0.8
|
360
150
|
type: :runtime
|
361
|
-
|
362
|
-
version_requirements: *id023
|
151
|
+
version_requirements: *id008
|
363
152
|
- !ruby/object:Gem::Dependency
|
364
153
|
name: rspec
|
365
|
-
|
154
|
+
prerelease: false
|
155
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
366
156
|
none: false
|
367
157
|
requirements:
|
368
158
|
- - ">="
|
369
159
|
- !ruby/object:Gem::Version
|
160
|
+
hash: 62196417
|
370
161
|
segments:
|
371
162
|
- 2
|
372
163
|
- 0
|
@@ -375,77 +166,81 @@ dependencies:
|
|
375
166
|
- 17
|
376
167
|
version: 2.0.0.beta.17
|
377
168
|
type: :development
|
378
|
-
|
379
|
-
version_requirements: *id024
|
169
|
+
version_requirements: *id009
|
380
170
|
- !ruby/object:Gem::Dependency
|
381
171
|
name: rake
|
382
|
-
|
172
|
+
prerelease: false
|
173
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
383
174
|
none: false
|
384
175
|
requirements:
|
385
176
|
- - ">="
|
386
177
|
- !ruby/object:Gem::Version
|
178
|
+
hash: 3
|
387
179
|
segments:
|
388
180
|
- 0
|
389
181
|
version: "0"
|
390
182
|
type: :development
|
391
|
-
|
392
|
-
version_requirements: *id025
|
183
|
+
version_requirements: *id010
|
393
184
|
- !ruby/object:Gem::Dependency
|
394
185
|
name: jeweler
|
395
|
-
|
186
|
+
prerelease: false
|
187
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
396
188
|
none: false
|
397
189
|
requirements:
|
398
190
|
- - "="
|
399
191
|
- !ruby/object:Gem::Version
|
192
|
+
hash: 3
|
400
193
|
segments:
|
401
194
|
- 1
|
402
195
|
- 5
|
403
196
|
- 0
|
404
197
|
version: 1.5.0
|
405
198
|
type: :development
|
406
|
-
|
407
|
-
version_requirements: *id026
|
199
|
+
version_requirements: *id011
|
408
200
|
- !ruby/object:Gem::Dependency
|
409
201
|
name: rcov
|
410
|
-
|
202
|
+
prerelease: false
|
203
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
411
204
|
none: false
|
412
205
|
requirements:
|
413
206
|
- - ">="
|
414
207
|
- !ruby/object:Gem::Version
|
208
|
+
hash: 3
|
415
209
|
segments:
|
416
210
|
- 0
|
417
211
|
version: "0"
|
418
212
|
type: :development
|
419
|
-
|
420
|
-
version_requirements: *id027
|
213
|
+
version_requirements: *id012
|
421
214
|
- !ruby/object:Gem::Dependency
|
422
215
|
name: rdoc
|
423
|
-
|
216
|
+
prerelease: false
|
217
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
424
218
|
none: false
|
425
219
|
requirements:
|
426
220
|
- - ">="
|
427
221
|
- !ruby/object:Gem::Version
|
222
|
+
hash: 3
|
428
223
|
segments:
|
429
224
|
- 0
|
430
225
|
version: "0"
|
431
226
|
type: :development
|
432
|
-
|
433
|
-
version_requirements: *id028
|
227
|
+
version_requirements: *id013
|
434
228
|
- !ruby/object:Gem::Dependency
|
435
229
|
name: sqlite3-ruby
|
436
|
-
|
230
|
+
prerelease: false
|
231
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
437
232
|
none: false
|
438
233
|
requirements:
|
439
234
|
- - ">="
|
440
235
|
- !ruby/object:Gem::Version
|
236
|
+
hash: 27
|
441
237
|
segments:
|
442
238
|
- 1
|
443
239
|
- 3
|
444
240
|
- 0
|
445
241
|
version: 1.3.0
|
446
242
|
type: :development
|
447
|
-
|
448
|
-
version_requirements: *id029
|
243
|
+
version_requirements: *id014
|
449
244
|
description: An earth-simulation environment with ActiveRecord models and data
|
450
245
|
email: andy@rossmeissl.net
|
451
246
|
executables: []
|
@@ -630,18 +425,18 @@ files:
|
|
630
425
|
- vendor/geokit-rails/test/schema.rb
|
631
426
|
- vendor/geokit-rails/test/tasks.rake
|
632
427
|
- vendor/geokit-rails/test/test_helper.rb
|
633
|
-
- Gemfile
|
634
|
-
- Gemfile.lock
|
635
428
|
- spec/earth/air/aircraft_spec.rb
|
636
429
|
- spec/earth_spec.rb
|
637
430
|
- spec/spec_helper.rb
|
431
|
+
- Gemfile
|
432
|
+
- Gemfile.lock
|
638
433
|
has_rdoc: true
|
639
434
|
homepage: http://github.com/brighterplanet/earth
|
640
435
|
licenses: []
|
641
436
|
|
642
437
|
post_install_message:
|
643
|
-
rdoc_options:
|
644
|
-
|
438
|
+
rdoc_options:
|
439
|
+
- --charset=UTF-8
|
645
440
|
require_paths:
|
646
441
|
- lib
|
647
442
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -649,7 +444,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
649
444
|
requirements:
|
650
445
|
- - ">="
|
651
446
|
- !ruby/object:Gem::Version
|
652
|
-
hash:
|
447
|
+
hash: 3
|
653
448
|
segments:
|
654
449
|
- 0
|
655
450
|
version: "0"
|
@@ -658,6 +453,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
658
453
|
requirements:
|
659
454
|
- - ">="
|
660
455
|
- !ruby/object:Gem::Version
|
456
|
+
hash: 3
|
661
457
|
segments:
|
662
458
|
- 0
|
663
459
|
version: "0"
|
@@ -669,8 +465,8 @@ signing_key:
|
|
669
465
|
specification_version: 3
|
670
466
|
summary: Land, sky, and sea
|
671
467
|
test_files:
|
672
|
-
- Gemfile
|
673
|
-
- Gemfile.lock
|
674
468
|
- spec/earth/air/aircraft_spec.rb
|
675
469
|
- spec/earth_spec.rb
|
676
470
|
- spec/spec_helper.rb
|
471
|
+
- Gemfile
|
472
|
+
- Gemfile.lock
|