fastlane-plugin-sentry 1.2.5 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 555d3e43f1f0901d7a09bd93cd07187162127088
4
- data.tar.gz: a0d13dda1a41ace0c79f31c3fc19bbacccac3a03
3
+ metadata.gz: af49c66cfc8efdf4ae25c334f362f76c4596d34a
4
+ data.tar.gz: 3ac7e68fbf6e51ee1db654205fad6712dbd17cf4
5
5
  SHA512:
6
- metadata.gz: a8c877838b304cceee8999430d91c4ea6191c2a8ff0ef2d6cbe552a1ecbc75021076babc9f7c0c5fc210219a40549fdf8306d4c76ce3d949dba559b3e8a0bb7f
7
- data.tar.gz: 17e978f1d4952fda6bbc0077f4c799a00ecf4b89eb23ad143060bd78c30044505fe23ae2e653c181f48ff67576475da6cb5b787761861f5b3f738ac5f5fa37c6
6
+ metadata.gz: a83d0ebca78f478f2d835a060f0eb4fcd4a04dcc4a70b21dc921fa3ba464eb24679310474778ddf3a9db293d40d85da5af263051acf208ba1334f715ab24135b
7
+ data.tar.gz: c5450415b2c29193b7a5a63f61d52501e581e1653dbf53733f6dc096aae8e91df7b68de1dae5aa770f183569d7df75cdbc8421180d91b2f2845bfb7bd7a4f722
@@ -10,13 +10,11 @@ module Fastlane
10
10
  version = params[:version]
11
11
  version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier]
12
12
 
13
- #finalize_arg = params[:finalize] ? '--finalize'
14
-
15
13
  command = [
16
14
  "sentry-cli",
17
15
  "releases",
18
16
  "new",
19
- Shellwords.escape(version)
17
+ version
20
18
  ]
21
19
  command.push("--finalize") if params[:finalize].nil?
22
20
 
@@ -8,12 +8,13 @@ module Fastlane
8
8
  Helper::SentryConfig.parse_api_params(params)
9
9
 
10
10
  version = params[:version]
11
+ version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier]
11
12
 
12
13
  command = [
13
14
  "sentry-cli",
14
15
  "releases",
15
16
  "finalize",
16
- Shellwords.escape(version)
17
+ version
17
18
  ]
18
19
 
19
20
  Helper::SentryHelper.call_sentry_cli(command)
@@ -38,7 +39,14 @@ module Fastlane
38
39
  def self.available_options
39
40
  Helper::SentryConfig.common_api_config_items + [
40
41
  FastlaneCore::ConfigItem.new(key: :version,
41
- description: "Release version to finalize on Sentry")
42
+ description: "Release version to finalize on Sentry"),
43
+ FastlaneCore::ConfigItem.new(key: :app_identifier,
44
+ short_option: "-a",
45
+ env_name: "SENTRY_APP_IDENTIFIER",
46
+ description: "App Bundle Identifier",
47
+ optional: true,
48
+ default_value: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier))
49
+
42
50
  ]
43
51
  end
44
52
 
@@ -7,21 +7,21 @@ module Fastlane
7
7
  Helper::SentryHelper.check_sentry_cli!
8
8
  Helper::SentryConfig.parse_api_params(params)
9
9
 
10
- version = params[:version]
11
10
  file = params[:file]
12
11
 
12
+ version = params[:version]
13
13
  version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier]
14
14
 
15
15
  command = [
16
16
  "sentry-cli",
17
17
  "releases",
18
18
  "files",
19
- Shellwords.escape(version),
19
+ version,
20
20
  "upload",
21
21
  file
22
22
  ]
23
- command.push(params[:file_url]) if !params[:file_url].nil?
24
- command.push("--dist").push(params[:dist]) if !params[:dist].nil?
23
+ command.push(params[:file_url]) unless params[:file_url].nil?
24
+ command.push("--dist").push(params[:dist]) unless params[:dist].nil?
25
25
 
26
26
  Helper::SentryHelper.call_sentry_cli(command)
27
27
  UI.success("Successfully uploaded files to release: #{version}")
@@ -56,7 +56,6 @@ module Fastlane
56
56
  FastlaneCore::ConfigItem.new(key: :file_url,
57
57
  description: "Optional URL we should associate with the file",
58
58
  optional: true),
59
-
60
59
  FastlaneCore::ConfigItem.new(key: :app_identifier,
61
60
  short_option: "-a",
62
61
  env_name: "SENTRY_APP_IDENTIFIER",
@@ -24,8 +24,8 @@ module Fastlane
24
24
  command.push('--rewrite') if params[:rewrite]
25
25
  command.push('--strip-prefix') if params[:strip_prefix]
26
26
  command.push('--strip-common-prefix') if params[:strip_common_prefix]
27
- command.push('--url-prefix').push(params[:url_prefix]) if !params[:url_prefix].nil?
28
- command.push('--dist').push(params[:dist]) if !params[:dist].nil?
27
+ command.push('--url-prefix').push(params[:url_prefix]) unless params[:url_prefix].nil?
28
+ command.push('--dist').push(params[:dist]) unless params[:dist].nil?
29
29
 
30
30
  Helper::SentryHelper.call_sentry_cli(command)
31
31
  UI.success("Successfully uploaded files to release: #{version}")
@@ -31,7 +31,8 @@ module Fastlane
31
31
  UI.command(command.to_s)
32
32
  UI.verbose("\n\n")
33
33
  end
34
- Open3.popen3(command.join(" ")) do |stdin, stdout, stderr, wait_thr|
34
+ final_command = command.map { |arg| Shellwords.escape(arg) }.join(" ")
35
+ Open3.popen3(final_command) do |stdin, stdout, stderr, wait_thr|
35
36
  while (line = stderr.gets)
36
37
  error << line.strip!
37
38
  end
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.2.5"
3
+ VERSION = "1.2.6"
4
4
  CLI_VERSION = "1.9.0"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry