Permalink
Browse files

Merge branch 'master' of github.com:archivability/geo_position

  • Loading branch information...
2 parents 072133f + f3a21ac commit 6820a9ed2e3be77809c05bb8b1f799ba49d4da4d @nateklaiber nateklaiber committed Apr 12, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/geo_position/conversion/dms.rb
  2. +1 −1 lib/geo_position/version.rb
@@ -30,9 +30,9 @@ class Dms
def initialize(degrees, minutes, seconds, direction)
raise GeoPosition::Error::InvalidDirectionError.new("Please provided a direction of N, S, E, or W") unless valid_direction?(direction)
raise GeoPosition::Error::InvalidFloatError.new("Arguments could not be coerced to a float") unless valid_floats?([degrees, minutes, seconds])
- raise GeoPosition::Error::InvalidDegreesError.new("Degrees must be between 0 and 360. %s was provided" % [degrees]) unless valid_degrees?(degrees)
+ raise GeoPosition::Error::InvalidDegreesError.new("Degrees must be between 0 and 180. %s was provided" % [degrees]) unless valid_degrees?(degrees)
raise GeoPosition::Error::InvalidMinutesError.new("Minutes must be between 0 and 60. %s was provided" % [minutes]) unless valid_minutes?(minutes)
- raise GeoPosition::Error::InvalidSecondsError.new("Seonds must be between 0 and 60. %s was provided" % [seconds]) unless valid_seconds?(seconds)
+ raise GeoPosition::Error::InvalidSecondsError.new("Seconds must be between 0 and 60. %s was provided" % [seconds]) unless valid_seconds?(seconds)
@degrees = degrees
@minutes = minutes
@@ -1,3 +1,3 @@
module GeoPosition
- VERSION = "0.0.5"
+ VERSION = "0.0.6"
end

0 comments on commit 6820a9e

Please sign in to comment.