app_generators/newgem/newgem_generator.rb in newgem-1.5.0 vs app_generators/newgem/newgem_generator.rb in newgem-1.5.1

- old
+ new

@@ -44,14 +44,14 @@ windows = (RUBY_PLATFORM =~ /dos|win32|cygwin/i) || (RUBY_PLATFORM =~ /(:?mswin|mingw)/) record do |m| # Root directory and all subdirectories. m.directory '' - BASEDIRS.each { |path| m.directory path } - m.directory "lib/#{gem_name}" + m.directory 'script' + # Root m.template_copy_each %w( History.txt Rakefile README.rdoc PostInstall.txt ) # Default module for app m.template "lib/module.rb", "lib/#{gem_name}.rb" @@ -95,10 +95,15 @@ m.readme "readme" end end protected + def usage(message = usage_message) + puts @option_parser + exit + end + def banner <<-EOS Take any library or Rails plugin or command line application, gemify it, and easily share it with the Ruby world. @@ -178,13 +183,6 @@ return config_args.split(" ") + runtime_args end end runtime_args end - - # Installation skeleton. Intermediate directories are automatically - # created so don't sweat their absence here. - BASEDIRS = %w( - lib - script - ) end