summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-23 15:15:24 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-23 15:15:24 +0200
commit416243353e0b4b1c449476b269a50b0f60c13bda (patch)
tree604883aa9fc78b302020472e72e6b02ea3d7330c
parenta3e79c794f0998034b26ff6baa10bc801918be9d (diff)
downloadcoderay-416243353e0b4b1c449476b269a50b0f60c13bda.tar.gz
trying different ways to load CodeRay version
-rw-r--r--lib/coderay.rb2
-rw-r--r--lib/coderay/version.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb
index 24ae5a2..0c66f49 100644
--- a/lib/coderay.rb
+++ b/lib/coderay.rb
@@ -134,7 +134,7 @@ module CodeRay
File.join CODERAY_PATH, *path
end
- require coderay_path('version')
+ require 'coderay/version'
# helpers
autoload :FileType, coderay_path('helpers', 'file_type')
diff --git a/lib/coderay/version.rb b/lib/coderay/version.rb
index 4115d09..4b4f085 100644
--- a/lib/coderay/version.rb
+++ b/lib/coderay/version.rb
@@ -1,3 +1,3 @@
module CodeRay
- VERSION = '1.1.0' unless defined? VERSION
+ VERSION = '1.1.0'
end