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

Merge pull request #4692 from CocoaPods/seg-update-xcodeproj

[Bundle] Update Xcodeproj
parents 5e13b2d1 4fc49822
GIT GIT
remote: https://github.com/CocoaPods/CLAide.git remote: https://github.com/CocoaPods/CLAide.git
revision: 4ded02e52c34d5bbe5f6f031d917394286445aa6 revision: f16fb46831ae1ca77f0d1dc7e538a50044ee4951
branch: master branch: master
specs: specs:
claide (0.9.1) claide (0.9.1)
...@@ -24,7 +24,7 @@ GIT ...@@ -24,7 +24,7 @@ GIT
GIT GIT
remote: https://github.com/CocoaPods/Xcodeproj.git remote: https://github.com/CocoaPods/Xcodeproj.git
revision: eea8f8d58eef635f2cc9121ee1af6a5478a2841c revision: ffeadb7ca0edc5afafbac0304cf088c4e4b75ae5
branch: master branch: master
specs: specs:
xcodeproj (0.28.2) xcodeproj (0.28.2)
......
...@@ -6,7 +6,7 @@ module Pod ...@@ -6,7 +6,7 @@ module Pod
end end
def save_as(path) def save_as(path)
Xcodeproj::PlistHelper.write(plist, path) Xcodeproj::Plist.write_to_path(plist, path)
end end
def plist def plist
......
...@@ -54,7 +54,7 @@ describe Pod::Generator::Plist do ...@@ -54,7 +54,7 @@ describe Pod::Generator::Plist do
basepath = config.sandbox.root + 'Pods-acknowledgements' basepath = config.sandbox.root + 'Pods-acknowledgements'
given_path = @generator.class.path_from_basepath(basepath) given_path = @generator.class.path_from_basepath(basepath)
expected_path = config.sandbox.root + 'Pods-acknowledgements.plist' expected_path = config.sandbox.root + 'Pods-acknowledgements.plist'
Xcodeproj::PlistHelper.expects(:write).with(equals(@generator.plist), equals(expected_path)) Xcodeproj::Plist.expects(:write_to_path).with(equals(@generator.plist), equals(expected_path))
@generator.save_as(given_path) @generator.save_as(given_path)
end end
end end
...@@ -69,7 +69,7 @@ module Pod ...@@ -69,7 +69,7 @@ module Pod
generator = Generator::InfoPlistFile.new(mock('Target', :platform => stub(:name => :ios))) generator = Generator::InfoPlistFile.new(mock('Target', :platform => stub(:name => :ios)))
file = temporary_directory + 'Info.plist' file = temporary_directory + 'Info.plist'
generator.save_as(file) generator.save_as(file)
Xcodeproj::PlistHelper.read(file).should == { Xcodeproj::Plist.read_from_path(file).should == {
'CFBundleDevelopmentRegion' => 'en', 'CFBundleDevelopmentRegion' => 'en',
'CFBundleExecutable' => '${EXECUTABLE_NAME}', 'CFBundleExecutable' => '${EXECUTABLE_NAME}',
'CFBundleIdentifier' => '${PRODUCT_BUNDLE_IDENTIFIER}', 'CFBundleIdentifier' => '${PRODUCT_BUNDLE_IDENTIFIER}',
...@@ -89,7 +89,7 @@ module Pod ...@@ -89,7 +89,7 @@ module Pod
generator = Generator::InfoPlistFile.new(pod_target) generator = Generator::InfoPlistFile.new(pod_target)
file = temporary_directory + 'Info.plist' file = temporary_directory + 'Info.plist'
generator.save_as(file) generator.save_as(file)
Xcodeproj::PlistHelper.read(file)['UIRequiredDeviceCapabilities'].should == %w(arm64) Xcodeproj::Plist.read_from_path(file)['UIRequiredDeviceCapabilities'].should == %w(arm64)
end 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