Permalink
Browse files

Added Rakefile

  • Loading branch information...
1 parent 13020a1 commit c23f609e6d95147df96871e9a8fc8530724f9b9c @bkeepers bkeepers committed Oct 31, 2009
Showing with 27 additions and 0 deletions.
  1. +26 −0 Rakefile
  2. +1 −0 spec/spec.opts
View
26 Rakefile
@@ -0,0 +1,26 @@
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "dm-mongo-adapter"
+ gem.summary = "MongoDB adapter for DataMapper"
+ gem.authors = ['Brandon Keepers']
+ gem.email = 'brandon@opensoul.org'
+ gem.homepage = 'http://github.com/collectiveidea/dm-mongo-adapter'
+ gem.add_dependency "mongo"
+ gem.add_development_dependency "rspec"
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
+
+task :default => :spec
+task :spec => :check_dependencies
+
+require 'spec/rake/spectask'
+desc "Run the specs under spec"
+Spec::Rake::SpecTask.new do |t|
+ t.spec_opts = ['--options', "spec/spec.opts"]
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.ruby_opts << '-rubygems'
+end
View
1 spec/spec.opts
@@ -0,0 +1 @@
+--colour

0 comments on commit c23f609

Please sign in to comment.