From 27b8a25f83cbc921f4ed9ac38f1a17a66f690e16 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 5 Jun 2009 10:44:57 -0700 Subject: [PATCH] Some changes to keep the generated html and css from the examples out of the gemspec. --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a47c5662..e278813b 100644 --- a/Rakefile +++ b/Rakefile @@ -53,6 +53,8 @@ begin gemspec.files << "VERSION.yml" gemspec.files += Dir.glob("bin/*") gemspec.files += Dir.glob("examples/**/*.*") + gemspec.files -= Dir.glob("examples/**/*.css") + gemspec.files -= Dir.glob("examples/**/*.html") gemspec.files += Dir.glob("frameworks/**/*.*") gemspec.files += Dir.glob("lib/**/*") gemspec.files += Dir.glob("test/**/*.*") @@ -98,7 +100,7 @@ task :examples do puts "\nCompiling #{example}" puts "=" * "Compiling #{example}".length # compile any haml templates to html - FileList["#{example}/*.haml"].each do |haml_file| + FileList["#{example}/**/*.haml"].each do |haml_file| basename = haml_file[0..-6] engine = Haml::Engine.new(open(haml_file).read, :filename => haml_file) puts " haml #{File.basename(basename)}"