fastlane-plugin-sentry 1.13.1 → 1.15.0

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
  SHA256:
3
- metadata.gz: 0a204e76139188a6ded77316a5403373fa11099d2e1b733ec889ef1c480734ec
4
- data.tar.gz: 40d1a9d0cf3358014ae289b48cc2cd7555936238189340f3f83de24888b43f4d
3
+ metadata.gz: 434ad149e865e3571aa9f3e521b4fb962835e2ef7c839a5eed41cc70c50335e5
4
+ data.tar.gz: 121c5c3525b09d308cdd4693474c4ce8b72b6a890fcb26084775049c52ec9cd7
5
5
  SHA512:
6
- metadata.gz: 8876e1d7fb2611218167bcddda15ecc6b1a9a3e49997f6d83971eb841e7f63d2aceeb961850760852de8a53e1f875fd591b7cfeded4d555e06fa18b391d291f6
7
- data.tar.gz: 0c70231e6b216d498a099938dd5356dbd0192413f3d6127d446bfab83a8a1d09e0cf4f419fee59d685e413d2cf91051b0876129569104da49d22bd516bbe3c68
6
+ metadata.gz: 1cb08e4c5782f0ce3f2d805c0db577a3acd1eb017adbc20163fe31da028653d5c2c8505877b0caf879fdf2f5d5d89cc36b35189c8266145bd507e5e0d34de1f9
7
+ data.tar.gz: 95558b21eadc24963af80ff8e156eed9cb5d58387ae46321bbaf8bb75054d4771a0684dfaeb7d49ffc38cc2b3f5c0b50d879093088f31d6c50cb48c79dffce77
data/README.md CHANGED
@@ -64,7 +64,7 @@ sentry_upload_dif(
64
64
  auth_token: '...', # Do not use if using api_key
65
65
  org_slug: '...',
66
66
  project_slug: '...',
67
- path: '/path/to/files', # Optional. We'll default to '.' when no value is provided.
67
+ path: '/path/to/files', # Optional. Defaults to '.' when no value is provided. Path(s) can be a string, a comma-separated string, or an array of strings.
68
68
  )
69
69
  ```
70
70
 
@@ -175,6 +175,7 @@ sentry_set_commits(
175
175
  auto: false, # enable completely automated commit management
176
176
  clear: false, # clear all current commits from the release
177
177
  commit: '...', # commit spec, see `sentry-cli releases help set-commits` for more information
178
+ ignore_missing: false # Optional boolean value: When the flag is set and the previous release commit was not found in the repository, will create a release with the default commits count (or the one specified with `--initial-depth`) instead of failing the command.
178
179
  )
179
180
  ```
180
181
 
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -18,6 +18,7 @@ module Fastlane
18
18
 
19
19
  command.push('--auto') if params[:auto]
20
20
  command.push('--clear') if params[:clear]
21
+ command.push('--ignore-missing') if params[:ignore_missing]
21
22
  command.push('--commit').push(params[:commit]) unless params[:commit].nil?
22
23
 
23
24
  Helper::SentryHelper.call_sentry_cli(params, command)
@@ -62,7 +63,11 @@ module Fastlane
62
63
  default_value: false),
63
64
  FastlaneCore::ConfigItem.new(key: :commit,
64
65
  description: "Commit spec, see `sentry-cli releases help set-commits` for more information",
65
- optional: true)
66
+ optional: true),
67
+ FastlaneCore::ConfigItem.new(key: :ignore_missing,
68
+ description: "When enabled, if the previous release commit was not found in the repository, will create a release with the default commits count (or the one specified with `--initial-depth`) instead of failing the command",
69
+ is_string: false,
70
+ default_value: false)
66
71
  ]
67
72
  end
68
73
 
@@ -6,13 +6,14 @@ module Fastlane
6
6
 
7
7
  Helper::SentryConfig.parse_api_params(params)
8
8
 
9
- path = params[:path]
10
- path = '.' if path.nil?
9
+ paths = params[:path]
10
+ paths = ['.'] if paths.nil?
11
11
 
12
12
  command = [
13
- "upload-dif",
14
- path
13
+ "upload-dif"
15
14
  ]
15
+ command += paths
16
+
16
17
  command.push('--type').push(params[:type]) unless params[:type].nil?
17
18
  command.push('--no-unwind') unless params[:no_unwind].nil?
18
19
  command.push('--no-debug') unless params[:no_debug].nil?
@@ -51,7 +52,8 @@ module Fastlane
51
52
  def self.available_options
52
53
  Helper::SentryConfig.common_api_config_items + [
53
54
  FastlaneCore::ConfigItem.new(key: :path,
54
- description: "A path to search recursively for symbol files",
55
+ description: "Path or an array of paths to search recursively for symbol files",
56
+ type: Array,
55
57
  optional: true),
56
58
  FastlaneCore::ConfigItem.new(key: :type,
57
59
  short_option: "-t",
@@ -1,8 +1,10 @@
1
+ require 'os'
2
+
1
3
  module Fastlane
2
4
  module Helper
3
5
  class SentryHelper
4
6
  def self.find_and_check_sentry_cli_path!(params)
5
- bundled_sentry_cli_path = `bundle exec sentry_cli_path`
7
+ bundled_sentry_cli_path = self.bundled_sentry_cli_path
6
8
  bundled_sentry_cli_version = Gem::Version.new(`#{bundled_sentry_cli_path} --version`.scan(/(?:\d+\.?){3}/).first)
7
9
 
8
10
  sentry_cli_path = params[:sentry_cli_path] || bundled_sentry_cli_path
@@ -56,6 +58,29 @@ module Fastlane
56
58
  out_reader.value
57
59
  end
58
60
  end
61
+
62
+ def self.bundled_sentry_cli_path
63
+ if OS.mac?
64
+ self.bin_folder('sentry-cli-Darwin-universal')
65
+ elsif OS.windows?
66
+ if OS.bits == 64
67
+ self.bin_folder('sentry-cli-Windows-x86_64.exe')
68
+ else
69
+ self.bin_folder('sentry-cli-Windows-i686.exe')
70
+ end
71
+ else
72
+ if OS.bits == 64
73
+ self.bin_folder('sentry-cli-Linux-x86_64')
74
+ else
75
+ self.bin_folder('sentry-cli-Linux-i686')
76
+ end
77
+ end
78
+ end
79
+
80
+ # Get path for files in bin folder. Paths are resolved relative to this file, for which there are also unit tests.
81
+ def self.bin_folder(filename)
82
+ File.expand_path("../../../../../bin/#{filename}", File.dirname(__FILE__))
83
+ end
59
84
  end
60
85
  end
61
86
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.13.1"
3
+ VERSION = "1.15.0"
4
4
  end
5
5
  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.13.1
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-20 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os
@@ -102,8 +102,7 @@ dependencies:
102
102
  version: '0'
103
103
  description:
104
104
  email: hello@sentry.io
105
- executables:
106
- - sentry_cli_path
105
+ executables: []
107
106
  extensions: []
108
107
  extra_rdoc_files: []
109
108
  files:
@@ -114,7 +113,6 @@ files:
114
113
  - bin/sentry-cli-Linux-x86_64
115
114
  - bin/sentry-cli-Windows-i686.exe
116
115
  - bin/sentry-cli-Windows-x86_64.exe
117
- - bin/sentry_cli_path
118
116
  - lib/fastlane/plugin/sentry.rb
119
117
  - lib/fastlane/plugin/sentry/actions/sentry_check_cli_installed.rb
120
118
  - lib/fastlane/plugin/sentry/actions/sentry_create_deploy.rb
data/bin/sentry_cli_path DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'os'
4
-
5
- if OS.mac?
6
- print File.join(__dir__, 'sentry-cli-Darwin-universal')
7
- elsif OS.windows?
8
- if OS.bits == 64
9
- print File.join(__dir__, 'sentry-cli-Windows-x86_64.exe')
10
- else
11
- print File.join(__dir__, 'sentry-cli-Windows-i686.exe')
12
- end
13
- else
14
- if OS.bits == 64
15
- print File.join(__dir__, 'sentry-cli-Linux-x86_64')
16
- else
17
- print File.join(__dir__, 'sentry-cli-Linux-i686')
18
- end
19
- end