You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2009/03/11 23:42:35 UTC
svn commit: r752670 - /buildr/trunk/rakelib/doc.rake
Author: assaf
Date: Wed Mar 11 22:42:34 2009
New Revision: 752670
URL: http://svn.apache.org/viewvc?rev=752670&view=rev
Log:
Worked around bug in Jekyll 0.4.1. Removed when 0.4.2 is out.
http://github.com/mojombo/jekyll/commit/c180bc47bf2f63db1bff9f6600cccbe5ad69077e#diff-0
Modified:
buildr/trunk/rakelib/doc.rake
Modified: buildr/trunk/rakelib/doc.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/doc.rake?rev=752670&r1=752669&r2=752670&view=diff
==============================================================================
--- buildr/trunk/rakelib/doc.rake (original)
+++ buildr/trunk/rakelib/doc.rake Wed Mar 11 22:42:34 2009
@@ -36,6 +36,19 @@
begin
require 'jekyll'
+ class Albino
+ def execute(command)
+ output = ''
+ Open4.popen4(command) do |pid, stdin, stdout, stderr|
+ stdin.puts @target
+ stdin.close
+ output = stdout.read.strip
+ [stdout, stderr].each { |io| io.close }
+ end
+ output
+ end
+ end
+
task '_site'=>['doc'] do
Jekyll.pygments = true
Jekyll.process 'doc', '_site'
@@ -44,7 +57,7 @@
rescue LoadError
puts "Buildr uses the mojombo-jekyll to generate the Web site. You can install it by running rake setup"
task 'setup' do
- install_gem 'mojombo-jekyll', :source=>'http://gems.github.com'
+ install_gem 'mojombo-jekyll', :source=>'http://gems.github.com', :version=>'0.4.1'
sh "#{sudo_needed? ? 'sudo ' : nil}easy_install Pygments"
end
end