fastlane-plugin-sentry 1.2.3 → 1.2.4

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: 0a484b5235b2af0997d71d4baebbc697241052ae
4
- data.tar.gz: b2366b652f6e46f7e70d61944a0b220c9c405e5f
3
+ metadata.gz: 4681db8a02b6d267984e39e5c11b9a3b4cc72288
4
+ data.tar.gz: 14af124a211991927ccb5e0ee9a79ec8baf56f1c
5
5
  SHA512:
6
- metadata.gz: 7b08ef5b17c4bf59d8c15fdaa9fcd0e296bb7dd40f2db0c8de90e84558c111c461776f77e628078cd30f706f47c19d8fa1b7517c8066d19b2135023470a6144a
7
- data.tar.gz: 933fdd574de88bac75300d2a980a2212abe7c88e5db27dadd981907030ef81b6790018ef9f5b3364656f599090d1160bfede21ca4c3e6b49763fa97b47165000
6
+ metadata.gz: 8f3c32dcfdd7e39bd13fd553a2369826276a95b5ac6aa91f9294bb8f1480203d832fc704807fa07f52c9250105fe6639e88d891985858f71805b1347a7b1c71c
7
+ data.tar.gz: 5fc893dca058decc8666ae442ff28ef9895febeffb7efa5d24a93ac9ba874baccef43e1358fefa2d3d0ff35c61fc33d398c2a1ac0635422b55bf26e308d1a774
@@ -10,9 +10,15 @@ 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' : ''
13
+ #finalize_arg = params[:finalize] ? '--finalize'
14
14
 
15
- command = "sentry-cli releases new '#{Shellwords.escape(version)}' #{finalize_arg}"
15
+ command = [
16
+ "sentry-cli",
17
+ "releases",
18
+ "new",
19
+ Shellwords.escape(version)
20
+ ]
21
+ command.push("--finalize") if params[:finalize].nil?
16
22
 
17
23
  Helper::SentryHelper.call_sentry_cli(command)
18
24
  UI.success("Successfully created release: #{version}")
@@ -9,7 +9,12 @@ module Fastlane
9
9
 
10
10
  version = params[:version]
11
11
 
12
- command = "sentry-cli releases finalize '#{Shellwords.escape(version)}'"
12
+ command = [
13
+ "sentry-cli",
14
+ "releases",
15
+ "finalize",
16
+ Shellwords.escape(version)
17
+ ]
13
18
 
14
19
  Helper::SentryHelper.call_sentry_cli(command)
15
20
  UI.success("Successfully finalized release: #{version}")
@@ -16,7 +16,7 @@ module Fastlane
16
16
  UI.user_error!("dSYM does not exist at path: #{path}") unless File.exist? path
17
17
  end
18
18
 
19
- command = "sentry-cli upload-dsym '#{dsym_paths.join("','")}'"
19
+ command = ["sentry-cli", "upload-dsym"] + dsym_paths
20
20
 
21
21
  Helper::SentryHelper.call_sentry_cli(command)
22
22
  UI.success("Successfully uploaded dSYMs!")
@@ -9,12 +9,19 @@ module Fastlane
9
9
 
10
10
  version = params[:version]
11
11
  file = params[:file]
12
- file_url_arg = params[:file_url] ? "'#{params[:file_url]}'" : ''
13
- dist_arg = params[:dist] ? "--dist '#{params[:dist]}'" : ''
14
12
 
15
13
  version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier]
16
14
 
17
- command = "sentry-cli releases files '#{Shellwords.escape(version)}' upload #{file} #{file_url_arg} #{dist_arg}"
15
+ command = [
16
+ "sentry-cli",
17
+ "releases",
18
+ "files",
19
+ Shellwords.escape(version),
20
+ "upload",
21
+ file
22
+ ]
23
+ command.push(params[:file_url]) if !params[:file_url].nil?
24
+ command.push("--dist").push(params[:dist]) if !params[:dist].nil?
18
25
 
19
26
  Helper::SentryHelper.call_sentry_cli(command)
20
27
  UI.success("Successfully uploaded files to release: #{version}")
@@ -12,25 +12,20 @@ module Fastlane
12
12
 
13
13
  version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier]
14
14
 
15
- rewrite_arg = params[:rewrite] ? '--rewrite' : ''
16
- strip_prefix_arg = params[:strip_prefix] ? '--strip-prefix' : ''
17
- strip_common_prefix_arg = params[:strip_common_prefix] ? '--strip-common-prefix' : ''
18
- url_prefix_arg = params[:url_prefix] ? "--url-prefix '#{params[:url_prefix]}'" : ''
19
- dist_arg = params[:dist] ? "--dist '#{params[:dist]}'" : ''
20
-
21
15
  command = [
22
16
  "sentry-cli",
23
17
  "releases",
24
18
  "files",
25
- "'#{Shellwords.escape(version)}'",
19
+ Shellwords.escape(version),
26
20
  "upload-sourcemaps",
27
- sourcemap.to_s,
28
- rewrite_arg,
29
- strip_prefix_arg,
30
- strip_common_prefix_arg,
31
- url_prefix_arg,
32
- dist_arg
33
- ].join(" ")
21
+ sourcemap.to_s
22
+ ]
23
+
24
+ command.push('--rewrite') if params[:rewrite]
25
+ command.push('--strip-prefix') if params[:strip_prefix]
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?
34
29
 
35
30
  Helper::SentryHelper.call_sentry_cli(command)
36
31
  UI.success("Successfully uploaded files to release: #{version}")
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.2.3"
3
+ VERSION = "1.2.4"
4
4
  CLI_VERSION = "1.9.0"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry