Ruby Sunrise calculates the civil, official, nautical and astronomical sunrise/sunset given latitude/longitude coordinates and the date.
Handles the condition of no sunrise/sunset (Alaska in summer/winter) by returning a nil object.
Ruby Sunrise depends on the 'tzinfo' gem for localizing the computed sunrise/sunset times.
gem install RubySunrise