Permalink
Browse files

Add features, fix bugs

  • Loading branch information...
1 parent e02d356 commit fe44b89c0ad37290aaf199261fa1580ea0af2043 @dolzenko committed Mar 25, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/rack/generate_readme.rb
@@ -0,0 +1,11 @@
+File.open("../../README.md", "w") do |f|
+ first_comment = []
+ IO.read("static_fallback.rb").each_line do |l|
+ if l =~ /\s*#/
+ first_comment << l.sub(/^\s*#\s/, "").rstrip
+ elsif !first_comment.empty?
+ break
+ end
+ end
+ f.write(first_comment.join("\n"))
+end

0 comments on commit fe44b89

Please sign in to comment.