flight 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. data/lib/flight/carbon_model.rb +1 -1
  2. metadata +3 -3
@@ -53,7 +53,7 @@ module BrighterPlanet
53
53
  ##### From fuel type
54
54
  # This method looks up data on [fuel types](http://data.brighterplanet.com/fuel_types) and divides the `fuel type` `emission factor` (*kg CO<sub>2</sub> / litre fuel*) by the `fuel type` `density` (*kg fuel / litre fuel*) to give *kg CO<sub>2</sub>e / kg fuel*.
55
55
  quorum 'from fuel type', :needs => :fuel_type, :complies => [:ghg_protocol, :iso, :tcr] do |characteristics|
56
- characteristics[:fuel_type].emission_factor / characteristics[:fuel_type].density
56
+ characteristics[:fuel_type].emission_factor.to_f / characteristics[:fuel_type].density.to_f
57
57
  end
58
58
  end
59
59
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andy Rossmeissl
@@ -202,7 +202,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
202
  requirements:
203
203
  - - ">="
204
204
  - !ruby/object:Gem::Version
205
- hash: 1003141553
205
+ hash: -164003747
206
206
  segments:
207
207
  - 0
208
208
  version: "0"