Rakefile in geometry-3 vs Rakefile in geometry-4

- old
+ new

@@ -1,7 +1,14 @@ require "bundler/gem_tasks" +require 'rake/testtask' +Rake::TestTask.new do |t| + t.libs.push "lib" + t.test_files = FileList['test/**/*.rb'] + t.verbose = true +end + task :fixdates do branch = `git branch --no-color -r --merged`.strip `git fix-dates #{branch}..HEAD` end @@ -10,9 +17,13 @@ `git fix-dates -f #{branch}..HEAD` end task :trim_whitespace do system(%Q[git status --short | awk '{if ($1 != "D" && $1 != "R") print $2}' | grep -e '.*\.rb$' | xargs sed -i '' -e 's/[ \t]*$//g;']) +end + +task :docs do + `yard` end task :uninstall do `gem uninstall geometry` end