Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up

  • Loading branch information...
commit 30020170dcb0a99bfa8844b4b226bfa8f8e66352 1 parent b895ca6
@mynyml authored
Showing with 13 additions and 6 deletions.
  1. +6 −2 README.md
  2. +1 −1  Rakefile
  3. +6 −3 markdown.watchr
View
8 README.md
@@ -8,7 +8,7 @@ the bare mynymum needed; for everything else, there's ruby.
### Install
- gem install nanotest --source http://gemcutter.org
+ gem install nanotest
### Examples
@@ -49,7 +49,8 @@ fancy, check out the wiki for a few tips and tricks.
### See Also
-* nanotest/extensions: <http://github.com/mynyml/nanotest_extensions>
+* [nanotest/extensions][1]
+* [redgreen][2]
### Links
@@ -58,3 +59,6 @@ fancy, check out the wiki for a few tips and tricks.
* wiki: <http://wiki.github.com/mynyml/nanotest>
* bugs: <http://github.com/mynyml/nanotest/issues>
+
+[1]: http://github.com/mynyml/nanotest_extensions
+[2]: http://github.com/mynyml/redgreen
View
2  Rakefile
@@ -50,6 +50,6 @@ task(:loc) do
loc += 1 unless line.strip.empty? || line.strip =~ /^#/
end
end
- puts "lib contain #{loc} SLOCs"
+ puts "lib contains #{loc} SLOCs"
end
View
9 markdown.watchr
@@ -15,14 +15,17 @@ class ::String
end
default_action do
- puts "Translating README.md"
- Pathname('README.md').read.md2html.save_as('doc/README.html')
+ md = Pathname('README.md').expand_path
+ html = Pathname('doc/README.html').expand_path
+
+ puts "Translating #{md.basename} (file://#{html})"
+ md.read.md2html.save_as(html)
end
# --------------------------------------------------
# Watchr Rules
# --------------------------------------------------
-watch( '^README.md' )
+watch( '^README\.md' )
# --------------------------------------------------
# Signal Handling
Please sign in to comment.
Something went wrong with that request. Please try again.