tdoc 0.4.0 → 0.5.0

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.
Files changed (2) hide show
  1. data/bin/tdoc.rb +2 -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 => '_require.rb'}
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=ARGV.shift if ARGV
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}`}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herb Daily