Created
October 16, 2011 13:32
Revisions
-
tricknotes revised this gist
Dec 29, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ error_message = '' unless stderr.eof? error_message << stderr.to_a.join end unless error_message.empty? -
tricknotes revised this gist
Dec 25, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ end File.open("./dist/#{md[1]}.html", 'w') do |html| html << stdout.to_a.join end system "growlnotify", "-t", md[0], "-m", "Compiled successfully." end -
tricknotes revised this gist
Dec 25, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ end File.open("./dist/#{md[1]}.html", 'w') do |html| html << stdout.stdout.to_a.join end system "growlnotify", "-t", md[0], "-m", "Compiled successfully." end -
tricknotes revised this gist
Dec 25, 2011 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,15 +6,15 @@ error_message = '' unless stderr.eof? error_message << stderr.gets end unless error_message.empty? system "growlnotify", "-t", md[0], "-m", error_message next end File.open("./dist/#{md[1]}.html", 'w') do |html| html << stdout.gets unless stdout.eof? end system "growlnotify", "-t", md[0], "-m", "Compiled successfully." end -
tricknotes created this gist
Oct 16, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ require "open3" watch('(.*)\.haml') do |md| stdin, stdout, stderr = Open3.popen3("haml #{md[0]}") error_message = '' unless stderr.eof? error_message << stderr.gets end unless error_message.empty? system "growlnotify", "-t", md[0], "-m", error_message next end File.open("./dist/#{md[1]}.html", 'w') do |html| html << stdout.gets unless stdout.eof? end system "growlnotify", "-t", md[0], "-m", "Compiled successfully." end