solve scope today and yesterday
use ruby 2.1.0