Commit 82850e0d authored by Daniel Tomlinson's avatar Daniel Tomlinson

[SourcesManager] Always use `source_from_path`

parent 25e76f42
...@@ -41,7 +41,7 @@ module Pod ...@@ -41,7 +41,7 @@ module Pod
# #
def sources(names) def sources(names)
dirs = names.map { |name| source_dir(name) } dirs = names.map { |name| source_dir(name) }
dirs.map { |repo| Source.new(repo) } dirs.map { |repo| source_from_path(repo) }
end end
# Returns the source whose {Source#url} is equal to `url`, adding the repo # Returns the source whose {Source#url} is equal to `url`, adding the repo
...@@ -97,7 +97,7 @@ module Pod ...@@ -97,7 +97,7 @@ module Pod
def all def all
return [] unless config.repos_dir.exist? return [] unless config.repos_dir.exist?
dirs = config.repos_dir.children.select(&:directory?) dirs = config.repos_dir.children.select(&:directory?)
dirs.map { |repo| Source.new(repo) } dirs.map { |repo| source_from_path(repo) }
end end
# @return [Array<Source>] The CocoaPods Master Repo source. # @return [Array<Source>] The CocoaPods Master Repo source.
......
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