public
Description: RelaxDB provides a simple Ruby interface to CouchDB
Homepage:
Clone URL: git://github.com/paulcarey/relaxdb.git
relaxdb / Rakefile
100644 64 lines (53 sloc) 1.573 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
require 'rubygems'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
 
PLUGIN = "relaxdb"
NAME = "relaxdb"
GEM_VERSION = "0.3.5"
AUTHOR = "Paul Carey"
EMAIL = "paul.p.carey@gmail.com"
HOMEPAGE = "http://github.com/paulcarey/relaxdb/"
SUMMARY = "RelaxDB provides a simple interface to CouchDB"
 
spec = Gem::Specification.new do |s|
  s.name = NAME
  s.version = GEM_VERSION
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = ["README.textile", "LICENSE"]
  s.summary = SUMMARY
  s.description = s.summary
  s.author = AUTHOR
  s.email = EMAIL
  s.homepage = HOMEPAGE
  
  s.add_dependency "extlib", ">=0.9.4"
  s.add_dependency "json"
  s.add_dependency "uuid"
  
  s.require_path = 'lib'
  s.autorequire = PLUGIN
  s.files = %w(LICENSE README.textile readme.rb Rakefile) + Dir.glob("{docs,lib,spec}/**/*")
end
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end
 
desc "Install"
task :install => [:package] do
  sh %{sudo gem install --local pkg/#{NAME}-#{GEM_VERSION} --no-update-sources}
end
 
desc "Run specs"
Spec::Rake::SpecTask.new('spec') do |t|
  t.spec_files = FileList['spec/**/*.rb']
end
 
desc "Run specs and produce spec_results.html"
Spec::Rake::SpecTask.new('spec:html') do |t|
  t.spec_files = FileList['spec/**/*.rb']
  t.spec_opts = ["--format", "html:docs/spec_results.html"]
end
 
desc "Supports atomic bulk save"
task :atomic_bulk_save_support do |t|
  require 'lib/more/atomic_bulk_save_support.rb'
end
 
desc "Create base spec db"
task :create_base_db do
  require 'spec/spec_helper'
  create_base_db
end