Sha256: 80b3613a41cbdaa32a2eaad977fe1017378d5ef5401735bfa1dd87824602e5fd

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

require 'rubygems'
require 'rake'

require 'lib/ruote/couch/version.rb'

#
# CLEAN

require 'rake/clean'
CLEAN.include('pkg', 'tmp', 'html')
task :default => [ :clean ]


#
# GEM

require 'jeweler'

Jeweler::Tasks.new do |gem|

  gem.version = Ruote::Couch::VERSION
  gem.name = 'ruote-couch'
  gem.summary = 'CouchDB storage for ruote 2.1'
  gem.description = %{
CouchDB storage for ruote 2.1 (ruby workflow engine)
  }.strip
  gem.email = 'jmettraux@gmail.com'
  gem.homepage = 'http://github.com/jmettraux/ruote-couch'
  gem.authors = [ 'John Mettraux' ]
  gem.rubyforge_project = 'ruote'

  gem.test_file = 'test/test.rb'

  gem.add_dependency 'ruote', ">= #{Ruote::Couch::VERSION}"
  gem.add_dependency 'rufus-jig', '>= 0.1.17'
  gem.add_development_dependency 'yard'
  gem.add_development_dependency 'rake'
  gem.add_development_dependency 'jeweler'

  # gemspec spec : http://www.rubygems.org/read/chapter/20
end
Jeweler::GemcutterTasks.new

#
# MISC

task :delete_all_test_databases do

  require 'json'
  require 'rufus/jig'
  couch = Rufus::Jig::Couch.new('127.0.0.1', 5984)
  %w[
    configurations errors expressions msgs schedules variables workitems
  ].each do |type|
    couch.delete("/test_ruote_#{type}")
  end
end


#
# DOC

begin

  require 'yard'

  YARD::Rake::YardocTask.new do |doc|
    doc.options = [
      '-o', 'html/ruote-couch', '--title',
      "ruote-couch #{Ruote::Couch::VERSION}"
    ]
  end

rescue LoadError

  task :yard do
    abort "YARD is not available : sudo gem install yard"
  end
end


#
# TO THE WEB

task :upload_website => [ :clean, :yard ] do

  account = 'jmettraux@rubyforge.org'
  webdir = '/var/www/gforge-projects/ruote'

  sh "rsync -azv -e ssh html/ruote-couch #{account}:#{webdir}/"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-couch-2.1.9 Rakefile