whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/2] Commit 65d64c6: use real path for uniqueness
Date Fri, 22 Jan 2016 12:12:13 GMT
Commit 65d64c65b95077d4a4d2012147778a769b1ebc63:
    use real path for uniqueness


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
lib/whimsy/asf/config.rb                                     | + 
------------------------------------------------------------
1 changes: 1 additions, 0 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/config.rb b/lib/whimsy/asf/config.rb
index 762f502..25fc2d5 100644
--- a/lib/whimsy/asf/config.rb
+++ b/lib/whimsy/asf/config.rb
@@ -15,6 +15,7 @@ class Config
     # add libraries to RUBYLIB, load path
     (@config[:lib] || []).reverse.each do |lib|
       next unless File.exist? lib
+      lib = File.realpath(lib)
       ENV['RUBYLIB']=([lib] + ENV['RUBYLIB'].to_s.split(':')).uniq.join(':')
       $LOAD_PATH.unshift lib.untaint unless $LOAD_PATH.include? lib
     end

Mime
View raw message