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 ...@@ -422,11 +422,11 @@ module Pod
# #
def name_for_url(url) def name_for_url(url)
base_from_host_and_path = lambda do |host, path| base_from_host_and_path = lambda do |host, path|
if host.nil? if host
base = ''
else
base = host.split('.')[-2] || host base = host.split('.')[-2] || host
base += '-' base += '-'
else
base = ''
end end
base += path.gsub(/.git$/, '').gsub(/^\//, ''). base += path.gsub(/.git$/, '').gsub(/^\//, '').
split('/').join('-') 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