Permalink
Browse files

[Specs] Minor fixes.

  • Loading branch information...
1 parent df376df commit f5e49dbb7478f79ebfcef161632a1b25884f0571 @fabiopelosin fabiopelosin committed Sep 24, 2012
Showing with 9 additions and 9 deletions.
  1. +3 −2 lib/cocoapods/specification/set.rb
  2. +0 −7 spec/spec_helper/command.rb
  3. +6 −0 spec/spec_helper/pre_flight.rb
@@ -88,8 +88,9 @@ def specification_by_name(name)
#
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 @@ def command(*argv)
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 @@ class Context
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

0 comments on commit f5e49db

Please sign in to comment.