Commit f5e49dbb authored by Fabio Pelosin's avatar Fabio Pelosin

[Specs] Minor fixes.

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