Permalink
Browse files

init commit

  • Loading branch information...
0 parents commit 3793ad3977334d4c6a88629c13e2e8f3928186fd @gutenye committed Mar 8, 2011
Showing with 44 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +5 −0 .yardopts
  3. 0 LICENSE
  4. +6 −0 README.md
  5. +9 −0 Rakefile
  6. 0 lib/rag.rb
  7. 0 spec/spec_helper.rb
  8. +22 −0 tag.watchr
@@ -0,0 +1,2 @@
+*~
+/.yardoc
@@ -0,0 +1,5 @@
+--markup markdown
+
+-
+docs/**/*.md
+
No changes.
@@ -0,0 +1,6 @@
+
+Resources
+---------
+* hoe [https://github.com/seattlerb/hoe]
+
+
@@ -0,0 +1,9 @@
+require 'bundler/setup'
+require 'hoe'
+
+Hoe.spec '<%= project %>' do
+ developer('<%= XIF %>', '<%= XIF %>@example.com')
+
+ # self.rubyforge_name = '<%= project %>x' # if different than '<%= project %>'
+end
+
No changes.
No changes.
@@ -0,0 +1,22 @@
+# lib/**/*.rb
+watch %r~lib/(.*)\.rb~ do |m|
+ test "spec/#{m[1]}_spec.rb"
+end
+
+# spec/**/*_spec.rb
+watch %r~spec/.*_spec\.rb~ do |m|
+ test m[0]
+end
+
+# Ctrl-\
+Signal.trap('QUIT') do
+ puts "--- Running all tests ---\n\n"
+ test "spec"
+end
+
+def test path
+ cmd = "rspec --color #{path}"
+ puts cmd
+ system cmd
+end
+

0 comments on commit 3793ad3

Please sign in to comment.