bin/padrino-gen in padrino-gen-0.8.1 vs bin/padrino-gen in padrino-gen-0.8.2
- old
+ new
@@ -1,13 +1,14 @@
#!/usr/bin/env ruby
-%w[rubygems thor/group].each { |gem| require gem }
+require 'rubygems'
$:.unshift File.dirname(__FILE__) + "/../lib"
# We try to load the vendored padrino-core if exist
if File.exist?(File.dirname(__FILE__) + "/../../padrino-core/lib")
$:.unshift File.dirname(__FILE__) + "/../../padrino-core/lib"
end
require 'padrino-gen'
+require 'padrino-gen/generators/cli'
# We need our config boot because we need to load registered generators so:
Padrino::Generators::Cli.start(ARGV)
\ No newline at end of file