Skip to content

Loading…

uninitialized constant Yardstick::Document::Set #19

Closed
trans opened this Issue · 4 comments

3 participants

@trans

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
jm commented

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 mbj added a commit that closed this issue
@mbj mbj Add missing require 'set'
Closes #19
1601375
@mbj mbj closed this in 1601375
@mbj
Collaborator

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

@jm
jm commented

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

@mbj
Collaborator

@jm Just released as 0.9.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.