https://github.com/bodacious/tomdoctest
Showing how I can't get tomdoc to work :(
https://github.com/bodacious/tomdoctest
Last synced: 13 days ago
JSON representation
Showing how I can't get tomdoc to work :(
- Host: GitHub
- URL: https://github.com/bodacious/tomdoctest
- Owner: Bodacious
- Created: 2012-03-02T15:38:45.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-02T15:43:35.000Z (over 14 years ago)
- Last Synced: 2025-02-28T01:47:03.712Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# The problem
To reproduce this error:
$ tomdoc some_ruby_file.rb
This give the following error:
/Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/tomdoc.rb:124:in `block in tomdoc': bad value for range (ArgumentError)
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/tomdoc.rb:120:in `map'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/tomdoc.rb:120:in `tomdoc'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/tomdoc.rb:257:in `parse'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/tomdoc.rb:56:in `initialize'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/scope.rb:19:in `new'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/scope.rb:19:in `tomdoc'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/generators/console.rb:9:in `write_scope_header'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/generator.rb:51:in `write_scope'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/generator.rb:41:in `block in process'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/generator.rb:40:in `each'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/generator.rb:40:in `process'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/generator.rb:34:in `generate'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/cli.rb:101:in `block (2 levels) in '
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1412:in `call'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1412:in `block in parse_in_order'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:648:in `search'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1510:in `block in visit'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1509:in `reverse_each'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1509:in `visit'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1412:in `parse_in_order'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1341:in `order!'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1432:in `permute!'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1453:in `parse!'
from /Users/Gavin/.rvm/rubies/ruby-1.9.3-p0-perf/lib/ruby/1.9.1/optparse.rb:1443:in `parse'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/cli.rb:118:in `parse_options'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/cli.rb:114:in `parse_options'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/lib/tomdoc/cli.rb:146:in `'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/gems/tomdoc-0.2.4/bin/tomdoc:7:in `'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/bin/tomdoc:19:in `load'
from /Users/Gavin/.rvm/gems/ruby-1.9.3-p0-perf/bin/tomdoc:19:in `'