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

added spaces in CHANGELOG and reversed conditional in name_for_url method

parent b2e7ff6d
......@@ -28,7 +28,7 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[#2627](https://github.com/CocoaPods/CocoaPods/issues/2627)
[#2665](https://github.com/CocoaPods/CocoaPods/issues/2665)
* Fixes a crash when using file URLs as a source.
* Fixes a crash when using file URLs as a source.
[Kurry Tran](https://github.com/kurry)
[#2683](https://github.com/CocoaPods/CocoaPods/issues/2683)
......
......@@ -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