Browse files

fixed Rakefile to have some tasks as with hoe

  • Loading branch information...
1 parent 26bb2e4 commit 9c30c20757ceeb4531aa5125f2820117665f80a0 @mkristian committed Jun 15, 2010
Showing with 12 additions and 1 deletion.
  1. +11 −0 Rakefile
  2. +1 −1 rack_datamapper.gemspec
View
11 Rakefile
@@ -10,6 +10,17 @@ require 'yard'
desc "Run specs"
Spec::Rake::SpecTask.new('spec')
+task :clean do
+ sh "rm -r pkg"
+end
+
+desc 'Package as a gem.'
+task :package do
+ sh "gem build rack_datamapper.gemspec"
+ sh "mkdir -p pkg"
+ sh "mv rack-datamapper-*.gem pkg"
+end
+
desc 'Install the package as a gem.'
task :install => [:clean, :package] do
gem = Dir['pkg/*.gem'].first
View
2 rack_datamapper.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{rack-datamapper}
- s.version = "0.3.0"
+ s.version = "0.3.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["mkristian"]

0 comments on commit 9c30c20

Please sign in to comment.