Sha256: 06a13ec8ae26d5285140e0726bce2eb8623a68a84c14e2ce04cd944171d5004b

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "mongomapper_ext"
    gem.summary = %Q{MongoMapper extensions}
    gem.description = %Q{MongoMapper extensions}
    gem.email = "krawek@gmail.com"
    gem.homepage = "http://github.com/dcu/mongomapper_ext"
    gem.authors = ["David A. Cuadrado"]

    gem.add_dependency('mongo_mapper', '>= 0.7.3')
    gem.add_dependency('uuidtools', '>= 2.0.0')

    gem.add_development_dependency("shoulda", ">= 2.10.2")
    gem.add_development_dependency('jnunemaker-matchy', '0.4.0')
    gem.add_development_dependency('mocha', '>= 0.9.4')
  end
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/test_*.rb'
  test.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/test_*.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :test => :check_dependencies

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "mongomapper_ext #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongomapper_ext-0.2.3 Rakefile
mongomapper_ext-0.2.2 Rakefile
mongomapper_ext-0.2.1 Rakefile
mongomapper_ext-0.2.0 Rakefile