fastlane/lib/fastlane/actions/appaloosa.rb in fastlane-2.74.1 vs fastlane/lib/fastlane/actions/appaloosa.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -26,11 +26,11 @@
uri.query = URI.encode_www_form(params)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
presign_form_response = http.request(Net::HTTP::Get.new(uri.request_uri))
json_res = JSON.parse(presign_form_response.body)
- return if error_detected json_res['errors']
+ return if error_detected(json_res['errors'])
s3_sign = json_res['s3_sign']
path = json_res['path']
uri = URI.parse(Base64.decode64(s3_sign))
File.open(file, 'rb') do |f|
http = Net::HTTP.new(uri.host)
@@ -121,13 +121,13 @@
provider: 'fastlane'
} }.to_json
uoa_response = http.request(req)
json_res = JSON.parse(uoa_response.body)
if json_res['errors']
- UI.error "App: #{json_res['errors']}"
+ UI.error("App: #{json_res['errors']}")
else
- UI.success "Binary processing: Check your app': #{json_res['link']}"
+ UI.success("Binary processing: Check your app': #{json_res['link']}")
end
end
def self.all_screenshots_links(screenshots)
if screenshots.nil?
@@ -224,10 +224,10 @@
def self.authors
['Appaloosa']
end
def self.is_supported?(platform)
- [:ios, :mac, :android].include? platform
+ [:ios, :mac, :android].include?(platform)
end
def self.invalid_response?(url_for_download_response)
url_for_download_response.kind_of?(Net::HTTPNotFound) ||
url_for_download_response.kind_of?(Net::HTTPForbidden)