lib/yard.rb in yard-0.5.4 vs lib/yard.rb in yard-0.5.5

- old
+ new

@@ -1,7 +1,7 @@ module YARD - VERSION = "0.5.4" + VERSION = "0.5.5" ROOT = File.expand_path(File.dirname(__FILE__)) TEMPLATE_ROOT = File.join(ROOT, '..', 'templates') CONFIG_DIR = File.expand_path('~/.yard') # An alias to {Parser::SourceParser}'s parsing method @@ -50,11 +50,11 @@ # Keep track of Ruby version for compatibility code RUBY19, RUBY18 = *(RUBY_VERSION >= "1.9.1" ? [true, false] : [false, true]) # Load Ruby core extension classes -Dir.glob(File.join(YARD::ROOT, 'yard', 'core_ext', '*')).each do |file| - require file.gsub(/\.rb$/, '') +Dir.glob(File.join(YARD::ROOT, 'yard', 'core_ext', '*.rb')).each do |file| + require file end ['autoload', 'globals'].each do |file| require File.join(YARD::ROOT, 'yard', file) end