Sha256: 6a67680ac64aeec5d3d2ecd9c7c2733d685f7eff894a3715de4cc1425b54d46c
Contents?: true
Size: 863 Bytes
Versions: 12
Compression:
Stored size: 863 Bytes
Contents
require 'cocoapods' module LgPodPlugin class LPodTarget attr_reader :name attr_reader :dependencies def initialize(target) internal_hash = target.send(:internal_hash) @name = internal_hash["name"] array = Array.new(internal_hash['dependencies'] ||= []) dependencies = array.reject do |e| if LUtils.is_a_string?(e) true elsif e.is_a?(Hash) key = e.keys.last ||= "" val = e[key].last ||= "" !val.is_a?(Hash) else true end end external_pods = Hash.new dependencies.each do |e| key = e.keys.last ||= "" val = e[key].last ||= {} next unless val.is_a?(Hash) pod = ExternalPod.new(self, key, val) external_pods[pod.name] = pod end @dependencies = external_pods end end end
Version data entries
12 entries across 12 versions & 1 rubygems