Commit 0ea57449 authored by Samuel Giddins's avatar Samuel Giddins

[IntegrationSpecs] Update for using new Podfile DSL

parent 18808944
Subproject commit 8fcbde616c475c5ce97e359834092bd9dca06ae8 Subproject commit 75f5c4b33eb3b371a4d383b007a3bfd2933563e3
...@@ -44,9 +44,12 @@ $:.unshift((ROOT + 'spec').to_s) ...@@ -44,9 +44,12 @@ $:.unshift((ROOT + 'spec').to_s)
require 'rubygems' require 'rubygems'
require 'bundler/setup' require 'bundler/setup'
require 'pretty_bacon' require 'pretty_bacon'
require 'colored' require 'colored'
require 'clintegracon' require 'clintegracon'
require 'cocoapods-core/yaml_helper'
require 'fileutils' require 'fileutils'
require 'integration/file_tree' require 'integration/file_tree'
require 'integration/xcodeproj_project_yaml' require 'integration/xcodeproj_project_yaml'
...@@ -78,11 +81,19 @@ CLIntegracon.configure do |c| ...@@ -78,11 +81,19 @@ CLIntegracon.configure do |c|
end end
# Register special handling for YAML files # Register special handling for YAML files
c.transform_produced '**/{Podfile,Manifest}.lock' do |path| c.transform_produced %r{(^|/)(Podfile|Manifest).lock$} do |path|
# Remove CocoaPods version # Remove CocoaPods version & Podfile checksum
yaml = YAML.load(path.read) yaml = YAML.load(path.read)
yaml.delete('COCOAPODS') yaml.delete('COCOAPODS')
path.open('w') { |f| f << YAML.dump(yaml) } yaml.delete('PODFILE CHECKSUM')
keys_hint = [
'PODS',
'DEPENDENCIES',
'EXTERNAL SOURCES',
'CHECKOUT OPTIONS',
'SPEC CHECKSUMS',
]
path.open('w') { |f| f << Pod::YAMLHelper.convert_hash(yaml, keys_hint, "\n\n") }
end end
# So we don't need to compare them directly # So we don't need to compare them directly
......
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