Commit a5ed1b99403841d1872f5e2cb6028b32987c804b
1 parent
0d6272ea
Exists in
master
and in
22 other branches
Explicit require when building docs
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/tasks/doc.rake
| @@ -20,6 +20,7 @@ namespace :noosfero do | @@ -20,6 +20,7 @@ namespace :noosfero do | ||
| 20 | 20 | ||
| 21 | def build_textile(input, output) | 21 | def build_textile(input, output) |
| 22 | begin | 22 | begin |
| 23 | + require 'redcloth' | ||
| 23 | File.open(output ,'w') do |output_file| | 24 | File.open(output ,'w') do |output_file| |
| 24 | output_file.write(RedCloth.new(File.read(input)).to_html) | 25 | output_file.write(RedCloth.new(File.read(input)).to_html) |
| 25 | puts "#{input} -> #{output}" | 26 | puts "#{input} -> #{output}" |