Module: Pod
- Defined in:
- lib/cocoapods-binary-bugfix/Prebuild.rb,
lib/cocoapods-binary-bugfix/Main.rb,
lib/cocoapods-binary-bugfix/Integration.rb,
lib/cocoapods-binary-bugfix/Integration.rb,
lib/cocoapods-binary-bugfix/Integration.rb,
lib/cocoapods-binary-bugfix/helper/names.rb,
lib/cocoapods-binary-bugfix/helper/passer.rb,
lib/cocoapods-binary-bugfix/rome/build_framework.rb,
lib/cocoapods-binary-bugfix/helper/target_checker.rb,
lib/cocoapods-binary-bugfix/helper/podfile_options.rb,
lib/cocoapods-binary-bugfix/helper/podfile_options.rb,
lib/cocoapods-binary-bugfix/helper/feature_switches.rb,
lib/cocoapods-binary-bugfix/helper/prebuild_sandbox.rb,
lib/cocoapods-binary-bugfix/command_option/command_option.rb,
lib/cocoapods-binary-bugfix/command_option/command_option.rb
Overview
Tool to transform Pod_name to target efficiently
Defined Under Namespace
Modules: Generator Classes: Command, Config, Installer, Podfile, Prebuild, PrebuildSandbox
Class Method Summary collapse
Class Method Details
.fast_get_targets_for_pod_name(pod_name, targets, cache) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/cocoapods-binary-bugfix/helper/names.rb', line 19 def self.fast_get_targets_for_pod_name(pod_name, targets, cache) pod_name_to_targets_hash = nil if cache.empty? pod_name_to_targets_hash = targets.reduce({}) do |sum, target| array = sum[target.pod_name] || [] array << target sum[target.pod_name] = array sum end cache << pod_name_to_targets_hash else pod_name_to_targets_hash = cache.first end pod_name_to_targets_hash[pod_name] || [] end |