Existing code was giving exception on mac

Existing code was giving exception on mac
for Factor v2.1.0 

bench_press-0.3.1/lib/bench_press/system_information.rb:77:in `mac?': undefined method `kernel' for Facter:Module (NoMethodError)