Sha256: 83bd9a01cc3c981721240cc08bcda2c80b67fe84b515f3116965b66069221389

Contents?: true

Size: 1.08 KB

Versions: 13

Compression:

Stored size: 1.08 KB

Contents

require 'rubygems'
require 'bundler/setup'

require 'appraisal'

task :default => :spec

begin
  require 'rspec/core/rake_task'
  desc 'Run the specs'
  RSpec::Core::RakeTask.new(:spec) do |t|
    #t.libs << 'lib'
    t.rspec_opts = ['--options', "#{File.expand_path(File.dirname(__FILE__))}/spec/spec.opts"]
  end
  
  namespace :spec do
    desc "Run specs in nested documenting format"
    RSpec::Core::RakeTask.new(:doc) do |t|
      #t.libs << 'lib'
      t.rspec_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

begin
  require 'rdoc/task'
  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
rescue LoadError
  task :doc do
    STDERR.puts "You must have rdoc to generate the documentation"
  end
end

require 'bundler'
Bundler::GemHelper.install_tasks

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mongomodel-0.4.9 Rakefile
mongomodel-0.4.8 Rakefile
mongomodel-0.4.7 Rakefile
mongomodel-0.4.6 Rakefile
mongomodel-0.4.5 Rakefile
mongomodel-0.4.4 Rakefile
mongomodel-0.4.3 Rakefile
mongomodel-0.4.2 Rakefile
mongomodel-0.4.1 Rakefile
mongomodel-0.4.0 Rakefile
mongomodel-0.3.6 Rakefile
mongomodel-0.3.5 Rakefile
mongomodel-0.3.4 Rakefile