summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 197cc6b..636f930 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,7 +4,7 @@ def location_for(place, fake_version = nil)
mdata = /^(git:[^#]*)#(.*)/.match(place)
if mdata
[fake_version, { :git => mdata[1], :branch => mdata[2], :require => false }].compact
- elsif place =~ /^file:\/\/(.*)/
+ elsif mdata = /^file:\/\/(.*)/.match(place)
['>= 0', { :path => File.expand_path(mdata[1]), :require => false }]
else
[place, { :require => false }]