merona 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/frame/merona.rb +7 -7
- metadata +1 -1
data/frame/merona.rb
CHANGED
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
meorna_path = Gem::bin_path('merona', 'merona')
|
6
|
+
meorna_path.reverse!
|
7
|
+
meorna_path = path.split("/", 3)[2]
|
8
|
+
meorna_path.reverse!
|
9
|
+
meorna_path += "/lib"
|
10
10
|
|
11
|
-
$LOAD_PATH <<
|
11
|
+
$LOAD_PATH << meorna_path
|
12
12
|
$LOAD_PATH << File.dirname(File.expand_path(__FILE__))
|
13
13
|
|
14
14
|
|
15
15
|
def import(_path)
|
16
16
|
if _path[_path.length-1] == '*'
|
17
|
-
path =
|
17
|
+
path = meorna_path + _path
|
18
18
|
Dir[path[0..path.length-1] + "*.rb"].each {|file| require file }
|
19
19
|
path = "./" + _path
|
20
20
|
Dir[path[0..path.length-1] + "*.rb"].each {|file| require file }
|