fastlane-plugin-sentry 1.12.0 → 1.12.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
  SHA256:
3
- metadata.gz: 8e45e9018f65e93450dd418c3a2ff4568b9098c84c59be28a502f26d088d83c7
4
- data.tar.gz: 9bb0b7eb1e0300dc10a1b605b3115838ec234eaf4a361f7a288d5a31d836a568
3
+ metadata.gz: 618a9afa9fc09f00d2c6e2bb511790ade4b5c1fe3c4b4e4bbe1daba8e1714ccb
4
+ data.tar.gz: 67685133c8f4826680c246ad73a222105dc3d8a67f661086dcafd9f92d182b3e
5
5
  SHA512:
6
- metadata.gz: b1fb02191b9ad8333ff0bee6d3112aed1eca0532dbcdea51fa73aa6e589106003226eb5a65be44b09ee75623b2ffe7fe4df72d58b5bb2566651f2ee63784755c
7
- data.tar.gz: f721c6840dc15c23edd3fbe099ecee3e97ec9863667afa1d5dc6453ae08ade79128fd26f3fdce665afce19ac3f923ea41b3b442c110a058c1521a497e928d408
6
+ metadata.gz: 3e3c4d87b2bbd5703b519570d67ac24c49fc29514b0ba5c60be55165b1ec533233ec47a990db42236f465823fa385cfa7a43a82070805c9744d5a1fdda915250
7
+ data.tar.gz: 8ee2ebfaaf02cda7f151437ce368619b31a9c732535cf888123e4d8d315bb2b5c3760ac1223800f141c5e81678d1f71e56a362537081855a0aad83973f2d0cce
data/README.md CHANGED
@@ -174,6 +174,10 @@ sentry_create_deploy(
174
174
  )
175
175
  ```
176
176
 
177
+ ### Specify custom sentry-cli path
178
+
179
+ For every action, you can specify a custom sentry-cli path by adding `sentry_cli_path` to the action. This defaults to `which sentry-cli`.
180
+
177
181
  ### Checking the sentry-cli is installed
178
182
 
179
183
  Useful for checking that the sentry-cli is installed and meets the minimum version requirements before starting to build your app in your lane.
@@ -84,7 +84,7 @@ module Fastlane
84
84
  end
85
85
 
86
86
  def self.is_supported?(platform)
87
- platform == :ios
87
+ [:ios, :mac].include?(platform)
88
88
  end
89
89
  end
90
90
  end
@@ -30,43 +30,22 @@ module Fastlane
30
30
  command = [sentry_path] + sub_command
31
31
  UI.message "Starting sentry-cli..."
32
32
  require 'open3'
33
+
34
+ final_command = command.map { |arg| Shellwords.escape(arg) }.join(" ")
35
+
33
36
  if FastlaneCore::Globals.verbose?
34
- UI.verbose("sentry-cli command:\n\n")
35
- UI.command(command.to_s)
36
- UI.verbose("\n\n")
37
+ UI.command(final_command)
37
38
  end
38
- final_command = command.map { |arg| Shellwords.escape(arg) }.join(" ")
39
- out = []
40
- error = []
41
- Open3.popen3(final_command) do |stdin, stdout, stderr, wait_thr|
42
- while (line = stdout.gets)
43
- out << line
39
+
40
+ Open3.popen2e(final_command) do |stdin, stdout_and_stderr, status_thread|
41
+ stdout_and_stderr.each_line do |line|
44
42
  UI.message(line.strip!)
45
43
  end
46
- while (line = stderr.gets)
47
- error << line.strip!
48
- end
49
- exit_status = wait_thr.value
50
- unless exit_status.success? && error.empty?
51
- handle_error(error)
52
- end
53
- end
54
- out.join
55
- end
56
44
 
57
- def self.handle_error(errors)
58
- fatal = false
59
- for error in errors do
60
- if error
61
- if error =~ /error/
62
- UI.error(error.to_s)
63
- fatal = true
64
- else
65
- UI.verbose(error.to_s)
66
- end
45
+ unless status_thread.value.success?
46
+ UI.user_error!('Error while calling Sentry CLI')
67
47
  end
68
48
  end
69
- UI.user_error!('Error while calling Sentry CLI') if fatal
70
49
  end
71
50
  end
72
51
  end
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.12.0"
3
+ VERSION = "1.12.1"
4
4
  CLI_VERSION = "1.72.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.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-25 00:00:00.000000000 Z
11
+ date: 2022-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 2.5.0
117
+ version: 2.6.0
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="