lib/meteo/weather_reporter.rb in meteo-1.1.1 vs lib/meteo/weather_reporter.rb in meteo-1.1.2
- old
+ new
@@ -115,10 +115,10 @@
else
(period == "night") ? moon : sun
end
end
- def current_period
+ def current_period sunset, sunrise
current_time = Time.now.to_i
if current_time >= sunset or current_time <= sunrise
'night'
else