Installation and quick test:

$>  gem install equationoftime

$> irb

require 'eot'
# => true

@solar = Eot.new
# note: you'll see a lot more in the object than an id.
# => #<Eot:0x007f6237777428>

Set some parameters:

@solar.latitude = 40.7128
# => 40.7128

@solar.longitude = -74.0059
# => -74.0059

@solar.jd = Date.today.jd
# => 2458082
@solar.ma_ta_set
# => 5.592002566681899 this is ma

Now get the times

@solar.local_noon_dt.to_time.localtime("-04:00")
# => 2017-11-24 12:42:48 -0400
@solar.sunrise_dt.to_time.localtime("-04:00")
# => 2017-11-24 07:53:29 -0400
@solar.sunset_dt.to_time.localtime("-04:00")
# => 2017-11-24 17:32:06 -0400

The local_noon_dt has taken into account the equation of time. This is the true solar transit time for your location.
Try the examples included with the gem.