lib/cocoapods/sources_manager.rb
def check_version_information(dir)
        versions = version_information(dir)
        unless repo_compatible?(dir)
          min, max = versions['min'], versions['max']
          version_msg = ( min == max ) ? min : "#{min} - #{max}"
          raise Informative, "The `#{dir.basename}` repo requires " \
          "CocoaPods #{version_msg}\n".red +
          "Update Cocoapods, or checkout the appropriate tag in the repo."
        end

        if config.new_version_message? && cocoapods_update?(versions)
          UI.puts "\nCocoapods #{versions['last']} is available.\n".green
        end
      end
# Checks the version information of the source with the given directory.
# It raises if the source is not compatible and if there is CocoaPods
# update it informs the user.
#
# @param  [Pathname] dir
#         The directory where the source is stored.
#
# @raise  If the source is not compatible.
#
# @return [void]
#
Checks the version information of the source with the given directory.
It raises if the source is not compatible and if there is CocoaPods
update it informs the user.
Checks the version information of the source with the given directory . It raises if the source is not compatible and if there is CocoaPods update it informs the user .
def check_version_information(dir)
        versions = version_information(dir)
        unless repo_compatible?(dir)
          min, max = versions['min'], versions['max']
          version_msg = ( min == max ) ? min : "#{min} - #{max}"
          raise Informative, "The `#{dir.basename}` repo requires " \
          "CocoaPods #{version_msg}\n".red +
          "Update Cocoapods, or checkout the appropriate tag in the repo."
        end
        if config.new_version_message? && cocoapods_update?(versions)
          UI.puts "\nCocoapods #{versions['last']} is available.\n".green
        end
      end
def check_version_information ( dir ) versions = version_information ( dir ) unless repo_compatible? ( dir ) min , max = versions [ 'min' ] , versions [ 'max' ] version_msg = ( min == max ) ? min : "#{min} - #{max}" raise Informative , "The `#{dir.basename}` repo requires " "CocoaPods #{version_msg}\n" . red + "Update Cocoapods, or checkout the appropriate tag in the repo." end if config . new_version_message? && cocoapods_update? ( versions ) UI . puts "\nCocoapods #{versions['last']} is available.\n" . green end end
Checks the version information of the source with the given directory.
Checks the version information of the source with the given directory .
None
void
If the source is not compatible.
If the source is not compatible .
dir
dir The directory where the source is stored.
dir The directory where the source is stored .