Sha256: cd465f76a6b0f577701ff682bc1a66c7538294daa2aa75f020cd16347b5d5c53

Contents?: true

Size: 1.7 KB

Versions: 4

Compression:

Stored size: 1.7 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "couchrest-uniqueness-validation"
    gem.summary = %Q{adds validates_uniqueness_of validator to CouchRest::Validation}
    gem.description = %Q{adds uniquness validation by using a design doc view}
    gem.email = "alex@digns.com"
    gem.homepage = "http://github.com/crhym3/couchrest-uniqueness-validation"
    gem.authors = ["alex"]
    gem.add_dependency("couchrest", ">= 0.34")
    gem.add_development_dependency "rspec", ">= 1.2.9"
    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
  spec.spec_opts = ['--options', "\"spec/spec.opts\""]
end

namespace :spec do
  desc "Print Specdoc for all specs"
  Spec::Rake::SpecTask.new(:doc) do |t|
    t.spec_opts = ["--format", "specdoc", "--dry-run"]
    t.spec_files = FileList['spec/**/*_spec.rb']
  end
end

Spec::Rake::SpecTask.new(:rcov) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.pattern = 'spec/**/*_spec.rb'
  spec.rcov = true
  spec.rcov_opts = ['--exclude "spec/*,gems/*"']
end

task :spec => :check_dependencies

task :default => :spec

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

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "couchrest-uniqueness-validation #{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
couchrest-uniqueness-validation-0.2.1 Rakefile
couchrest-uniqueness-validation-0.2.0 Rakefile
couchrest-uniqueness-validation-0.1.1 Rakefile
couchrest-uniqueness-validation-0.1.0 Rakefile