fastlane-plugin-sentry 1.9.0 → 1.10.0

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: 0fcaac063173141e154a7713fe39aaea1f541d6656faca25b59e97e74ac8628a
4
- data.tar.gz: be174a0c3dd6b3c1df22a87c0b67b90aebf0e4684a1aff65dc183e2c2d9d1356
3
+ metadata.gz: eeb54cbb7cb68c15aa862be7d5cd184eb17b3094259506b567a4e0063a746355
4
+ data.tar.gz: e6e1da94a7281cb8764c9206eb560072c8105d1652abc2a84442a8fbac97f3a3
5
5
  SHA512:
6
- metadata.gz: 1c4962ae6e42b13c30f9633ff2026358cac06c73c9a00a2b88cd025dc7872771f360667d40ed4915efde2df0cdc8a87fb69781f87ea9d9ff47721cc79a76f685
7
- data.tar.gz: d4fd92588967cdce3bc6847752afc63cf496edeb2d5b978f2252fe99ab58439c64779b7c7016a9e4dc4db0864abeb11da2a0553f9d21a0764e6c7f9124e772c2
6
+ metadata.gz: 8a62afff2c359f21dd6454906faf5e87382d0aed9dcb9eaf16de9d172abd98cb2eac4244de45a5ff30ced65ea8489598490c056b3ecff65f9107f119de0d69b1
7
+ data.tar.gz: 5688c994bd61392ff490715d03241f086a808018f7fe02f3b5be38e2c73e91259eee8ca319a1b309b1949edd63487e2f70e229b5818c73e442e62bae0406d655
data/README.md CHANGED
@@ -114,7 +114,7 @@ sentry_upload_dif(
114
114
  auth_token: '...', # Do not use if using api_key
115
115
  org_slug: '...',
116
116
  project_slug: '...',
117
- path: '/path/to/files'
117
+ path: '/path/to/files' # Optional. Well default to '.' when no value is provided.
118
118
  )
119
119
  ```
120
120
 
@@ -155,6 +155,14 @@ sentry_create_deploy(
155
155
  )
156
156
  ```
157
157
 
158
+ #### Checking the sentry-cli is installed
159
+
160
+ Useful for checking that the sentry-cli is installed and meets the minimum version requirements before starting to build your app in your lane.
161
+
162
+ ```ruby
163
+ sentry_check_cli_installed()
164
+ ```
165
+
158
166
  ## Issues and Feedback
159
167
 
160
168
  For any other issues and feedback about this plugin, please submit it to this repository.
@@ -0,0 +1,37 @@
1
+ module Fastlane
2
+ module Actions
3
+ class SentryCheckCliInstalledAction < Action
4
+ def self.run(params)
5
+ Helper::SentryHelper.check_sentry_cli!
6
+ UI.success("Successfully checked that sentry-cli is installed")
7
+ end
8
+
9
+ #####################################################
10
+ # @!group Documentation
11
+ #####################################################
12
+
13
+ def self.description
14
+ "Checks that sentry-cli with the correct version is installed"
15
+ end
16
+
17
+ def self.details
18
+ [
19
+ "This action checks that the senty-cli is installed and meets the mimum verson requirements.",
20
+ "You can use it at the start of your lane to ensure that sentry-cli is correctly installed."
21
+ ].join(" ")
22
+ end
23
+
24
+ def self.return_value
25
+ nil
26
+ end
27
+
28
+ def self.authors
29
+ ["matt-oakes"]
30
+ end
31
+
32
+ def self.is_supported?(platform)
33
+ true
34
+ end
35
+ end
36
+ end
37
+ end
@@ -17,7 +17,7 @@ module Fastlane
17
17
  "new",
18
18
  version
19
19
  ]
20
- command.push("--finalize") if params[:finalize].nil?
20
+ command.push("--finalize") if params[:finalize] == true
21
21
 
22
22
  Helper::SentryHelper.call_sentry_cli(command)
23
23
  UI.success("Successfully created release: #{version}")
@@ -8,6 +8,7 @@ module Fastlane
8
8
  Helper::SentryConfig.parse_api_params(params)
9
9
 
10
10
  path = params[:path]
11
+ path = '.' if path.nil?
11
12
 
12
13
  command = [
13
14
  "sentry-cli",
@@ -52,7 +53,8 @@ module Fastlane
52
53
  def self.available_options
53
54
  Helper::SentryConfig.common_api_config_items + [
54
55
  FastlaneCore::ConfigItem.new(key: :path,
55
- description: "A path to search recursively for symbol files"),
56
+ description: "A path to search recursively for symbol files",
57
+ optional: true),
56
58
  FastlaneCore::ConfigItem.new(key: :type,
57
59
  short_option: "-t",
58
60
  description: "Only consider debug information files of the given \
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.9.0"
3
+ VERSION = "1.10.0"
4
4
  CLI_VERSION = "1.63.1"
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.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-03 00:00:00.000000000 Z
11
+ date: 2021-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -89,6 +89,7 @@ files:
89
89
  - LICENSE
90
90
  - README.md
91
91
  - lib/fastlane/plugin/sentry.rb
92
+ - lib/fastlane/plugin/sentry/actions/sentry_check_cli_installed.rb
92
93
  - lib/fastlane/plugin/sentry/actions/sentry_create_deploy.rb
93
94
  - lib/fastlane/plugin/sentry/actions/sentry_create_release.rb
94
95
  - lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb