bin/grb in grb-0.3.1 vs bin/grb in grb-0.4.0
- old
+ new
@@ -1,19 +1,17 @@
#!/usr/bin/env ruby
#
-# Copyright (c) 2009-present. GPL3.
+# Copyright (c) 2009-present. MIT.
# Author: Zhang Jinzhu
-$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
-require "grb"
+require File.expand_path(File.dirname(__FILE__) + "/../lib/grb")
# easy debugger
if ARGV.delete('--debug')
['rubygems','ruby-debug'].each {|x| require x}
else
def debugger;end
end
-
abort('Version: ' + File.read(File.expand_path("../../VERSION",__FILE__))) if ARGV.delete('--version') || ARGV.delete('-v')
EXPLAIN = ARGV.delete('--explain') || ARGV.delete('-e')