Rakefile in furnace-0.3.0 vs Rakefile in furnace-0.3.1
- old
+ new
@@ -1,21 +1,23 @@
require 'bundler/gem_tasks'
require 'bundler/setup'
task :default => :test
+desc "Run test suite"
task :test do
require 'bacon'
Bacon.summary_at_exit
Dir["test/**/*_test.rb"].each do |file|
load file
end
end
PAGES_REPO = 'git@github.com:whitequark/furnace'
+desc "Build and deploy documentation to GitHub pages"
task :pages do
- system "git clone #{PAGES_REPO} gh-temp/ -b gh-pages; rm gh-temp/* -rf" or abort
- system "yardoc -o gh-temp/; cd gh-temp/; git add -A; git commit -m 'Updated pages.'" or abort
- system "cd gh-temp/; git push -f origin gh-pages" or abort
+ system "git clone #{PAGES_REPO} gh-temp/ -b gh-pages; rm gh-temp/* -rf; touch gh-temp/.nojekyll" or abort
+ system "yardoc -o gh-temp/; cp gh-temp/frames.html gh-temp/index.html; sed s,index.html,_index.html, -i gh-temp/index.html" or abort
+ system "cd gh-temp/; git add -A; git commit -m 'Updated pages.'; git push -f origin gh-pages" or abort
FileUtils.rm_rf 'gh-temp'
-end
\ No newline at end of file
+end