Sha256: b2f7986ba955b31d1a97c13ad04203a8d695fbb52dbe5c61405a6dc1b57e5dce
Contents?: true
Size: 851 Bytes
Versions: 11
Compression:
Stored size: 851 Bytes
Contents
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib') require 'couchrest' require 'yaml' require 'json' require 'rake' require 'rake/testtask' require 'bundler' require 'soywiki' Bundler::GemHelper.install_tasks desc "build and push website" task :web => :build_webpage do `scp website/soywiki.html zoe2@instantwatcher.com:~/danielchoi.com/public/software/` end desc "build website locally" task :weblocal => :build_webpage do Dir.chdir("website") do `open soywiki.html` end end desc "build webpage" task :build_webpage do $LOAD_PATH.unshift 'website' require 'gen' Dir.chdir("website") do html = Webpage.generate(Soywiki::VERSION) File.open('soywiki.html', 'w') {|f| f.puts html} end end desc "Run tests" task :test do $:.unshift File.expand_path("test") MiniTest::Unit.autorun end task :default => :test
Version data entries
11 entries across 11 versions & 1 rubygems