Commit 5625ccdd authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #3171 from CocoaPods/seg-path-podspec-json

[ExternalSource] Coerce podspec string contents to json to store in the ...
parents e21e24c1 1395162d
...@@ -141,6 +141,9 @@ module Pod ...@@ -141,6 +141,9 @@ module Pod
if spec.is_a? Pathname if spec.is_a? Pathname
spec = Specification.from_file(spec).to_pretty_json spec = Specification.from_file(spec).to_pretty_json
json = true json = true
elsif spec.is_a?(String) && !json
spec = Specification.from_string(spec, 'spec.podspec').to_pretty_json
json = true
end end
sandbox.store_podspec(name, spec, true, json) sandbox.store_podspec(name, spec, true, json)
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