bin/nanoc in nanoc-2.1.6 vs bin/nanoc in nanoc-2.2
- old
+ new
@@ -1,9 +1,12 @@
#!/usr/bin/env ruby
+# Add lib to load path
+$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
+
# Load nanoc
-require File.dirname(__FILE__) + '/../lib/nanoc.rb'
-require File.dirname(__FILE__) + '/../lib/nanoc/cli.rb'
+require 'nanoc'
+require 'nanoc/cli'
# Load custom code that can't be load later
Dir['lib/commands/*.rb'].each { |f| require f }
Dir['lib/data_sources/*.rb'].each { |f| require f }