lib/appraisal/gemfile.rb in appraisal-2.0.1 vs lib/appraisal/gemfile.rb in appraisal-2.0.2

- old
+ new

@@ -8,10 +8,12 @@ autoload :Platform, "appraisal/platform" # Load bundler Gemfiles and merge dependencies class Gemfile < BundlerDSL def load(path) - run(IO.read(path)) + if ::File.exist?(path) + run(IO.read(path)) + end end def run(definitions) instance_eval(definitions, __FILE__, __LINE__) if definitions end