0
-require 'rake/gempackagetask'
0
-require 'spec/rake/spectask'
0
-require 'rake/rdoctask'
0
-task :default => [:ci, :jci, :bench]
0
-task :bench => [:benchmarks]
0
- paths = Dir['benchmarks/**/*.rb']
0
+require 'rake'; require 'rubygems'
0
+$:.unshift(File.dirname(__FILE__)); require 'strokedb'
0
+ Dir['task/**/*.task'].each {|t| load t}
0
+ Echoe.new('StrokeDB', StrokeDB::VERSION) do |g|
0
+ g.author = ['Yurii Rashkovskii', 'Oleg Andreev']
0
+ g.email = ['strokedb@googlegroups.com']
0
+ g.summary = 'embeddable, distributed, document-based database'
0
+ g.url = 'http://strokedb.com'
0
+ g.description = <<-EOF
0
+ StrokeDB is an embeddable, distributed, document-based database written in Ruby.
0
+ It is schema-free (allowing you to define any attribute on any object at any
0
+ time), it scales infinitely, it even allows free versioning and integrates
0
+ perfectly with Ruby applications.
0
+ g.platform = Gem::Platform::RUBY
0
+ g.dependencies = ['diff-lcs >= 1.1.2', 'uuidtools >= 1.0.3', 'json >= 1.1.2']
0
+ g.manifest_name = 'MANIFEST'
0
+ g.ignore_pattern = /(^\.git|^.DS_Store$|^meta|^test\/storages|^examples\/(.*).strokedb|^bugs)/
0
+ desc 'tests packaged files to ensure they are all present'
0
+ task :verify => :package do
0
+ # An error message will be displayed if files are missing
0
+ if system %(ruby -e "require 'rubygems'; require 'pkg/strokedb-#{StrokeDB::VERSION}/strokedb'")
0
+ puts "\nThe library files are present"
0
+ desc 'Clean tree, update manifest, and install gem'
0
+ task :magic => [:clean, :manifest, :install]
0
+ # Developers: Run this before commiting, or
0
+ desc 'Check everything over before commiting!'
0
+ task :aok => [:'rcov:run', :'rcov:verify', :'rcov:open',
0
+ :'ditz:stage', :'ditz:html', :'ditz:todo', :'ditz:status', :'ditz:html:open']
0
-task :ci_indefinitely do
0
- i=0;loop{i+=1;puts i ; t=`spec spec`;if t =~ /[\.F]F|F[\.F]/ ; puts t ; break ; end }
0
- unless (which_jruby = `which jruby`).empty?
0
- jruby_bin_dir = File.dirname(which_jruby)
0
- sh "#{jruby_bin_dir}/spec spec"
0
- puts "jruby was not found in PATH (`which jruby` gives nothing)"
0
-desc "Run all examples with RCov"
0
-Spec::Rake::SpecTask.new('spec_rcov') do |t|
0
- t.spec_files = FileList['spec/**/*.rb']
0
- t.rcov_opts = ['--exclude', 'spec,strokedb.rb','--sort','coverage','--xrefs']
0
+# desc 'Run by CruiseControl.rb during continuous integration'
0
+task :cruise => [:'rcov:run', :'rcov:verify', :'ditz:html']
0
-].collect { |name, dir| [ name, "#{File.dirname(__FILE__)}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
0
-desc "Report code statistics (KLOCs, etc) from the application"
0
- require 'code_statistics'
0
- CodeStatistics.const_set(:TEST_TYPES,%w(Specs))
0
- CodeStatistics.new(*STATS_DIRECTORIES).to_s
0
-Rake::RDocTask.new do |rd|
0
- rd.rdoc_dir = "docs/html"
0
- rd.rdoc_files.include("README", "lib/**/*.rb")
0
-gemspec = Gem::Specification.new do |s|
0
- s.platform = Gem::Platform::RUBY
0
- s.author = "Yurii Rashkovskii, Oleg Andreev"
0
- s.email = "strokedb@googlegroups.com"
0
- s.summary = "an embeddable distributed document database written in Ruby"
0
- s.description = <<-EOF
0
- StrokeDB is an embeddable distributed document database written in Ruby.
0
- It is schema-free, it scales infinitely, it even tracks revisions
0
- and perfectly integrates with Ruby applications.
0
- s.files = FileList['bin/*','README','CONTRIBUTORS','CREDITS','script/*','lib/**/**','strokedb.rb'].to_a
0
- s.homepage = "http://strokedb.com"
0
- s.rubyforge_project = 'strokedb'
0
- s.add_dependency 'diff-lcs', '>= 1.1.2'
0
- s.add_dependency 'uuidtools', '>= 1.0.3'
0
- s.add_dependency 'json', '>= 1.1.2'
0
- s.require_paths << 'lib'
0
- s.executables << 'sdbc'
0
-Rake::GemPackageTask.new(gemspec) do |pkg|
0
-task :gem => "pkg/#{gemspec.name}-#{gemspec.version}.gem" do
0
- puts "latest version generated"
0
+# By default, we just list the tasks.
0
\ No newline at end of file
Comments
No one has commented yet.