refactor for test
wrap "Earthquake.init do ... end" with "if Object.const_defined? :Earthquake ... end" block

to require from spec code
use a method to get filepath

for stubbing it
add test
add License into README