10000 use coderay_path to load version.rb · tjk/coderay@c8e21f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8e21f2

Browse files
committed
use coderay_path to load version.rb
1 parent 5c4c006 commit c8e21f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/coderay.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ module CodeRay
127127

128128
$CODERAY_DEBUG ||= false
129129

130-
require 'coderay/version'
131-
132130
CODERAY_PATH = File.join File.dirname(__FILE__), 'coderay'
133131

134132
# Assuming the path is a subpath of lib/coderay/
135133
def self.coderay_path *path
136134
File.join CODERAY_PATH, *path
137135
end
138136

137+
require coderay_path('version')
138+
139139
# helpers
140140
autoload :FileType, coderay_path('helpers', 'file_type')
141141

0 commit comments

Comments
 (0)
0