lib/attractor/duration_parser.rb in attractor-2.0.5 vs lib/attractor/duration_parser.rb in attractor-2.1.0

- old
+ new

@@ -2,13 +2,13 @@ module Attractor # converts a duration string into an amount of days class DurationParser TOKENS = { - 'd' => 1, - 'w' => 7, - 'm' => 30, - 'y' => 365 + "d" => 1, + "w" => 7, + "m" => 30, + "y" => 365 }.freeze attr_reader :duration def initialize(input)