flight 0.1.1 → 0.1.2
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/lib/flight/carbon_model.rb +2 -2
- metadata +3 -3
data/lib/flight/carbon_model.rb
CHANGED
|
@@ -343,13 +343,13 @@ module BrighterPlanet
|
|
|
343
343
|
##### From aircraft class
|
|
344
344
|
# This fourth-tier method looks up the [aircraft class](http://data.brighterplanet.com/aircraft_classes)'s average number of `seats`.
|
|
345
345
|
quorum 'from aircraft class', :needs => :aircraft_class, :complies => [:ghg_protocol, :iso, :tcr] do |characteristics|
|
|
346
|
-
characteristics[:aircraft_class].
|
|
346
|
+
characteristics[:aircraft_class].seats
|
|
347
347
|
end
|
|
348
348
|
|
|
349
349
|
##### Default
|
|
350
350
|
# This default method calculates the average number of `seats` of [all segments in the T-100 database](http://data.brighterplanet.com/flight_segments), weighted by their passengers.
|
|
351
351
|
quorum 'default' do
|
|
352
|
-
FlightSegment.fallback.
|
|
352
|
+
FlightSegment.fallback.seats.to_f # need before_type_cast b/c seats is an integer but the fallback value is a float
|
|
353
353
|
end
|
|
354
354
|
end
|
|
355
355
|
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.1.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Andy Rossmeissl
|
|
@@ -191,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
191
191
|
requirements:
|
|
192
192
|
- - ">="
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
|
-
hash: -
|
|
194
|
+
hash: -903320465
|
|
195
195
|
segments:
|
|
196
196
|
- 0
|
|
197
197
|
version: "0"
|