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: 492c9eb9162ea8139607f50235e4b3b5217a987f
4
- data.tar.gz: 8a7498a90dd0cb95ffc381a45429ecd2d0984c3b
3
+ metadata.gz: 5ba2bb5686d5a74c4a856c533c326a8550cba523
4
+ data.tar.gz: b5ea441237beddfbd90892e601f94f8690822463
5
5
  SHA512:
6
- metadata.gz: 2a0d57834d04efcbbfbea86b3deb60c3e6cac4fb05899436c13f977c3c0783b4bbe6e8cd32f6eacc7d867ada18425830a0dc3a057a3b9e078099e922a70e1f73
7
- data.tar.gz: 84a74df421289964d788a8fad629fc1041bb7100241b728cd8a7fe5390f69b649282539e435e447ffdfb35f54449f68a436e4bb8058b33f3bb68399f78c5aeb8
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.user_error!("You must pass an APK path to the Waldo action") unless params[:apk_path]
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.user_error!("You must pass an IPA path to the Waldo action") unless params[:ipa_path]
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.user_error!("You must pass an upload token to the Waldo action") unless params[:upload_token]
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.user_error!("Unable to find IPA file at path '#{value.to_s}'") unless File.exist?(value)
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.user_error!("Unable to find APK file at path '#{value.to_s}'") unless File.exist?(value)
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.user_error!("No upload token for Waldo given, pass using `upload_token: 'value'`") unless value && !value.empty?
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.user_error!("No variant name for Waldo given, pass using `variant_name: 'value'`") unless value && !value.empty?
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.user_error!("Upload to Waldo timed out!")
27
+ UI.error("Upload to Waldo timed out!")
28
28
  rescue => exc
29
- UI.user_error!("Something went wrong uploading to Waldo: #{exc.inspect.to_s}")
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.user_error!("Upload token is invalid or missing!")
87
+ UI.error("Upload token is invalid or missing!")
88
88
  else
89
- UI.user_error!("Build failed to upload to Waldo: #{response.code} #{response.message}")
89
+ UI.error("Build failed to upload to Waldo: #{response.code} #{response.message}")
90
90
  end
91
91
  end
92
92
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Waldo
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  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.0
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: 2018-12-27 00:00:00.000000000 Z
11
+ date: 2019-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler