lib/merch_calendar/util.rb in merch_calendar-0.1.0 vs lib/merch_calendar/util.rb in merch_calendar-0.3.0
- old
+ new
@@ -1,7 +1,7 @@
require "merch_calendar/retail_calendar"
-require "merch_calendar/fiscal_year_calendar"
+require "merch_calendar/stitch_fix_fiscal_year_calendar"
module MerchCalendar
# Utility methods for the merch calendar
module Util
@@ -177,11 +177,11 @@
def retail_calendar
@retail_calendar ||= RetailCalendar.new
end
def fiscal_year_calendar
- @fiscal_year_calendar ||= FiscalYearCalendar.new
+ @fiscal_year_calendar ||= StitchFixFiscalYearCalendar.new
end
# Reads the provided parameter and converts the value
# to a MERCH MONTH
def get_merch_month_param(param)
@@ -223,10 +223,10 @@
[
:start_of_quarter,
:end_of_quarter
].each do |method|
- deprecate method, "#{MerchCalendar::FiscalYearCalendar}##{method}", DEPRECATION_DATE.year, DEPRECATION_DATE.month
+ deprecate method, "#{MerchCalendar::StitchFixFiscalYearCalendar}##{method}", DEPRECATION_DATE.year, DEPRECATION_DATE.month
end
end
end