From a236a9266a9bcfa1eb6a1ee84586413834bd904b Mon Sep 17 00:00:00 2001 From: Kevin Samoei Date: Mon, 2 Sep 2019 19:07:21 +0300 Subject: [PATCH] Change file name from dates.txt to holidays.txt --- calendar.rb | 2 +- freckle-logger.rb | 2 +- dates.txt => holidays.txt | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename dates.txt => holidays.txt (100%) diff --git a/calendar.rb b/calendar.rb index f5188c7..0b8ce95 100644 --- a/calendar.rb +++ b/calendar.rb @@ -45,7 +45,7 @@ def holidays time_min: DateTime.new(2018,1,1).rfc3339) # puts "All holidays from 2018 till 2021" # puts "No events found" if response.items.empty? - File.open('dates.txt', 'w') do |f| + File.open('holidays.txt', 'w') do |f| response.items.each do |event| start = event.start.date || event.start.date_time f.puts(start) diff --git a/freckle-logger.rb b/freckle-logger.rb index 00196f0..6bf3db8 100644 --- a/freckle-logger.rb +++ b/freckle-logger.rb @@ -28,7 +28,7 @@ def client def read_dates holiday_dates = [] - File.readlines('dates.txt').each do |line| + File.readlines('holidays.txt').each do |line| holiday_dates << line end holiday_dates diff --git a/dates.txt b/holidays.txt similarity index 100% rename from dates.txt rename to holidays.txt