module Idonethis::Adapters module Git class << self def commits(dir, since) require 'git' since_when = case since when 'yesterday' '1am yesterday' else '1am' end ::Git.open(dir).log.since(since_when) end end end end