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: 8523eb97d8bf6aa3a23d6385276908c52463ee5f
4
- data.tar.gz: 4dcfbf71338b1b2e221b979c4d1c35aac4006a44
3
+ metadata.gz: 2874e48640ffe8cefc8ce879f5992ac1212a4d86
4
+ data.tar.gz: 47d7ff035900c71eeae182b65ed2802e48dc7e8b
5
5
  SHA512:
6
- metadata.gz: 55e851c0f23e6ffd5da301bdc31ae4f6dfea3c28f614381380a824ba78bdd9022476579f0b52f28623d9459e19f37c485a9b3fe0414abff48c062de4c5dca597
7
- data.tar.gz: 4f26b853a8dd24e2c23f8bf14bd1c214772e04292ed41e66a4ed113096e17554b4fe1780349b3bb190e928a2dc7a3b66f1b5284cbf01ce850ce4df4bfd378771
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
- if client.upload_sourcemaps(params[:version], params[:sourcemaps])
20
- UI.success("Uploaded all Sourcemaps for Version: #{params[:version]}")
21
- else
22
- UI.user_error!("Failed to upload Sourcemaps for Version: #{params[:version]}")
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Raven
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
data/lib/sentry/client.rb CHANGED
@@ -33,16 +33,12 @@ module Sentry
33
33
  )
34
34
  end
35
35
 
36
- def upload_sourcemaps(version, sourcemaps)
37
- sourcemaps.each do |sourcemap|
38
- response = Typhoeus.post(
39
- "#{base_url}/#{slug}/releases/#{version}/files/",
40
- headers: { "Authorization" => "Bearer #{token}" },
41
- body: { file: File.open(sourcemap, "r") }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-raven
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
  - Marten Klitzke