Commit f73e880a authored by Samuel Giddins's avatar Samuel Giddins

[Validator] Allow specifying only the subspec name

parent 187ce57c
......@@ -67,7 +67,8 @@ module Pod
# Replace default spec with a subspec if asked for
a_spec = spec
if spec && @only_subspec
a_spec = spec.subspec_by_name(@only_subspec)
subspec_name = @only_subspec.start_with?(spec.root.name) ? @only_subspec : "#{spec.root.name}/#{@only_subspec}"
a_spec = spec.subspec_by_name(subspec_name)
@subspec_name = a_spec.name
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