fastlane-plugin-sentry 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 4e4e1026c44ce53c9ff974f0d6cc23ee99d29ffa
4
- data.tar.gz: 70f0190de9c4e90bacb0f6616b018054db32277d
3
+ metadata.gz: 33bc0c3cb58355cfad0087ef35c0583dcd30d608
4
+ data.tar.gz: 51cd6de4e8ecc29e876fd11932d7947500ade905
5
5
  SHA512:
6
- metadata.gz: b85ad1148d9974c6a336b37485e2a8fb13ba6d6d9ea832453fd211d0f1b1ee6dbb2d4e3dba0e66fa6ac064c92010466aaa30337ce5ae80631a5fbf8d9725e5ac
7
- data.tar.gz: ba762ed8f8ab7d741244b672c2410f7672e3d0e885c53395775142833889d6cbc82e09dc96652f38d6b2cae181bb47c3de8d6dbb204eb8ec61762cf38a1e02ea
6
+ metadata.gz: 6a94d0a437671feed2a5cc8b6a30500f760ccb64f75feff98ca6efcaa3eb1efdeb1e20404e812618ec30c52179e07fdf02e8735b00f571c8442f88d649348894
7
+ data.tar.gz: 3c57d653fb016c83b88f8d641cd5fbb08522191765a36edb60ab88f1f55297a8eb99a9b4cc25a6e311730fe7bfa853b73961a7eb157d1279cb1a3caaf6dcb497
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # fastlane-plugin-sentry `fastlane` Plugin
2
2
 
3
- [![fastlane Plugin Badge](https://raw.githubusercontent.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-sentry)
3
+ [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-sentry)
4
+
4
5
 
5
6
  ## Getting Started
6
7
 
@@ -24,7 +25,9 @@ sentry_upload_dsym(
24
25
  )
25
26
  ```
26
27
 
27
- `auth_token` is the preferred way to authentication method with Sentry. `api_key` will eventually become deprecated.
28
+ `auth_token` is the preferred way to authentication method with Sentry. This can be obtained on https://sentry.io/api/.
29
+
30
+ `api_key` still works but will eventually become deprecated. This can be obtained through the settings of your project.
28
31
 
29
32
  The following environment variables may be used in place of parameters: `SENTRY_API_KEY`, `SENTRY_AUTH_TOKEN`, `SENTRY_ORG_SLUG`, `SENTRY_PROJECT_SLUG`, and `SENTRY_DSYM_PATH`.
30
33
 
@@ -36,8 +36,14 @@ module Fastlane
36
36
 
37
37
  UI.message "Will upload dSYM(s) to #{url}"
38
38
 
39
- # Upload dsym(s)
39
+ # Verify dsym(s)
40
40
  dsym_paths += [dsym_path]
41
+ dsym_paths = dsym_paths.map { |path| File.absolute_path(path) }
42
+ dsym_paths.each do |path|
43
+ UI.user_error!("dSYM does not exist at path: #{path}") unless File.exists? path
44
+ end
45
+
46
+ # Upload dsym(s)
41
47
  uploaded_paths = dsym_paths.compact.map do |dsym|
42
48
  upload_dsym(resource, dsym)
43
49
  end
@@ -52,7 +58,16 @@ module Fastlane
52
58
  UI.success 'dSYM successfully uploaded to Sentry!'
53
59
 
54
60
  dsym
55
- rescue
61
+ rescue RestClient::Exception => error
62
+ handle_error(error, error.http_code)
63
+ rescue => error
64
+ handle_error(error)
65
+ end
66
+
67
+ def self.handle_error(error, status = 0)
68
+ UI.error "Error: #{error}"
69
+ UI.important "Make sure your api_key or auth_token is configured correctly" if status == 401
70
+ UI.important "Make sure the org_slug and project_slug matches exactly what is displayed your admin panel's URL" if status == 404
56
71
  UI.user_error! 'Error while trying to upload dSYM to Sentry'
57
72
  end
58
73
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
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: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Holtz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-02 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -70,14 +70,14 @@ dependencies:
70
70
  name: fastlane
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.93.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.93.0
83
83
  description:
@@ -112,9 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.4.5
115
+ rubygems_version: 2.5.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Upload symbols to Sentry
119
119
  test_files: []
120
- has_rdoc: