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 ...@@ -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) [#2627](https://github.com/CocoaPods/CocoaPods/issues/2627)
[#2665](https://github.com/CocoaPods/CocoaPods/issues/2665) [#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) [Kurry Tran](https://github.com/kurry)
[#2683](https://github.com/CocoaPods/CocoaPods/issues/2683) [#2683](https://github.com/CocoaPods/CocoaPods/issues/2683)
......
...@@ -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