lib/yard.rb in yard-0.4.0 vs lib/yard.rb in yard-0.5.0
- old
+ new
@@ -1,7 +1,7 @@
module YARD
- VERSION = "0.4.0"
+ VERSION = "0.5.0"
ROOT = File.dirname(__FILE__)
TEMPLATE_ROOT = File.join(File.dirname(__FILE__), '..', 'templates')
CONFIG_DIR = File.expand_path('~/.yard')
# An alias to {Parser::SourceParser}'s parsing method
@@ -29,10 +29,10 @@
ignored_plugins = IO.read(ignored_plugins_file).split(/\s+/)
else
ignored_plugins = []
end
- Gem.source_index.entries.each do |pkgname, gem|
+ Gem.source_index.find_name('').each do |gem|
begin
if gem.name =~ /^yard[-_]/ && !ignored_plugins.include?(gem.name)
log.debug "Loading plugin '#{gem.name}'..."
require gem.name
end