lib/minglr.rb in schubert-minglr-1.3.0 vs lib/minglr.rb in schubert-minglr-1.3.1

- old
+ new

@@ -1,9 +1,19 @@ MINGLR_ENV = "normal" unless defined?(MINGLR_ENV) require 'rubygems' -require 'activesupport' -require 'activeresource' +begin + require 'activesupport' +rescue LoadError + puts "activesupport is not available. In order to run minglr, you must: sudo gem install activesupport" + exit 1 +end +begin + require 'activeresource' +rescue LoadError + puts "activeresource is not available. In order to run minglr, you must: sudo gem install activeresource" + exit 1 +end require 'optparse' prefix = File.join(File.dirname(__FILE__), "minglr") require File.join(prefix, "action") require File.join(prefix, "options_parser") \ No newline at end of file