bin/factor in factor-0.0.91 vs bin/factor in factor-0.0.92
- old
+ new
@@ -1,5 +1,12 @@
#!/usr/bin/env ruby
require "rubygems"
-require "factor"
-Factor::CLI::Factor.start
+require "pathname"
+bin_file = Pathname.new(__FILE__).realpath
+
+# add self to libpath
+$:.unshift File.expand_path("../../lib", bin_file)
+require 'factor'
+
+
+Factor::CLI::FactorTask.start
\ No newline at end of file