def find_pod_index(pods, name)
      pods.index { |pod|
        desc = pod
        if pod.is_a?(Hash)
          desc = pod.keys[0]
        end
        desc.split(" (", 2)[0] == name
      }
    end
def find_pod_index(pods, name)
      pods.index { |pod|
        desc = pod
        if pod.is_a?(Hash)
          desc = pod.keys[0]
        end
        desc.split(" (", 2)[0] == name
      }
    end
Find the index in the pod array based on the link name. The pod array
 also contains version/path information so we need to massage the pod value
 for comparison. Pods are in the following format:

 Name (requirements)

 Example:
 Alamofire (= 1.1.3)

 @param pods the array to search
 @param name the name of the pod to find

 NOTE: the pods in the array can be strings or hashes, so we will check for both

 @return the index of nil