Skip to content

Commit

Permalink
Use Gem.path as suggested by dmitryelastic
Browse files Browse the repository at this point in the history
  • Loading branch information
ricktessner committed Apr 30, 2011
1 parent da913d4 commit 37d4cc4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/qwandry/configuration/default.rb
Expand Up @@ -11,15 +11,8 @@
register_if_present :gem do
require 'rubygems' unless defined? Gem

paths = []
if ENV['GEM_PATH'] # RVM makes use of GEM_PATH
paths = ENV['GEM_PATH'].split(':').map { |p| File.join(p, 'gems') }
end
paths << File.join(Gem.dir, 'gems')
paths = paths.uniq # Possible duplicates from GEM_PATH and Gem.dir

# Add rubygems path:
add paths
add Gem.path.map { |p| File.join(p, 'gems') }
end

# Register a perl configuration:
Expand Down

0 comments on commit 37d4cc4

Please sign in to comment.