Rakefile in svn2git-2.2.4 vs Rakefile in svn2git-2.2.5

- old
+ new

@@ -1,45 +1,30 @@ require 'rake' +require 'rake/testtask' require 'rubygems/package_task' begin require 'jeweler' Jeweler::Tasks.new do |spec| spec.name = "svn2git" spec.summary = "A tool for migrating svn projects to git" spec.authors = ["James Coglan", "Kevin Menard"] - spec.homepage = "https://www.negativetwenty.net/redmine/projects/svn2git" + spec.homepage = "https://github.com/nirvdrum/svn2git" spec.email = "nirvdrum@gmail.com" + spec.add_development_dependency 'test-unit' end Jeweler::GemcutterTasks.new rescue LoadError - puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" + puts "Jeweler not available. Install it with: gem install jeweler" end - -# -# spec = Gem::Specification.new do |spec| -# -# spec.version = "1.1.0" -# spec.platform = Gem::Platform::RUBY -# -# -# spec.require_path = "lib" -# spec.files = FileList["lib/**/*"].to_a -# spec.autorequire = "lib/svn2git.rb" -# spec.bindir = "bin" -# spec.executables = ["svn2git"] -# spec.default_executable = "svn2git" -# -# -# -# -# spec.test_files = FileList["test/**/*"].to_a -# spec.has_rdoc = true -# spec.extra_rdoc_files = ["README"] -# spec.rdoc_options << "--main" << "README" << '--line-numbers' << '--inline-source' -# end -# -# Rake::GemPackageTask.new(spec) do |pkg| -# pkg.need_tar = true -# end -# + +desc 'Test the rubber plugin.' +Rake::TestTask.new(:test) do |t| + t.libs << 'lib' + t.libs << 'test' + t.pattern = 'test/**/*_test.rb' + t.verbose = true +end + +desc 'Default: run unit tests.' +task :default => :test \ No newline at end of file