alox 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/alox +7 -5
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/bin/alox
CHANGED
@@ -2,14 +2,16 @@
|
|
2
2
|
|
3
3
|
require File.expand_path('../../vendor/bundle/bundler/setup', __FILE__)
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
# look for /alox-XXX-0.0.0/lib and map XXX => gem root
|
8
|
-
aloxes = ($:.collect {|lib| lib.match(%r{(.*?/alox-([^-]+)-[^/]+)/lib}) }).compact.inject({}) {|acc, m| acc[m[2]] = m[1]; acc }
|
5
|
+
# look for /XXX/lib and map XXX => gem root
|
6
|
+
aloxes = ($:.collect {|lib| lib.match(%r{(.*?/([^/]+))/lib}) }).compact.inject({}) {|acc, m| acc[m[2]] = m[1]; acc }
|
9
7
|
|
10
8
|
ENV['PATH'] = aloxes.inject(ENV['PATH']) {|acc, alox|
|
11
9
|
_, root = alox
|
12
|
-
"#{root}/
|
10
|
+
if File.directory? "#{root}/aloxec"
|
11
|
+
"#{root}/aloxec:#{acc}"
|
12
|
+
else
|
13
|
+
acc
|
14
|
+
end
|
13
15
|
}
|
14
16
|
|
15
17
|
if ARGV.length > 0
|