lsegal/yard — pull request #556 by bossmc (2012-06-14 00:24:27+00:00)
Title: Allow YARD to be run from 'bundle exec'

Attempting to use a yard plugin when running yard through `bundle exec` leads to the plugin not being found. This is because `yard.gemspec` includes `yard.rb` which attempts to load all the plugins immediately. If bundler doesn't load the gems in the correct order, this will lead to YARD loading the plugin before bundler has loaded the plugin gem.

Fix is to disconnect the Gemspec from `yard.rb`. This is possible because we only need `YARD::VERSION` from `yard.rb` so we can separate that out into `yard/version.rb` (which is the standard gem layout anyway).