From c8e21f2e6c83fffcb18e4e1b130bf4b3cf6b50de Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Tue, 27 Dec 2011 02:45:00 +0100 Subject: use coderay_path to load version.rb --- lib/coderay.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/coderay.rb') diff --git a/lib/coderay.rb b/lib/coderay.rb index e54a73b..876d770 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -127,8 +127,6 @@ module CodeRay $CODERAY_DEBUG ||= false - require 'coderay/version' - CODERAY_PATH = File.join File.dirname(__FILE__), 'coderay' # Assuming the path is a subpath of lib/coderay/ @@ -136,6 +134,8 @@ module CodeRay File.join CODERAY_PATH, *path end + require coderay_path('version') + # helpers autoload :FileType, coderay_path('helpers', 'file_type') -- cgit v1.2.1