Commit 14486bbe authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Resolver] Allow LazySpecs to stay unrealized for longer

parent ab81fb39
...@@ -16,7 +16,7 @@ end ...@@ -16,7 +16,7 @@ end
module Pod module Pod
class Specification::Set class Specification::Set
class LazySpecification class LazySpecification < BasicObject
attr_reader :name, :version, :source attr_reader :name, :version, :source
def initialize(name, version, source) def initialize(name, version, source)
...@@ -29,6 +29,14 @@ module Pod ...@@ -29,6 +29,14 @@ module Pod
specification.send(method, *args, &block) specification.send(method, *args, &block)
end end
def subspec_by_name(name = nil)
if !name || name == self.name
self
else
specification.subspec_by_name(name)
end
end
def specification def specification
@specification ||= source.specification(name, version) @specification ||= source.specification(name, version)
end end
......
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