mynyml-watchr 0.3.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +46 -24
- data/Rakefile +10 -55
- data/TODO.txt +30 -26
- data/bin/watchr +9 -6
- data/docs.watchr +26 -0
- data/lib/watchr.rb +62 -123
- data/lib/watchr/controller.rb +79 -0
- data/lib/watchr/event_handlers/base.rb +48 -0
- data/lib/watchr/event_handlers/portable.rb +55 -0
- data/lib/watchr/event_handlers/unix.rb +62 -0
- data/lib/watchr/script.rb +192 -0
- data/lib/watchr/version.rb +4 -4
- data/specs.watchr +21 -12
- data/test/event_handlers/test_base.rb +24 -0
- data/test/event_handlers/test_portable.rb +58 -0
- data/test/event_handlers/test_unix.rb +56 -0
- data/test/test_controller.rb +104 -0
- data/test/test_helper.rb +20 -37
- data/test/test_script.rb +88 -0
- data/test/test_watchr.rb +32 -155
- data/watchr.gemspec +61 -70
- metadata +99 -29
- data/rdoc.watchr +0 -15
- data/yard.watchr +0 -18
data/rdoc.watchr
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# Run me with:
|
2
|
-
#
|
3
|
-
# $ watchr docs.watchr
|
4
|
-
|
5
|
-
run_rdoc = lambda { system('rake --silent rdoc') }
|
6
|
-
|
7
|
-
watch( '(lib|bin)/.*\.rb', &run_rdoc )
|
8
|
-
watch( 'README.rdoc', &run_rdoc )
|
9
|
-
watch( 'TODO.txt', &run_rdoc )
|
10
|
-
watch( 'LICENSE', &run_rdoc )
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
# vim:ft=ruby
|
data/yard.watchr
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# Run me with:
|
2
|
-
#
|
3
|
-
# $ watchr docs-yard.watchr
|
4
|
-
|
5
|
-
def run_yard
|
6
|
-
print "Updating yardocs... "
|
7
|
-
system('yardoc -o doc/yard --readme README.rdoc --files LICENSE')
|
8
|
-
print "done.\n"
|
9
|
-
end
|
10
|
-
|
11
|
-
watch( '^(lib|bin)/.*\.rb' ) { run_yard }
|
12
|
-
watch( '^README.rdoc' ) { run_yard }
|
13
|
-
watch( '^LICENSE' ) { run_yard }
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# vim:ft=ruby
|