Sha256: 1da50a78e22e465702ac519d9f9ed2d20fda82936a764a4703ef43259626f69a

Contents?: true

Size: 904 Bytes

Versions: 16

Compression:

Stored size: 904 Bytes

Contents

require 'rake/rdoctask'

task :default => :spec

begin
  require 'spec/rake/spectask'
  desc 'Run the specs'
  Spec::Rake::SpecTask.new(:spec) do |t|
    t.libs << 'lib'
    t.spec_opts = ['--options', "#{File.expand_path(File.dirname(__FILE__))}/spec/spec.opts"]
  end
  
  namespace :spec do
    desc "Run specs in nested documenting format"
    Spec::Rake::SpecTask.new(:doc) do |t|
      t.libs << 'lib'
      t.spec_opts = ['--options', "#{File.expand_path(File.dirname(__FILE__))}/spec/specdoc.opts"]
    end
  end
rescue LoadError
  task :spec do
    STDERR.puts "You must have rspec to run the tests"
  end
  namespace :spec do
    task :doc => :spec
  end
end

desc "Generate documentation"
Rake::RDocTask.new(:doc) do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('lib')
end

require 'bundler'
Bundler::GemHelper.install_tasks

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mongomodel-0.3.3 Rakefile
mongomodel-0.3.2 Rakefile
mongomodel-0.3.1 Rakefile
mongomodel-0.3.0 Rakefile
mongomodel-0.2.20 Rakefile
mongomodel-0.2.19 Rakefile
mongomodel-0.2.18 Rakefile
mongomodel-0.2.17 Rakefile
mongomodel-0.2.16 Rakefile
mongomodel-0.2.15 Rakefile
mongomodel-0.2.14 Rakefile
mongomodel-0.2.13 Rakefile
mongomodel-0.2.12 Rakefile
mongomodel-0.2.11 Rakefile
mongomodel-0.2.10 Rakefile
mongomodel-0.2.9 Rakefile