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

Merge pull request #3147 from CocoaPods/seg-podspec-migrator

Migrate local Ruby podspecs to JSON
parents 546557cc 3e82d50f
...@@ -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
......
Subproject commit 05d1f9a8e4f28691c5c5fd5a68a2634763b54bba Subproject commit a6bbd0cbc48c3038cd9374c3b7b259a2505ab067
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