Commit 2d062259 authored by Kurry Tran's avatar Kurry Tran

added spaces in CHANGELOG and reversed conditional in name_for_url method

parent b2e7ff6d
......@@ -422,11 +422,11 @@ module Pod
#
def name_for_url(url)
base_from_host_and_path = lambda do |host, path|
if host.nil?
base = ''
else
if host
base = host.split('.')[-2] || host
base += '-'
else
base = ''
end
base += path.gsub(/.git$/, '').gsub(/^\//, '').
split('/').join('-')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment