Fixing Windows-related issues.
h3rald h3rald@h3rald.com
Mon, 10 Aug 2009 09:37:49 +0200
3 files changed,
8 insertions(+),
5 deletions(-)
M
lib/albino.rb
→
lib/albino.rb
@@ -42,7 +42,8 @@ # Chris Wanstrath // chris@ozmm.org
# GitHub // http://github.com # require 'rubygems' -require 'open4' +require 'open3' +require 'win32/open3' if RUBY_PLATFORM.match /win32/ class Albino @@bin = 'pygmentize'@@ -62,7 +63,7 @@ end
def execute(command) output = '' - Open4.popen4(command) do |pid, stdin, stdout, stderr| + Open3.popen3(command) do |stdin, stdout, stderr| stdin.puts @target stdin.close output = stdout.read.strip
M
resources/css/layout.css
→
resources/css/layout.css
@@ -164,7 +164,8 @@ #border-bottom
{ background: #000 url('../images/border-bottom.png') top repeat-x; height: auto; - padding-top: 35px + padding: 0 30px; + padding-top: 40px; } .inner-border@@ -192,6 +193,7 @@ .clearfooter
{ height: 40px; clear: both; + background: #000; } .footer-left, .footer-right, .footer-center {
M
tasks/site.rake
→
tasks/site.rake
@@ -25,9 +25,9 @@ task :rebuild => [:clear_output, :update] do
end task :build_tag_pages do - site = Nanoc::Site.new(YAML.load_file('config.yaml')) - site.load_data # TODO + #site = Nanoc::Site.new(YAML.load_file('config.yaml')) + #site.load_data # site.pages.each { |p| p.tags ...} end