lib/earth/conversions_ext.rb in earth-0.12.0 vs lib/earth/conversions_ext.rb in earth-0.12.1
- old
+ new
@@ -57,9 +57,11 @@
Conversions.register :megajoules_per_square_metre_hour, :kbtus_per_square_foot_hour, (1.megajoules.to(:kbtus) / 1.square_metres.to(:square_feet))
Conversions.register :megajoules_per_room_night, :kbtus_per_room_night, (1.megajoules.to(:kbtus))
Conversions.register :million_btu_per_barrel, :megajoules_per_litre, (1_000_000.btus.to(:megajoules) / 1.barrels.to(:litres)) # Fuel
Conversions.register :btus_per_cubic_foot, :megajoules_per_cubic_metre, (1.btus.to(:megajoules) / 1.cubic_feet.to(:cubic_metres)) # Fuel
Conversions.register :teragrams_per_quadrillion_btu, :grams_per_megajoule, (1_000_000_000_000 / 1_000_000_000_000_000.btus.to(:megajoules)) # Fuel
+Conversions.register :kilometres_per_hour, :miles_per_hour, 1.kilometres.to(:miles)
+
# Odd units for EPA fuel economy guide
# Conversions.register :epa_gallon_gasoline_equivalents, :kilowatt_hours, 33.705
# Conversions.register :epa_gallon_gasoline_equivalents, :cubic_metres_compressed_natural_gas, 3.587
# Conversions.register :epa_gallon_gasoline_equivalents, :kilograms_hydrogen, 1.012