fastlane-plugin-raven 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2874e48640ffe8cefc8ce879f5992ac1212a4d86
|
4
|
+
data.tar.gz: 47d7ff035900c71eeae182b65ed2802e48dc7e8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d01dd3461b7d5958532915bf660080b95471d0290178baf7d9ccf4e5aa9fec557e978223d4bcde88c77bcf7cd589fec5e0fc4d02e8cace87ff1f02733386718
|
7
|
+
data.tar.gz: 126754f66be92efd207406b329778a781a68ff6af3978a3ca72e46bc27eeb795ce3683e24bc534390014829d8337c99b03b4c8f2bbc84825e1936ce4c7d9ac9a
|
@@ -16,11 +16,13 @@ module Fastlane
|
|
16
16
|
end
|
17
17
|
UI.message("Uploading Sourcemaps")
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
sourcemaps.each do |sourcemap|
|
20
|
+
response = client.upload_release_artifact(params[:version], sourcemap)
|
21
|
+
unless (200..300).cover?(response.response_code)
|
22
|
+
UI.user_error!("Failed to upload Sourcemaps for Version: #{params[:version]}")
|
23
|
+
end
|
23
24
|
end
|
25
|
+
UI.success("Uploaded all Sourcemaps for Version: #{params[:version]}")
|
24
26
|
end
|
25
27
|
|
26
28
|
def self.description
|
data/lib/sentry/client.rb
CHANGED
@@ -33,16 +33,12 @@ module Sentry
|
|
33
33
|
)
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
)
|
43
|
-
return false unless response.response_code == 201
|
44
|
-
end
|
45
|
-
true
|
36
|
+
def upload_release_artifact(version, artifact_path)
|
37
|
+
Typhoeus.post(
|
38
|
+
"#{base_url}/#{slug}/releases/#{version}/files/",
|
39
|
+
headers: { "Authorization" => "Bearer #{token}" },
|
40
|
+
body: { file: File.open(artifact_path, "r") }
|
41
|
+
)
|
46
42
|
end
|
47
43
|
end
|
48
44
|
end
|