tdoc 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/tdoc.rb +2 -2
- metadata +1 -1
data/bin/tdoc.rb
CHANGED
@@ -7,11 +7,11 @@ $: << 'lib'
|
|
7
7
|
|
8
8
|
LINST='^[#|\s]*'
|
9
9
|
LINSTM='[#|\s]*'
|
10
|
-
EXTENSIONS={:tests => '.rdoc',:requires => '
|
10
|
+
EXTENSIONS={:tests => '.rdoc',:requires => '.rb'}
|
11
11
|
DEFAULT_FILE="README#{EXTENSIONS[:tests]}"
|
12
12
|
|
13
13
|
def process(files=nil) #called at end of script
|
14
|
-
files
|
14
|
+
files||=ARGV.shift if ARGV
|
15
15
|
files||=DEFAULT_FILE
|
16
16
|
if files.class==Array
|
17
17
|
files.each {|f|`#{$PROGRAM_NAME} #{f}`}
|