fastlane-plugin-dynatrace 2.0.0 → 2.0.2

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: c236c8f7da15577b17f9c2515214671eb4e95c1f4cc5c1891105cc7ade2a59b2
4
- data.tar.gz: 4725bb74807832a320be5c4fb6aaf1b29bd6de7e3cfd4880fc1931e6dcb02589
3
+ metadata.gz: 4c4a6f8d1227ec74720d2e742f0d223851e5289b2b90bd3014c4e786e684ed1a
4
+ data.tar.gz: a03496e08564907a0598c68e35ae4a91374b9430a10c7d3b52ff9341eef26342
5
5
  SHA512:
6
- metadata.gz: 5897a23dec9c27f728c55b4de5ff3ffab050a272a2825fdf066717417fcda7d88687792d4179ad0c53b0553acc659461eaf21141b6f6617b5f005796941a171c
7
- data.tar.gz: e36ce10fc9a35a563992c3e675999377073b6641f6b3325427838c79e00941d19e6f27b50fc55e68310d260fd747a05cfdd4fcad560df4080c68df841d016229
6
+ metadata.gz: 8b1a244982e3dbb67b333e45cc61f26d48c5caedae2f1b75bb46d1340e3163216891fda2bc1416e8f530af074604876dda906df1c3194e9718d3121ea50416f0
7
+ data.tar.gz: efdbe03451df9edf0bab421ba3066c1d86bdceb777420a0ff9e450b3807847ad56a9ef1de8ab1b255079b232b337d20acf17eacd5fcdf6d784b3053d99e7f610
@@ -32,28 +32,25 @@ module Fastlane
32
32
  if params[:os] == "android"
33
33
  symbols_path = Helper::DynatraceHelper.zip_if_required(params)
34
34
  response, request = Helper::DynatraceHelper.put_android_symbols(params, bundleId, symbols_path)
35
- case response.code
36
- when '204'
37
- UI.success "Success. The file has been uploaded and stored."
38
- when '400'
39
- UI.user_error! "Failed. The input is invalid."
40
- when '401'
41
- UI.user_error! "Invalid Dynatrace API token. See https://www.dynatrace.com/support/help/dynatrace-api/basics/dynatrace-api-authentication/#token-permissions and https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/mobile-symbolication-api/"
42
- when '413'
43
- UI.user_error! "Failed. The symbol file storage quota is exhausted. See https://www.dynatrace.com/support/help/shortlink/mobile-symbolication#manage-the-uploaded-symbol-files for more information."
44
- else
35
+
36
+ # https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/mobile-symbolication-api/put-files-app-version
37
+ if response.code == '204'
38
+ UI.success "API response: Success."
39
+ else
45
40
  message = nil
46
41
  unless response.body.nil?
47
42
  message = JSON.parse(response.body)["error"]["message"]
48
43
  end
49
44
  if message.nil?
50
- UI.user_error! "Symbol upload error (Response Code: #{response.code}). Please try again in a few minutes or contact the Dynatrace support (https://www.dynatrace.com/services-support/)."
45
+ UI.user_error! "API response: #{response.code}. Please try again in a few minutes or contact the Dynatrace support (https://www.dynatrace.com/services-support/)."
51
46
  else
52
- UI.user_error! "Symbol upload error (Response Code: #{response.code}). #{message}"
47
+ UI.user_error! "API response: #{message} (Response code: #{response.code})"
53
48
  end
54
49
  end
55
50
  return
56
- elsif params[:os] != "ios" && params[:os] != "tvos"
51
+ end
52
+
53
+ if params[:os] != "ios" && params[:os] != "tvos"
57
54
  UI.user_error! "Unsopported value os=#{params[:os]}"
58
55
  end
59
56
 
@@ -59,8 +59,8 @@ module Fastlane
59
59
  end
60
60
 
61
61
  # only update if a file is missing or the local version is different
62
- if !(File.exists?(versionFilePath) and
63
- File.exists?(dtxDssClientPath) and
62
+ if !(File.exist?(versionFilePath) and
63
+ File.exist?(dtxDssClientPath) and
64
64
  File.read(versionFilePath) == remoteClientUrl and
65
65
  File.size(dtxDssClientPath) > 0)
66
66
  updatedClient = false
@@ -195,7 +195,7 @@ module Fastlane
195
195
  def self.check_fallback_or_raise(fallback_client, error)
196
196
  UI.important "If this error persists create an issue on our Github project (https://github.com/Dynatrace/fastlane-plugin-dynatrace/issues) or contact our support at https://www.dynatrace.com/support/contact-support/."
197
197
  UI.important error
198
- if File.exists?(fallback_client) and File.size(fallback_client) > 0
198
+ if File.exist?(fallback_client) and File.size(fallback_client) > 0
199
199
  UI.important "Using cached client: #{fallback_client}"
200
200
  else
201
201
  UI.important "No cached fallback found."
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Dynatrace
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-dynatrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dynatrace LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  - !ruby/object:Gem::Version
266
266
  version: '0'
267
267
  requirements: []
268
- rubygems_version: 3.3.11
268
+ rubygems_version: 3.4.10
269
269
  signing_key:
270
270
  specification_version: 4
271
271
  summary: This action processes and uploads your symbol files to Dynatrace