Skip to content

Commit

Permalink
Only check if the source of a pod is ‘local’ if there is a source.
Browse files Browse the repository at this point in the history
Which might not be the case if a pod is part of another pod.

Fixes #130.
  • Loading branch information
alloy committed Feb 22, 2012
1 parent 1b5a845 commit 00bc92e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/pod
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby

if $0 == __FILE__
$:.unshift File.expand_path('../../external/xcodeproj/ext', __FILE__)
$:.unshift File.expand_path('../../external/xcodeproj/lib', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods/specification.rb
Expand Up @@ -154,7 +154,7 @@ def subspec(name, &block)
include Config::Mixin

def local?
!source[:local].nil?
!source.nil? && !source[:local].nil?
end

def local_path
Expand Down

0 comments on commit 00bc92e

Please sign in to comment.