fastlane-plugin-raven 0.1.7 → 0.2.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dd1f9d7de4441d182c219a3857583ea4d6218c8
|
4
|
+
data.tar.gz: e9d1c9b454cd3d0c4b8b248cb1745bdc55d9b974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54a53dbb60de2ba2f00825f1185928e962e8df1942bf4305c254105f8f464dec742b1571b176ef2ed9db0ab68aec458a834cb5280464d06ddd9cb2030868327
|
7
|
+
data.tar.gz: 55bc55dacd8a546bc1e79dcda802cdfe098e1197fdd515dc9bc6846771642f71b78022c274ef0b5318b2121a7b3bb2cf2bbf61d28d84b716e7bab4b17258830c
|
@@ -17,7 +17,7 @@ module Fastlane
|
|
17
17
|
UI.message("Uploading Sourcemaps")
|
18
18
|
|
19
19
|
params[:sourcemaps].each do |sourcemap|
|
20
|
-
response = client.upload_release_artifact(params[:version], sourcemap)
|
20
|
+
response = client.upload_release_artifact(params[:version], sourcemap, params[:filename_prefix])
|
21
21
|
if (200..300).cover?(response.response_code)
|
22
22
|
UI.success("Uploaded all Sourcemaps for Version: #{params[:version]}")
|
23
23
|
elsif (301..499).cover?(response.response_code)
|
@@ -79,6 +79,13 @@ module Fastlane
|
|
79
79
|
description: "Path to the Sourcemaps",
|
80
80
|
optional: false,
|
81
81
|
type: Array
|
82
|
+
),
|
83
|
+
FastlaneCore::ConfigItem.new(
|
84
|
+
key: :filename_prefix,
|
85
|
+
env_name: "RAVEN_SENTRY_FILENAME_PREFIX",
|
86
|
+
description: "Prefix for the Sourcemaps Files",
|
87
|
+
optional: true,
|
88
|
+
type: String
|
82
89
|
)
|
83
90
|
]
|
84
91
|
end
|
data/lib/sentry/client.rb
CHANGED
@@ -8,7 +8,6 @@ module Sentry
|
|
8
8
|
self.token = token
|
9
9
|
self.slug = slug
|
10
10
|
self.base_url = "https://sentry.io/api/0/projects/"
|
11
|
-
self.prefix = "/"
|
12
11
|
end
|
13
12
|
|
14
13
|
def create_release(version)
|
@@ -34,13 +33,13 @@ module Sentry
|
|
34
33
|
)
|
35
34
|
end
|
36
35
|
|
37
|
-
def upload_release_artifact(version, artifact_path)
|
36
|
+
def upload_release_artifact(version, artifact_path, filename_prefix = "")
|
38
37
|
Typhoeus.post(
|
39
38
|
"#{base_url}/#{slug}/releases/#{version}/files/",
|
40
39
|
headers: { "Authorization" => "Bearer #{token}" },
|
41
40
|
body: {
|
42
41
|
file: File.open(artifact_path, "r"),
|
43
|
-
name: "#{
|
42
|
+
name: "#{filename_prefix}#{File.basename(artifact_path)}"
|
44
43
|
}
|
45
44
|
)
|
46
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-raven
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Klitzke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|