README.textile in haversine-0.3.0 vs README.textile in haversine-0.3.1

- old
+ new

@@ -16,32 +16,24 @@ distance.class => Haversine::Distance distance.to_miles => 6032.71091869803 distance.to_kilometers => 9715.47049115903 distance.to_meters => 9715470.49115903 distance.to_feet => 31852713.6507256 +distance.to_nautical_miles => 5242.2799481204265 </pre> Convenience aliases for the measurements exist: <pre> distance.to_kilometers == distance.to_km distance.to_meters == distance.to_m distance.to_miles == distance.to_mi distance.to_feet == distance.to_ft +distance.to_nautical_miles == distance.to_nm </pre> Note that @to_m@ is the distance in meters, not miles. - puts "#{dist[:feet]}" - puts "#{dist.meters}" - puts "#{dist[:km]}" - puts "#{dist[:miles]}" - puts "#{dist.to_mi}" - puts "#{dist.to_miles_}" - dist[:km].to_s.should match(/7\.376*/) - dist.to_km.to_s.should match(/7\.376*/) -end - If you have lat/lon pairs stored in an array, you can alternately provide two arrays when calling @Haversine.distance@: <pre> require 'haversine' new_york_city = [40.71427, -74.00597] @@ -62,6 +54,6 @@ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it. h2. Copyright Copyright (c) 2011 Kristian Mandrup. See LICENSE.txt for -further details. \ No newline at end of file +further details.