dkubb / yardstick

A tool for verifying YARD documentation coverage
http://wiki.github.com/dkubb/yardstick
MIT License
172 stars 22 forks source link

uninitialized constant Yardstick::Document::Set #19

Closed trans closed 10 years ago

trans commented 10 years ago

On ruby 2.0.0p247 and the latest yardstick (0.9.7) I am getting:

$  yardstick 'lib/**/*.rb'
/home/trans/.gem/ruby/2.0.0/gems/yardstick-0.9.7/lib/yardstick/document.rb:7:in `<class:Document>': uninitialized constant Yardstick::Document::Set (NameError)
    from /home/trans/.gem/ruby/2.0.0/gems/yardstick-0.9.7/lib/yardstick/document.rb:6:in `<module:Yardstick>'
    from /home/trans/.gem/ruby/2.0.0/gems/yardstick-0.9.7/lib/yardstick/document.rb:3:in `<top (required)>'
    from /home/trans/.rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /home/trans/.rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /home/trans/.gem/ruby/2.0.0/gems/backports-3.4.0/lib/backports/tools.rb:328:in `require_with_backports'
    from /home/trans/.gem/ruby/2.0.0/gems/yardstick-0.9.7/lib/yardstick.rb:14:in `<top (required)>'
    from /home/trans/.rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /home/trans/.rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /home/trans/.gem/ruby/2.0.0/gems/yardstick-0.9.7/bin/yardstick:6:in `<top (required)>'
    from /home/trans/.gem/ruby/2.0.0/bin/yardstick:23:in `load'
    from /home/trans/.gem/ruby/2.0.0/bin/yardstick:23:in `<main>'
jm commented 10 years ago

Same here. I tried switching versions of Ruby from 2.1, 2.0, and 1.8.7 and all have the same error it seems.

mbj commented 10 years ago

@jm, @trans Can you test if it works for you on master? I'll release an updated version if so.

jm commented 10 years ago

:+1: Works great! After I got that set and a few other tweaks, this is giving me exactly what I need. :smile:

mbj commented 10 years ago

@jm Just released as 0.9.8.