Skip to content

Commit

Permalink
Change file name from dates.txt to holidays.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsamoei committed Sep 2, 2019
1 parent abd2929 commit a236a92
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion calendar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion freckle-logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.

0 comments on commit a236a92

Please sign in to comment.