Rakefile in loofah-0.2.2 vs Rakefile in loofah-0.3.0
- old
+ new
@@ -11,6 +11,44 @@
self.extra_rdoc_files = FileList["*.rdoc"]
self.history_file = "CHANGELOG.rdoc"
self.readme_file = "README.rdoc"
extra_deps << ["nokogiri", ">= 1.3.3"]
+
+ # note: .hoerc should have the following line to omit rails tests and tmp
+ # exclude: !ruby/regexp /\/tmp\/|\/rails_tests\/|CVS|TAGS|\.(svn|git|DS_Store)/
end
+
+if File.exist?("rails_test/Rakefile")
+ load "rails_test/Rakefile"
+else
+ task :test do
+ puts "----------"
+ puts "-- NOTE: An additional Rails regression test suite is available in source repository"
+ puts "----------"
+ end
+end
+
+task :redocs => :fix_css
+task :fix_css do
+ better_css = <<-EOT
+.method-description pre {
+ margin: 1em 0 ;
+}
+
+.method-description ul {
+ padding: .5em 0 .5em 2em ;
+}
+
+.method-description p {
+ margin-top: .5em ;
+}
+
+div#main ul {
+ list-style-type: disc ;
+ list-style-position: inside ;
+}
+EOT
+ puts "* fixing css"
+ File.open("doc/rdoc.css", "a") { |f| f.write better_css }
+end
+