public
Fork of yrashk/strokedb
Description: StrokeDB is a lightweight approach to document-oriented database, currently featuring pure Ruby/JRuby implementation.
Homepage: http://groups.google.com/group/strokedb
Clone URL: git://github.com/tmm1/strokedb.git
strokedb / Rakefile
100644 60 lines (49 sloc) 2.234 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
require 'rake'; require 'rubygems'
 
$:.unshift(File.dirname(__FILE__) + '/lib')
require 'strokedb'; require 'core_ext'
 
require 'task/echoe'
Echoe.taskify do
  Dir['task/**/*.task'].each {|t| load t}
  
  namespace :echoe do
    Echoe.new('strokedb', StrokeDB::VERSION) do |g|
      g.author = ['Yurii Rashkovskii', 'Oleg Andreev']
      g.email = ['strokedb@googlegroups.com']
      g.summary = 'embeddable, distributed, document-based database'
      g.url = 'http://strokedb.com'
      g.description = <<-EOF
StrokeDB is an embeddable, distributed, document-based database written in Ruby.
It is schema-free (allowing you to define any attribute on any object at any
time), it scales infinitely, it even allows free versioning and integrates
perfectly with Ruby applications.
EOF
    
      g.platform = Gem::Platform::RUBY
      g.dependencies = ['diff-lcs >= 1.1.2', 'uuidtools >= 1.0.3', 'json >= 1.1.2']
    
      g.manifest_name = 'meta/MANIFEST'
      g.ignore_pattern = /(^\.git|^.DS_Store$|^meta|^test\/storages|^examples\/(.*).strokedb|^bugs)/
      g.executable_pattern = 'bin/strokedb'
    end
    
    desc 'tests packaged files to ensure they are all present'
    task :verify => :package do
      # An error message will be displayed if files are missing
      if system %(ruby -e "require 'rubygems'; require 'pkg/strokedb-#{StrokeDB::VERSION}/strokedb'")
        puts "\nThe library files are present"
      end
    end
    
    desc 'Clean tree, update manifest, and install gem'
    task :magic => [:clean, :manifest, :install]
  end
  
  desc 'Check what\'s up in this mug'
  task :sup => [:'rcov:run', :'rcov:verify']
  
  # Developers: Run this before commiting!
  desc 'Check everything over before commiting!'
  task :aok => [:'rcov:verbose', :'rcov:strict', :'rcov:open',
                :'rdoc:html', :'rdoc:open',
                :'ditz:stage', :'ditz:html', :'ditz:todo', :'ditz:status', :'ditz:html:open']
end
 
# desc 'Run by CruiseControl.rb during continuous integration'
task :cruise => [:'ditz:html', :'rdoc:html', :'rcov:bw', :'rcov:verify']
 
# By default, we just list the tasks.
task :default => :list
task :list do
  system 'rake -T'
end