Permalink
Browse files

maven does not need leading slash, bundle mirror does not a leading s…

…lash on the url string
  • Loading branch information...
1 parent 0fbb3a1 commit d93893823e870615255a06024a990d2bbebee406 @mkristian committed Jan 25, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/jbundler/config.rb
View
@@ -82,10 +82,16 @@ def proxy
def mirror
@mirror ||= jbundler_env('JBUNDLE_MIRROR')
+ # nce to have no leading slash
+ @mirror.sub!( /\/$/, '' ) if @mirror
+ @mirror
end
def rubygems_mirror
@rubygems_mirror ||= jbundler_env('BUNDLE_RUBYGEMS_MIRROR')
+ # here a leading slash is needed !!
+ @rubygems_mirror.sub!( /([^\/])$/ , "\\1/" ) if @rubygems_mirror
+ @rubygems_mirror
end
end
end

0 comments on commit d938938

Please sign in to comment.