Permalink
Browse files

[Lockfile] Support for specs defined in Podfile.

  • Loading branch information...
1 parent 2345d55 commit 584c2b3ce50253610e8a2ac22918e74507859b67 @fabiopelosin fabiopelosin committed Aug 10, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/cocoapods/lockfile.rb
View
5 lib/cocoapods/lockfile.rb
@@ -75,9 +75,10 @@ def dependency_from_string(string)
case version
when nil
Dependency.new(name)
+ when /defined in Podfile/
+ # @TODO: store the whole spec?, the version?
+ Dependency.new(name)
when /from `(.*)'/
- # @TODO: find a way to serialize the external specs and support
- # all the options
external_source_info = external_sources.find {|hash| hash.keys[0] == name} || {}
Dependency.new(name, external_source_info[name])
when /HEAD/

0 comments on commit 584c2b3

Please sign in to comment.