Sha256: fcceb8dd5c3336b10ffdee551d7c7b1799b15eece50fc9255d55e113aa48b672

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

require 'rubygems'
require 'rake'

begin
    require 'jeweler'
    Jeweler::Tasks.new do |gem|
        gem.name = "mongoid_tree"
        gem.summary = %Q{Materialized paths based tree implementation for Mongoid}
        gem.description = %Q{Fully featured tree implementation for Mongoid using materialized paths and relative associations. Featuring Depth and Breadth first search.}
        gem.email = "rkuhn@littleweblab.com"
        gem.homepage = "http://github.com/ticktricktrack/mongoid_tree"
        gem.authors = ["Rainer Kuhn"]
        # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
        
        gem.add_runtime_dependency('mongoid', '>= 2.0.0.beta.16')
        
    end
    Jeweler::GemcutterTasks.new
rescue LoadError
    puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'rspec'
require 'rspec/core/rake_task'
Rspec::Core::RakeTask.new(:spec) do |spec|
    spec.pattern = "spec/**/*_spec.rb"
end

Rspec::Core::RakeTask.new(:rcov) do |spec|
    spec.pattern = "spec/**/*_spec.rb"
    spec.rcov = true
end

task :spec => :check_dependencies

begin
    require 'cucumber/rake/task'
    Cucumber::Rake::Task.new(:features)

    task :features => :check_dependencies
rescue LoadError
    task :features do
        abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
    end
end

task :default => :spec

begin
    require 'yard'
    YARD::Rake::YardocTask.new
rescue LoadError
    task :yardoc do
        abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mongoid_tree-0.3.7 Rakefile
mongoid_tree-0.3.6 Rakefile
mongoid_tree-0.3.5 Rakefile
mongoid_tree-0.3.4 Rakefile
mongoid_tree-0.3.3 Rakefile
mongoid_tree-0.3.2 Rakefile