fastlane-plugin-sentry 1.13.1 → 1.14.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: 0a204e76139188a6ded77316a5403373fa11099d2e1b733ec889ef1c480734ec
4
- data.tar.gz: 40d1a9d0cf3358014ae289b48cc2cd7555936238189340f3f83de24888b43f4d
3
+ metadata.gz: 745bf8fab50902d7534e3092ce91c6160dc271c719e2047b205c66fd946a3847
4
+ data.tar.gz: f6d4bee0a4f71a848c39ae0f02fa061955f87105105fea93849c385789166981
5
5
  SHA512:
6
- metadata.gz: 8876e1d7fb2611218167bcddda15ecc6b1a9a3e49997f6d83971eb841e7f63d2aceeb961850760852de8a53e1f875fd591b7cfeded4d555e06fa18b391d291f6
7
- data.tar.gz: 0c70231e6b216d498a099938dd5356dbd0192413f3d6127d446bfab83a8a1d09e0cf4f419fee59d685e413d2cf91051b0876129569104da49d22bd516bbe3c68
6
+ metadata.gz: 8a3896dc4e7981b4b5a5060ba59ba6c3bec0e623efe8d2165a5608dd39770fab39c9978e3c4508806360fe1b8fa3cd7b7e9b9ac69b395f2c8c60111614dc6eef
7
+ data.tar.gz: 400ebc2a4d747aa9e8ca4ef4b80adc3744e0a6ee007a721009ba257feaa371cdf9122d5044f15061b78aa1119a13562a7bf27f63917d6d9f6ad0794e8401355f
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,8 +1,10 @@
1
+ require 'os'
2
+
1
3
  module Fastlane
2
4
  module Helper
3
5
  class SentryHelper
4
6
  def self.find_and_check_sentry_cli_path!(params)
5
- bundled_sentry_cli_path = `bundle exec sentry_cli_path`
7
+ bundled_sentry_cli_path = self.bundled_sentry_cli_path
6
8
  bundled_sentry_cli_version = Gem::Version.new(`#{bundled_sentry_cli_path} --version`.scan(/(?:\d+\.?){3}/).first)
7
9
 
8
10
  sentry_cli_path = params[:sentry_cli_path] || bundled_sentry_cli_path
@@ -56,6 +58,29 @@ module Fastlane
56
58
  out_reader.value
57
59
  end
58
60
  end
61
+
62
+ def self.bundled_sentry_cli_path
63
+ if OS.mac?
64
+ self.bin_folder('sentry-cli-Darwin-universal')
65
+ elsif OS.windows?
66
+ if OS.bits == 64
67
+ self.bin_folder('sentry-cli-Windows-x86_64.exe')
68
+ else
69
+ self.bin_folder('sentry-cli-Windows-i686.exe')
70
+ end
71
+ else
72
+ if OS.bits == 64
73
+ self.bin_folder('sentry-cli-Linux-x86_64')
74
+ else
75
+ self.bin_folder('sentry-cli-Linux-i686')
76
+ end
77
+ end
78
+ end
79
+
80
+ # Get path for files in bin folder. Paths are resolved relative to this file, for which there are also unit tests.
81
+ def self.bin_folder(filename)
82
+ File.expand_path("../../../../../bin/#{filename}", File.dirname(__FILE__))
83
+ end
59
84
  end
60
85
  end
61
86
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.13.1"
3
+ VERSION = "1.14.0"
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: 1.13.1
4
+ version: 1.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-20 00:00:00.000000000 Z
11
+ date: 2022-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os
@@ -102,8 +102,7 @@ dependencies:
102
102
  version: '0'
103
103
  description:
104
104
  email: hello@sentry.io
105
- executables:
106
- - sentry_cli_path
105
+ executables: []
107
106
  extensions: []
108
107
  extra_rdoc_files: []
109
108
  files:
@@ -114,7 +113,6 @@ files:
114
113
  - bin/sentry-cli-Linux-x86_64
115
114
  - bin/sentry-cli-Windows-i686.exe
116
115
  - bin/sentry-cli-Windows-x86_64.exe
117
- - bin/sentry_cli_path
118
116
  - lib/fastlane/plugin/sentry.rb
119
117
  - lib/fastlane/plugin/sentry/actions/sentry_check_cli_installed.rb
120
118
  - lib/fastlane/plugin/sentry/actions/sentry_create_deploy.rb
data/bin/sentry_cli_path DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'os'
4
-
5
- if OS.mac?
6
- print File.join(__dir__, 'sentry-cli-Darwin-universal')
7
- elsif OS.windows?
8
- if OS.bits == 64
9
- print File.join(__dir__, 'sentry-cli-Windows-x86_64.exe')
10
- else
11
- print File.join(__dir__, 'sentry-cli-Windows-i686.exe')
12
- end
13
- else
14
- if OS.bits == 64
15
- print File.join(__dir__, 'sentry-cli-Linux-x86_64')
16
- else
17
- print File.join(__dir__, 'sentry-cli-Linux-i686')
18
- end
19
- end