Commit b7934b54 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Migrator] Migrate local Ruby podspecs to JSON, allowing updating those pods to work

What 1eb3584a should have been
parent 546557cc
...@@ -53,6 +53,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -53,6 +53,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins][https://github.com/segiddins] [Samuel Giddins][https://github.com/segiddins]
[#3141](https://github.com/CocoaPods/CocoaPods/issues/3141) [#3141](https://github.com/CocoaPods/CocoaPods/issues/3141)
* Migrate local Ruby podspecs to JSON, allowing updating those pods to work.
[Samuel Giddins](https://github.com/segiddins)
[#3038](https://github.com/CocoaPods/CocoaPods/issues/3038)
## 0.36.0.beta.2 ## 0.36.0.beta.2
......
...@@ -52,6 +52,14 @@ module Pod ...@@ -52,6 +52,14 @@ module Pod
def migrate_to_0_36(sandbox) def migrate_to_0_36(sandbox)
UI.message('Migrating to CocoaPods 0.36') do UI.message('Migrating to CocoaPods 0.36') do
move(sandbox.root + 'Headers/Build', sandbox.root + 'Headers/Private') move(sandbox.root + 'Headers/Build', sandbox.root + 'Headers/Private')
sandbox.specifications_root.children.each do |child|
next unless child.basename.to_s =~ /\.podspec$/
spec = Specification.from_file(child)
child.delete
child = Pathname("#{child}.json")
child.write(spec.to_pretty_json)
end
end end
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