Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added Rakefile

  • Loading branch information...
commit c23f609e6d95147df96871e9a8fc8530724f9b9c 1 parent 13020a1
Brandon Keepers authored October 31, 2009

Showing 2 changed files with 27 additions and 0 deletions. Show diff stats Hide diff stats

  1. 26  Rakefile
  2. 1  spec/spec.opts
26  Rakefile
... ...
@@ -0,0 +1,26 @@
  1
+begin
  2
+  require 'jeweler'
  3
+  Jeweler::Tasks.new do |gem|
  4
+    gem.name = "dm-mongo-adapter"
  5
+    gem.summary = "MongoDB adapter for DataMapper"
  6
+    gem.authors = ['Brandon Keepers']
  7
+    gem.email = 'brandon@opensoul.org'
  8
+    gem.homepage = 'http://github.com/collectiveidea/dm-mongo-adapter'
  9
+    gem.add_dependency "mongo"
  10
+    gem.add_development_dependency "rspec"
  11
+  end
  12
+  Jeweler::GemcutterTasks.new
  13
+rescue LoadError
  14
+  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
  15
+end
  16
+
  17
+task :default => :spec
  18
+task :spec => :check_dependencies
  19
+
  20
+require 'spec/rake/spectask'
  21
+desc "Run the specs under spec"
  22
+Spec::Rake::SpecTask.new do |t|
  23
+  t.spec_opts = ['--options', "spec/spec.opts"]
  24
+  t.spec_files = FileList['spec/**/*_spec.rb']
  25
+  t.ruby_opts << '-rubygems'
  26
+end
1  spec/spec.opts
... ...
@@ -0,0 +1 @@
  1
+--colour

0 notes on commit c23f609

Please sign in to comment.
Something went wrong with that request. Please try again.