Wrap platform warning message with quotes

parent 0dc40ad6
...@@ -18,6 +18,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -18,6 +18,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes ##### Bug Fixes
* Wrap platform warning message with quotes
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6968](https://github.com/CocoaPods/CocoaPods/pull/6968)
* Wire dependencies for pod targets not part of any aggregate target * Wire dependencies for pod targets not part of any aggregate target
[Dimitris Koutsogiorgas](https://github.com/dnkoutso) [Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6948](https://github.com/CocoaPods/CocoaPods/pull/6948) [#6948](https://github.com/CocoaPods/CocoaPods/pull/6948)
......
...@@ -161,8 +161,8 @@ module Pod ...@@ -161,8 +161,8 @@ module Pod
"Unable to determine the platform for the `#{target_definition.name}` target." "Unable to determine the platform for the `#{target_definition.name}` target."
end end
UI.warn "Automatically assigning platform #{name} with version #{deployment_target} " \ UI.warn "Automatically assigning platform `#{name}` with version `#{deployment_target}` " \
"on target #{target_definition.name} because no platform was specified. " \ "on target `#{target_definition.name}` because no platform was specified. " \
"Please specify a platform for this target in your Podfile. See `#{PLATFORM_INFO_URL}`." "Please specify a platform for this target in your Podfile. See `#{PLATFORM_INFO_URL}`."
target_definition.set_platform(name, deployment_target) target_definition.set_platform(name, deployment_target)
......
Subproject commit 8e2ead35c3933543b2fbf9d554fcd59f9da9be57 Subproject commit 887db925362e22e065a1c410a18d71a670b1ec28
...@@ -232,7 +232,7 @@ module Pod ...@@ -232,7 +232,7 @@ module Pod
target_inspector = TargetInspector.new(target_definition, config.installation_root) target_inspector = TargetInspector.new(target_definition, config.installation_root)
platforms = target_inspector.send(:compute_platform, user_targets) platforms = target_inspector.send(:compute_platform, user_targets)
platforms.should == Platform.new(:ios, '4.0') platforms.should == Platform.new(:ios, '4.0')
UI.warnings.should.include 'Automatically assigning platform ios with version 4.0 on target default because no ' \ UI.warnings.should.include 'Automatically assigning platform `ios` with version `4.0` on target `default` because no ' \
'platform was specified. Please specify a platform for this target in your Podfile. ' \ 'platform was specified. Please specify a platform for this target in your Podfile. ' \
'See `https://guides.cocoapods.org/syntax/podfile.html#platform`.' 'See `https://guides.cocoapods.org/syntax/podfile.html#platform`.'
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