summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2011-12-27 02:45:00 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2011-12-27 02:45:00 +0100
commitc8e21f2e6c83fffcb18e4e1b130bf4b3cf6b50de (patch)
treef75cd6fe168e8a3ad2e3b596d95d41b7829f7500
parent5c4c0065784c6420224516e13a0c50d86e792363 (diff)
downloadcoderay-c8e21f2e6c83fffcb18e4e1b130bf4b3cf6b50de.tar.gz
use coderay_path to load version.rb
-rw-r--r--lib/coderay.rb4
1 files changed, 2 insertions, 2 deletions
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')