Permalink
Browse files

[LocalSource] Tuning.

  • Loading branch information...
1 parent 7a80f78 commit 9e8c7b56da7f19e51f98ddb4bad3c663bf6bf55a @fabiopelosin fabiopelosin committed Aug 20, 2012
Showing with 2 additions and 6 deletions.
  1. +1 −1 lib/cocoapods/local_pod.rb
  2. +1 −5 lib/cocoapods/specification.rb
@@ -518,7 +518,7 @@ def create
end
def root
- Pathname.new(@top_specification.defined_in_file).dirname
+ @root ||= Pathname.new(@top_specification.source[:local]).expand_path
end
def implode
@@ -390,11 +390,7 @@ def local?
end
def pod_destroot
- if local?
- local_path
- else
- config.project_pods_root + top_level_parent.name
- end
+ config.project_pods_root + top_level_parent.name
end
def self.pattern_list(patterns)

0 comments on commit 9e8c7b5

Please sign in to comment.