flight 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/flight/carbon_model.rb +2 -2
  2. metadata +3 -3
@@ -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].seats_before_type_cast
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.seats_before_type_cast # need before_type_cast b/c seats is an integer but the fallback value is a float
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
- - 1
9
- version: 0.1.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: -685102193
194
+ hash: -903320465
195
195
  segments:
196
196
  - 0
197
197
  version: "0"