Sha256: 07c9adff4ea394b7b4123d5ae916d0412a0e1cae9ab05f56025ebc21bd300ad5

Contents?: true

Size: 1.2 KB

Versions: 140

Compression:

Stored size: 1.2 KB

Contents


module Pod
  class Validator
    # def validate_source_url(spec)
    #   return if spec.source.nil? || spec.source[:http].nil?
    #   url = URI(spec.source[:http])
    #   return if url.scheme == 'https' || url.scheme == 'file'
    #   warning('http', "The URL (`#{url}`) doesn't use the encrypted HTTPs protocol. " \
    #           'It is crucial for Pods to be transferred over a secure protocol to protect your users from man-in-the-middle attacks. '\
    #           'This will be an error in future releases. Please update the URL to use https.')
    # end
    #
    # Perform analysis for a given spec (or subspec)
    #
    def perform_extensive_analysis(spec)
      return true
    end

    #覆盖
    def check_file_patterns
      FILE_PATTERNS.each do |attr_name|
        next if %i(source_files resources).include? attr_name
          if respond_to?("_validate_#{attr_name}", true)
            send("_validate_#{attr_name}")
          else
            validate_nonempty_patterns(attr_name, :error)
          end
      end

      _validate_header_mappings_dir
      if consumer.spec.root?
        _validate_license
        _validate_module_map
      end
    end

    def validate_source_url(spec); end
  end
end

Version data entries

140 entries across 140 versions & 10 rubygems

Version Path
cocoapods-imy-hycan-bin-0.1.5 lib/cocoapods-imy-bin/native/validator.rb
cocoapods-bb-bin-0.1.6 lib/cocoapods-bb-bin/native/validator.rb
cocoapods-bb-bin-0.1.5 lib/cocoapods-bb-bin/native/validator.rb
cocoapods-bb-bin-0.1.4 lib/cocoapods-bb-bin/native/validator.rb
cocoapods-bb-bin-0.1.3 lib/cocoapods-bb-bin/native/validator.rb
cocoapods-bb-bin-0.1.2 lib/cocoapods-bb-bin/native/validator.rb
cocoapods-bb-bin-0.1.1 lib/cocoapods-bb-bin/native/validator.rb
cocoapods-bb-bin-0.1.0 lib/cocoapods-bb-bin/native/validator.rb
cocoapods-imy-hycan-bin-0.1.3 lib/cocoapods-imy-bin/native/validator.rb
cocoapods-imy-hycan-bin-0.1.2 lib/cocoapods-imy-bin/native/validator.rb
cocoapods-aomi-bin-0.1.28 lib/cocoapods-lhj-bin/native/validator.rb
cocoapods-tdf-bin-0.0.16 lib/cocoapods-tdf-bin/native/validator.rb
cocoapods-aomi-bin-0.1.27 lib/cocoapods-lhj-bin/native/validator.rb
cocoapods-aomi-bin-0.1.26 lib/cocoapods-lhj-bin/native/validator.rb
cocoapods-tdf-bin-0.0.15 lib/cocoapods-tdf-bin/native/validator.rb
cocoapods-tdf-bin-0.0.14 lib/cocoapods-tdf-bin/native/validator.rb
cocoapods-aomi-bin-0.1.25 lib/cocoapods-lhj-bin/native/validator.rb
cocoapods-aomi-bin-0.1.24 lib/cocoapods-lhj-bin/native/validator.rb
cocoapods-aomi-bin-0.1.23 lib/cocoapods-lhj-bin/native/validator.rb
cocoapods-imy-hycan-bin-0.1.1 lib/cocoapods-imy-bin/native/validator.rb