Commit 8b4bbf7d authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #3343 from CocoaPods/seg-0.36-migration

[Migrator] Update spec checksums in the manifest
parents 57678a9e 904e1a7c
...@@ -6,13 +6,20 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -6,13 +6,20 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
## Master ## Master
#### Enhancements #### Bug Fixes
* Unique resources passed to the script generator * Unique resources passed to the script generator.
[Diego Torres](https://github.com/dtorres) [Diego Torres](https://github.com/dtorres)
[#3315](https://github.com/CocoaPods/CocoaPods/issues/3315) [#3315](https://github.com/CocoaPods/CocoaPods/issues/3315)
[#3327](https://github.com/CocoaPods/CocoaPods/issues/3327) [#3327](https://github.com/CocoaPods/CocoaPods/issues/3327)
* Update the `Manifest.lock` when migrating local podspecs to JSON. This fixes
running `pod install` after upgrading to `0.36`.
[Samuel Giddins](https://github.com/segiddins)
[#3292](https://github.com/CocoaPods/CocoaPods/issues/3292)
[#3299](https://github.com/CocoaPods/CocoaPods/issues/3299)
## 0.36.1 ## 0.36.1
[Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.23.0...0.23.1) [Xcodeproj](https://github.com/CocoaPods/Xcodeproj/compare/0.23.0...0.23.1)
......
...@@ -53,13 +53,17 @@ module Pod ...@@ -53,13 +53,17 @@ module Pod
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')
lockfile = sandbox.manifest.to_hash
sandbox.specifications_root.children.each do |child| sandbox.specifications_root.children.each do |child|
next unless child.basename.to_s =~ /\.podspec$/ next unless child.basename.to_s =~ /\.podspec$/
spec = Specification.from_file(child) spec = Specification.from_file(child)
child.delete child.delete
child = Pathname("#{child}.json") child = Pathname("#{child}.json")
File.open(child, 'w') { |f| f.write spec.to_pretty_json } File.open(child, 'w') { |f| f.write spec.to_pretty_json }
lockfile['SPEC CHECKSUMS'][spec.name] = Specification.from_file(child).checksum
end end
sandbox.manifest = Lockfile.new(lockfile)
File.open(sandbox.manifest_path, 'w') { |f| f.write sandbox.manifest.to_yaml }
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