Permalink
Browse files

Switched to bundler.

  • Loading branch information...
1 parent b1db558 commit 0bf45e243ba4ae8b259b7393822e71fad5b5bcfa Daniel Mircea committed Apr 30, 2012
Showing with 11 additions and 31 deletions.
  1. +4 −0 .gitignore
  2. +4 −0 Gemfile
  3. +3 −31 Rakefile
View
@@ -2,3 +2,7 @@ log
html
doc
*.gem
+.bundle
+.config
+.yardoc
+Gemfile.lock
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in callisto.gemspec
+gemspec
View
@@ -1,37 +1,9 @@
-require "rake/rdoctask"
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
require "rake/testtask"
-spec = Gem::Specification.load(File.expand_path("sitemap.gemspec", File.dirname(__FILE__)))
-
-desc "Default: run sitemap unit tests."
task :default => :test
-desc "Test the sitemap plugin."
-Rake::TestTask.new(:test) do |t|
- t.libs << "lib"
+Rake::TestTask.new do |t|
t.pattern = "test/**/*_test.rb"
- t.verbose = true
-end
-
-# Create the documentation.
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_files.include "README.rdoc", "lib/**/*.rb"
- rdoc.options = spec.rdoc_options
-end
-
-desc "Push new release to rubyforge and git tag"
-task :push do
- sh "git push"
- puts "Tagging version #{spec.version} .."
- sh "git tag v#{spec.version}"
- sh "git push --tag"
- puts "Building and pushing gem .."
- sh "gem build #{spec.name}.gemspec"
- sh "gem push #{spec.name}-#{spec.version}.gem"
-end
-
-desc "Install #{spec.name} locally"
-task :install do
- sh "gem build #{spec.name}.gemspec"
- sh "gem install #{spec.name}-#{spec.version}.gem"
end

0 comments on commit 0bf45e2

Please sign in to comment.