Sha256: cb22b87763094efa2d7327d6252ecbaafc63951a585ed3e171eb01c5c172c8dd
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
require 'rest' module CocoaPodsStats class Sender API_URL = 'https://stats.cocoapods.org/api/v1/install' def send(targets, pod_try: false) REST.post( API_URL, { :targets => targets, :cocoapods_version => Pod::VERSION, :pod_try => pod_try, }.to_json, 'Accept' => 'application/json', 'Content-Type' => 'application/json', ) rescue REST::Error => e Pod::UI.message "Failed to send stats:\n\n#{e}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems