lib/repeatable/expression/range_in_year.rb in repeatable-0.6.0 vs lib/repeatable/expression/range_in_year.rb in repeatable-1.0.0

- old
+ new

@@ -17,14 +17,14 @@ start_month_include?(date) || end_month_include?(date) end end def to_h - args = { start_month: start_month } + args = {start_month: start_month} args[:end_month] = end_month unless end_month == start_month args[:start_day] = start_day unless start_day.zero? args[:end_day] = end_day unless end_day.zero? - { range_in_year: args } + {range_in_year: args} end private attr_reader :start_month, :end_month, :start_day, :end_day