app_generators/newgem/newgem_generator.rb in newgem-1.3.0 vs app_generators/newgem/newgem_generator.rb in newgem-1.4.0

- old
+ new

@@ -15,11 +15,11 @@ :test_framework => 'test_unit', :version => '0.0.1' attr_reader :gem_name, :module_name, :project_name - attr_reader :version, :version_str, :author, :email + attr_reader :version, :version_str, :author, :email, :project_url # extensions/option attr_reader :test_framework attr_reader :bin_names_list attr_reader :enable_website @@ -31,10 +31,12 @@ usage if args.empty? @destination_root = File.expand_path(args.shift) @gem_name = base_name @module_name = gem_name.gsub('-','_').camelize @project_name = @gem_name + @github_username = 'FIXME' + @project_url = 'http://github.com/#{github_username}/#{project_name}' extract_options end def manifest # Use /usr/bin/env if no special shebang was specified @@ -58,9 +60,11 @@ case test_framework when "test_unit" m.dependency "install_test_unit", [gem_name], :destination => destination_root, :collision => :force when "rspec" m.dependency "install_rspec", [gem_name], :destination => destination_root, :collision => :force + when "shoulda" + m.dependency "install_shoulda", [gem_name], :destination => destination_root, :collision => :force end # Website m.dependency "install_website", [gem_name], :author => author, :email => email, :destination => destination_root, :collision => :force if enable_website