Sha256: c98876de9f956ab7349b84de607a941f34888a0e969b8cf3457862e6007c5b75

Contents?: true

Size: 1.47 KB

Versions: 3

Compression:

Stored size: 1.47 KB

Contents

require 'rubygems'
require 'rake/testtask'
require 'rake/rdoctask'

Summary = 'Adhearsion is a professional integration system for
integrating anything and everything.'

#desc "Generate documentation for Adhearsion"
#Rake::RDocTask.new do |rdoc|
#  rdoc.rdoc_dir 'doc'
#end

desc "Pulls down the entire wiki in HTML format"
task :wiki => [:rm_wiki] do
  require 'open-uri'
  File.open "wiki.zip",'a' do |f|
    f.write open('http://adhearsion.stikipad.com/codex/export_html').read
  end
  Dir.mkdir 'docs' unless File.exists? 'docs'
  `unzip -d docs/wiki wiki.zip`
  File.delete 'wiki.zip'
  puts `find docs/wiki`
end

desc "Removes the local copy of the wiki"
task :rm_wiki do
  `rm -rf wiki.zip docs/wiki/`
end

desc "Removes all cached compiled RubyInline shared objects"
task :purge_objects do
  `rm -rf ~/.ruby_inline/*`
end

desc "Prepares Adhearsion for a new release"
task :prepare_release do
  # Remove log files
  Dir['log/*.log'].each do |f|
    puts "Removing file #{f}"
    File.delete f
  end

  # Check for unversioned files
  unversioned_files = `svn st | grep '^\?' | awk '{ print $2 }'`
  puts "WARNING: These files are not under version control:\n#{unversioned_files}" unless unversioned_files.empty? 
end

desc 'Create sample databases per the config/migration.rb and database.yml files.'
task :migrate do
  require 'config/migration'
  Module.constants.each do |c|
    c = Module.const_get(c)
    c.up if c.respond_to?(:superclass) && c.superclass == ActiveRecord::Migration
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adhearsion-0.7.1 new_projects/Rakefile
adhearsion-0.7.3 new_projects/Rakefile
adhearsion-0.7.2 new_projects/Rakefile