fastlane-plugin-waldo 1.1.0 → 1.1.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ba2bb5686d5a74c4a856c533c326a8550cba523
|
4
|
+
data.tar.gz: b5ea441237beddfbd90892e601f94f8690822463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dce40cab56b6c39ac0a9766e4a801f04645906de4c83edfe6fe4529b87def11866a5086d13a0c5472f8261c28820304482741a0fbe2623a74d63e6ceb76a782
|
7
|
+
data.tar.gz: a618956f16648d7d61b285db7a9d3565d4c549b779e93a3b0fbaac250916f16d4bf4b1fe1de219f4515d4ca80b3c64852fc6519a3b155ef8387d1b9de047ee20
|
@@ -7,12 +7,12 @@ module Fastlane
|
|
7
7
|
platform = Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]
|
8
8
|
|
9
9
|
if platform == :android
|
10
|
-
UI.
|
10
|
+
UI.error("You must pass an APK path to the Waldo action") and return unless params[:apk_path]
|
11
11
|
elsif platform == :ios || platform.nil?
|
12
|
-
UI.
|
12
|
+
UI.error("You must pass an IPA path to the Waldo action") and return unless params[:ipa_path]
|
13
13
|
end
|
14
14
|
|
15
|
-
UI.
|
15
|
+
UI.error("You must pass an upload token to the Waldo action") and return unless params[:upload_token]
|
16
16
|
|
17
17
|
FastlaneCore::PrintTable.print_values(config: params,
|
18
18
|
title: "Summary for waldo #{Fastlane::Waldo::VERSION.to_s}")
|
@@ -42,7 +42,7 @@ module Fastlane
|
|
42
42
|
default_value_dynamic: true,
|
43
43
|
optional: true,
|
44
44
|
verify_block: proc do |value|
|
45
|
-
UI.
|
45
|
+
UI.error("Unable to find IPA file at path '#{value.to_s}'") unless File.exist?(value)
|
46
46
|
end),
|
47
47
|
# Android-specific
|
48
48
|
FastlaneCore::ConfigItem.new(key: :apk_path,
|
@@ -52,7 +52,7 @@ module Fastlane
|
|
52
52
|
default_value_dynamic: true,
|
53
53
|
optional: true,
|
54
54
|
verify_block: proc do |value|
|
55
|
-
UI.
|
55
|
+
UI.error("Unable to find APK file at path '#{value.to_s}'") unless File.exist?(value)
|
56
56
|
end),
|
57
57
|
# General
|
58
58
|
FastlaneCore::ConfigItem.new(key: :upload_token,
|
@@ -61,7 +61,7 @@ module Fastlane
|
|
61
61
|
optional: true,
|
62
62
|
sensitive: true,
|
63
63
|
verify_block: proc do |value|
|
64
|
-
UI.
|
64
|
+
UI.error("No upload token for Waldo given, pass using `upload_token: 'value'`") unless value && !value.empty?
|
65
65
|
end),
|
66
66
|
FastlaneCore::ConfigItem.new(key: :variant_name,
|
67
67
|
env_name: "WALDO_VARIANT_NAME",
|
@@ -69,7 +69,7 @@ module Fastlane
|
|
69
69
|
optional: true,
|
70
70
|
sensitive: true,
|
71
71
|
verify_block: proc do |value|
|
72
|
-
UI.
|
72
|
+
UI.error("No variant name for Waldo given, pass using `variant_name: 'value'`") unless value && !value.empty?
|
73
73
|
end)
|
74
74
|
]
|
75
75
|
end
|
@@ -24,9 +24,9 @@ module Fastlane
|
|
24
24
|
parse_response(http.request(request))
|
25
25
|
end
|
26
26
|
rescue Net::ReadTimeout
|
27
|
-
UI.
|
27
|
+
UI.error("Upload to Waldo timed out!")
|
28
28
|
rescue => exc
|
29
|
-
UI.
|
29
|
+
UI.error("Something went wrong uploading to Waldo: #{exc.inspect.to_s}")
|
30
30
|
ensure
|
31
31
|
request.body_stream.close if request && request.body_stream
|
32
32
|
end
|
@@ -84,9 +84,9 @@ module Fastlane
|
|
84
84
|
when 200..299
|
85
85
|
UI.success('Build successfully uploaded to Waldo!')
|
86
86
|
when 401
|
87
|
-
UI.
|
87
|
+
UI.error("Upload token is invalid or missing!")
|
88
88
|
else
|
89
|
-
UI.
|
89
|
+
UI.error("Build failed to upload to Waldo: #{response.code} #{response.message}")
|
90
90
|
end
|
91
91
|
end
|
92
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-waldo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J. G. Pusey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|