app_generators/newgem/newgem_generator.rb in newgem-0.13.3 vs app_generators/newgem/newgem_generator.rb in newgem-0.13.4

- old
+ new

@@ -1,8 +1,9 @@ require 'rbconfig' class NewgemGenerator < RubiGen::Base + DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) default_options :shebang => DEFAULT_SHEBANG, :bin_name => nil, @@ -27,11 +28,11 @@ def initialize(runtime_args, runtime_options = {}) super usage if args.empty? @destination_root = File.expand_path(args.shift) - @gem_name = File.basename(destination_root) + @gem_name = base_name @module_name = gem_name.camelize extract_options end def manifest @@ -149,10 +150,9 @@ @bin_names_list = (options[:bin_name] || "").split(',') @disable_website = options[:disable_website] @test_framework = options[:test_framework] || "test::unit" @is_jruby = options[:jruby] - p options end # Installation skeleton. Intermediate directories are automatically # created so don't sweat their absence here. BASEDIRS = %w(