Class: Pod::Installer::PodSourceDownloader

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-bin-forest/native/pod_source_installer.rb

Overview

Cocoapods新版本(1.15.2)将 PodSourceInstaller 的verify_source_is_secure 等方法迁移到 PodSourceDownloader 所以这里需要修改一下

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#installation_optionsObject

Returns the value of attribute installation_options.



11
12
13
# File 'lib/cocoapods-bin-forest/native/pod_source_installer.rb', line 11

def installation_options
  @installation_options
end

Instance Method Details

#old_verify_source_is_secureObject



13
# File 'lib/cocoapods-bin-forest/native/pod_source_installer.rb', line 13

alias old_verify_source_is_secure verify_source_is_secure

#verify_source_is_secure(root_spec) ⇒ Object



14
15
16
17
18
19
# File 'lib/cocoapods-bin-forest/native/pod_source_installer.rb', line 14

def verify_source_is_secure(root_spec)
  # http source 默认不警告
  if installation_options.warn_for_unsecure_source?
    old_verify_source_is_secure(root_spec)
  end
end