Commit f5e49dbb authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Minor fixes.

parent df376df7
......@@ -88,8 +88,9 @@ module Pod
#
def specification
unless @specification
sources = versions_by_source.select { |_, versions| versions.include?(required_version) }.keys
source = sources.sort_by(&:name).first
sources = []
versions_by_source.each{ |source, versions| sources << source if versions.include?(required_version) }
source = sources.sort_by(&:name).first
@specification = source.specification(name, required_version)
end
@specification
......
......@@ -10,17 +10,10 @@ module SpecHelper
def run_command(*args)
Dir.chdir(SpecHelper.temporary_directory) do
Pod::UI.output = ''
# TODO: remove this once all cocoapods has
# been converted to use the UI.puts
config_silent = config.silent?
config.silent = false
# Very nasty behaviour where the relative increments are
# not reverted and lead to sections being collapsed and
# not being printed to the output.
Pod::UI.indentation_level = 0
Pod::UI.title_level = 0
command(*args).run
config.silent = config_silent
Pod::UI.output
......
......@@ -15,6 +15,12 @@ module Bacon
c.skip_repo_update = true
end
::Pod::UI.output = ''
# Very nasty behaviour where the relative increments are
# not reverted and lead to sections being collapsed and
# not being printed to the output.
::Pod::UI.indentation_level = 0
::Pod::UI.title_level = 0
old_run_requirement.bind(self).call(description, spec)
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