bin/bolt in benofsky-bolt-0.3.3 vs bin/bolt in benofsky-bolt-0.4

- old
+ new

@@ -6,14 +6,21 @@ # # Created by Ben McRedmond on 2010-01-08. # Copyright 2010 Ben McRedmond. All rights reserved. # -begin - require 'bolt' -rescue LoadError +unless ENV['BOLT_DEV'] == "true" + begin + require 'bolt' + rescue LoadError + require 'rubygems' + require 'bolt' + end +else + base = File.expand_path(File.dirname(File.dirname(__FILE__))) + $:.push("#{base}/lib/") + require 'bolt.rb' require 'rubygems' - require 'bolt' end b = Bolt::Bolt.new b.run \ No newline at end of file