app_generators/newgem/newgem_generator.rb in newgem-0.25.0 vs app_generators/newgem/newgem_generator.rb in newgem-0.27.0

- old
+ new

@@ -10,11 +10,11 @@ :email => nil, :author => nil, :import_path => nil, :jruby => nil, :disable_website => nil, - :test_framework => 'test::unit', + :test_framework => 'test_unit', :version => '0.0.1' attr_reader :gem_name, :module_name, :project_name attr_reader :version, :version_str, :author, :email @@ -47,11 +47,11 @@ BASEDIRS.each { |path| m.directory path } m.directory "lib/#{gem_name}" # Root - m.template_copy_each %w( History.txt License.txt Rakefile README.txt PostInstall.txt ) + m.template_copy_each %w( History.txt Rakefile README.rdoc PostInstall.txt ) m.file_copy_each %w( setup.rb ) # Default module for app m.template "lib/module.rb", "lib/#{gem_name}.rb" m.template "lib/version.rb", "lib/#{gem_name}/version.rb" @@ -62,11 +62,11 @@ # Tasks m.file_copy_each %w( deployment.rake environment.rake website.rake ), "tasks" # Selecting a test framework case test_framework - when "test::unit" + 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 end @@ -130,11 +130,11 @@ opts.on("-r", "--ruby=path", String, "Path to the Ruby binary of your choice (otherwise scripts use env, dispatchers current path).", "Default: #{DEFAULT_SHEBANG}") { |x| options[:shebang] = x } opts.on("-T", "--test-with=TEST_FRAMEWORK", String, "Select your preferred testing framework.", - "Options: test::unit (default), rspec.") { |x| options[:test_framework] = x } + "Options: test_unit (default), rspec.") { |x| options[:test_framework] = x } opts.on("-v", "--version", "Show the #{File.basename($0)} version number and quit.") opts.on("-V", "--set-version=YOUR_VERSION", String, "Version of the gem you are creating.", "Default: 0.0.1") { |x| options[:version] = x } opts.on("-W", "--website-disable", @@ -155,10 +155,10 @@ @email ||= rubyforge_config.email end @bin_names_list = (options[:bin_name] || "").split(',') @disable_website = options[:disable_website] - @test_framework = options[:test_framework] || "test::unit" + @test_framework = options[:test_framework] || "test_unit" @is_jruby = options[:jruby] @project_name = options[:project] if options.include?(:project) end # Installation skeleton. Intermediate directories are automatically