fastlane-plugin-emerge 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f542abe602fdc9595e71d1b8a4b8e8bf9bee55a54331a51c33e8636fd1eef71
|
4
|
+
data.tar.gz: 10a41705f7a6d28043adb141731da2b7a9ec4a6da1bc45923a07fcbb4f7c7ac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e0f04590f3dc09a384e5368f76beb7e4841e14996536d49bdd1730bf4c20bf8e9d852f308a2f93df51ef729a3f90561e91169868a64ef6648f0d00544434f57
|
7
|
+
data.tar.gz: f98a707293e57a51b5a85bef78cbfa737320e4d1fb051f1bac04014225ebea807e8bad5cf2018e6f30b8e89805e6a71663dd18807d860a5f8c771d3479ff4aa0
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'fastlane/action'
|
2
|
+
require 'fastlane_core/print_table'
|
2
3
|
require_relative '../helper/emerge_helper'
|
3
4
|
|
4
5
|
module Fastlane
|
@@ -35,6 +36,10 @@ module Fastlane
|
|
35
36
|
params[:repoName] = repo_name
|
36
37
|
end
|
37
38
|
params[:buildType] = build_type || "development"
|
39
|
+
FastlaneCore::PrintTable.print_values(
|
40
|
+
config: params,
|
41
|
+
hide_keys: [],
|
42
|
+
title: "Summary for Emerge #{Fastlane::Emerge::VERSION}")
|
38
43
|
resp = Faraday.get(url, params, {'X-API-Token' => api_token})
|
39
44
|
case resp.status
|
40
45
|
when 200
|
@@ -42,8 +47,12 @@ module Fastlane
|
|
42
47
|
upload_id = json["upload_id"]
|
43
48
|
upload_url = json["uploadURL"]
|
44
49
|
Helper::EmergeHelper.perform_upload(upload_url, upload_id, file_path)
|
45
|
-
when
|
50
|
+
when 403
|
46
51
|
UI.error("Invalid API token")
|
52
|
+
when 400
|
53
|
+
UI.error("Invalid parameters")
|
54
|
+
json = JSON.parse(resp.body)
|
55
|
+
UI.error("Error: #{json["errorMessage"]}")
|
47
56
|
else
|
48
57
|
UI.error("Upload failed")
|
49
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-emerge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emerge Tools, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|