lib/runby_pace/pace.rb in runby_pace-0.6.101 vs lib/runby_pace/pace.rb in runby_pace-0.6.102

- old
+ new

@@ -29,10 +29,12 @@ @time <=> RunbyTime.parse(other) end end def almost_equals?(other_pace, tolerance_time = '00:01') + return @time.almost_equals?(other_pace, tolerance_time) if other_pace.is_a?(RunbyTime) if other_pace.is_a?(String) + # TODO: Get parsing working other_pace = Pace.parse(other_pace) end tolerance = RunbyTime.new(tolerance_time) self >= (other_pace - tolerance) && self <= (other_pace + tolerance) end