Module: Pod
- Defined in:
- lib/cocoapods-jxedt/binary/Intergation.rb,
lib/cocoapods-jxedt/command/jxedt.rb,
lib/cocoapods-jxedt/command/user/user.rb,
lib/cocoapods-jxedt/binary/Intergation.rb,
lib/cocoapods-jxedt/binary/Intergation.rb,
lib/cocoapods-jxedt/binary/Intergation.rb,
lib/cocoapods-jxedt/binary/Intergation.rb,
lib/cocoapods-jxedt/binary/podfile_dsl.rb,
lib/cocoapods-jxedt/binary/helper/names.rb,
lib/cocoapods-jxedt/command/binary/binary.rb,
lib/cocoapods-jxedt/command/header/header.rb,
lib/cocoapods-jxedt/command/options/options.rb,
lib/cocoapods-jxedt/binary/hooks/pre_install.rb,
lib/cocoapods-jxedt/binary/targets/pod_target.rb,
lib/cocoapods-jxedt/command/binary/command/code.rb,
lib/cocoapods-jxedt/command/binary/command/push.rb,
lib/cocoapods-jxedt/command/binary/command/build.rb,
lib/cocoapods-jxedt/command/binary/command/clean.rb,
lib/cocoapods-jxedt/command/binary/command/fetch.rb,
lib/cocoapods-jxedt/binary/helper/podfile_options.rb,
lib/cocoapods-jxedt/binary/helper/podfile_options.rb,
lib/cocoapods-jxedt/binary/helper/podfile_options.rb,
lib/cocoapods-jxedt/binary/helper/podfile_options.rb,
lib/cocoapods-jxedt/binary/helper/prebuild_sandbox.rb,
lib/cocoapods-jxedt/binary/helper/target_definition.rb,
lib/cocoapods-jxedt/binary/helper/prebuild_installer.rb,
lib/cocoapods-jxedt/command/binary/command/statistics.rb,
lib/cocoapods-jxedt/command/binary/command/source_project.rb,
lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb
Overview
Tool to transform Pod_name to target efficiently
Defined Under Namespace
Modules: Generator Classes: Command, Installer, JxedtPrebuildInstaller, JxedtPrebuildSandbox, Lockfile, PodTarget, Podfile, Sandbox, Target
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-jxedt/binary/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 |