Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Fix name generation for regular Pods
Browse files Browse the repository at this point in the history
  • Loading branch information
neonichu committed May 25, 2016
1 parent ecc97d3 commit 9932a93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cocoapods-playgrounds/workspace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ def setup_project(install = true)

def names
@names.map do |name|
(@cwd + name).exist? ? File.basename(name, '.podspec') : File.dirname(name)
if !(@cwd + name).exist? && name.include?('/')
File.dirname(name)
else
File.basename(name, '.podspec')
end
end
end

Expand Down

0 comments on commit 9932a93

Please sign in to comment.