alox 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/bin/alox +7 -5
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
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
- require 'pp'
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}/aloxbin:#{root}/aloxec:#{acc}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: