Commit a942ac10 authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::Spec::Linter] Minor improvements.

parent 43d8dc6f
......@@ -220,7 +220,9 @@ module Pod
def peform_multiplatform_analysis
platform_names.each do |platform_name|
set_up_lint_environment
puts "\n\n#{spec} - Analyzing on #{Platform.new platform_name} platform.".green.reversed if config.verbose?
install_pod(platform_name)
puts "Building with xcodebuild.\n".yellow if config.verbose?
xcodebuild_output.concat(xcodebuild_output_for_platfrom(platform_name))
file_patterns_errors.concat(file_patterns_errors_for_platfrom(platform_name))
tear_down_lint_environment
......@@ -232,13 +234,21 @@ module Pod
end
def install_pod(platform_name)
puts "\n\n#{spec} - generating build errors for #{platform_name} platform".yellow.reversed if config.verbose?
podfile = podfile_from_spec(platform_name)
config.verbose
Installer.new(podfile).install!
config.silent
end
def podfile_from_spec(platform_name)
name = spec.name
podspec = file.realpath.to_s
podfile = Pod::Podfile.new do
platform platform_name
dependency name, :podspec => podspec
end
end
def set_up_lint_environment
tmp_dir.rmtree if tmp_dir.exist?
tmp_dir.mkpath
......@@ -334,7 +344,7 @@ module Pod
def deprecation_warnings
text = @file.read
deprecations = []
deprecations << "`config.ios?' and `config.osx' will be removed in version 0.7" if text. =~ /config\..os?/
deprecations << "`config.ios?' and `config.osx?' are deprecated and will be removed in version 0.7" if text. =~ /config\..?os.?/
deprecations << "The `post_install' hook is reserved for edge cases" if text. =~ /post_install/
deprecations
end
......@@ -366,15 +376,6 @@ module Pod
messages
end
def podfile_from_spec(platform_name)
name = spec.name
podspec = file.realpath.to_s
podfile = Pod::Podfile.new do
platform platform_name
dependency name, :podspec => podspec
end
end
def process_xcode_build_output(output)
output_by_line = output.split("\n")
selected_lines = output_by_line.select do |l|
......
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