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: dda786064d85f768f1b3ee843a5de6d6e38302fbc0684fe5f8ec575665b027d9
4
- data.tar.gz: f01ab9a333656d2e92fdc2ac7a4f099bfca70c1a8c10b96619666f55441d292c
3
+ metadata.gz: 0f542abe602fdc9595e71d1b8a4b8e8bf9bee55a54331a51c33e8636fd1eef71
4
+ data.tar.gz: 10a41705f7a6d28043adb141731da2b7a9ec4a6da1bc45923a07fcbb4f7c7ac5
5
5
  SHA512:
6
- metadata.gz: c598ae3b76daba26c2bbb78c619a160822cb8610e8c5db90e3ae45565b01b9fde4382477aa0db568349c00e2a9cc4abffbf5371ed308c21bb458db0d5bdfd076
7
- data.tar.gz: fac3984e30f2e0853b9d9dccdc9b86d8bc70a47f97fc21f5c8b84892b4752d75bab281726654cc856837932d75428329cb94e533b581bf307921a877c6b32552
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 400...500
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Emerge
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  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.2
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-02-17 00:00:00.000000000 Z
11
+ date: 2021-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday