Commit 7a410e68 authored by Fabio Pelosin's avatar Fabio Pelosin

[Push] Update trunk tokens

parent 558e7329
......@@ -63,11 +63,11 @@ module Pod
def test_trunk
return unless @repo == "master"
require 'rest'
token = "65185722a2a4d074856fc07e8382e7f3"
tokens = ["48c432065a97f5281c2b60c5987ec9fc", "07d9732784771e33ffccb5dd280a6cb9"]
base_url = 'https://trunk.cocoapods.org/api/v1'
podspec_files.each do |spec_file|
spec = Pod::Specification.from_file(spec_file)
REST.post("#{base_url}/pods", spec.to_yaml, 'Content-Type' => 'text/yaml', 'Authorization' => "Token #{token}")
REST.post("#{base_url}/pods", spec.to_yaml, 'Content-Type' => 'text/yaml', 'Authorization' => "Token #{tokens.sample}")
end
rescue Exception
# Nothing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment