fastlane-plugin-stream_actions 0.3.76 → 0.3.77

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
  SHA256:
3
- metadata.gz: 7556cc0b862c5627f68c25bcbd8e0bfd8e7990d6ea5d7e4dd5581326d97a851a
4
- data.tar.gz: 20f2fb40548656caf01a1a1e69b788479d122800cc6a391aaf9627abf60c303f
3
+ metadata.gz: 053ab42c0bc511b6bf9c2fcaa0958a271458502eb2c0ed5ef8e6456dd4a204ee
4
+ data.tar.gz: 0dbb320105e099f2c084294ef9433fbea0335620a2f34310b86041068f8ccfa6
5
5
  SHA512:
6
- metadata.gz: 94ce0fb4525fd1653aa5be14135e2230f1e418048a33e9222d12044eeae211b3bfb4e91ffbf10fd619a3c99a29959a04f4981093ccb88252f881d0a532ab5860
7
- data.tar.gz: 33f698f234d6d0310849c75cf00c3971f74b05eb763b324e7ff28f3041c09292b072ccb2e5b1fb9063051e47e01b0a007dcb98a394aeb367021856a0846938ef
6
+ metadata.gz: 3ce85e5582cab92152f0d1ae3b3e7608c37772564774eb3cea00cc449a4f1d1c63916b887c8447d1bff75b6f0b4bbd4165c35ccfe3e2a20f79728cdb8199a6e2
7
+ data.tar.gz: 953370c4cb6668b3fd1f6e200737ea09672af9becb91c594675b7483c90eeb47fe69157397bb892aecd4a9515a6027999daa7531d02938f42e3c2ab3c6942b9b
@@ -25,14 +25,15 @@ module Fastlane
25
25
  benchmark_value_kb = benchmark_sizes[sdk_name.to_s]
26
26
  benchmark_value_mb = (benchmark_value_kb / 1024.0).round(2)
27
27
  benchmark_value = is_kb ? benchmark_value_kb.round(0) : benchmark_value_mb
28
- max_tolerance = params[:max_tolerance] || is_kb ? 500 : 5000 # By default, Max Tolerance is 500 Kilobytes or 5000 Bytes
29
- fine_tolerance = params[:fine_tolerance] || is_kb ? 250 : 2500 # By default, Fine Tolerance is 250 Kilobytes or 2500 Bytes
30
28
 
31
29
  diff_kb = (branch_value_kb - benchmark_value_kb).round(0)
32
30
  diff_b = ((branch_value_kb - benchmark_value_kb) * 1024).round(0)
33
31
  diff = is_kb ? diff_b : diff_kb
34
32
  diff_ext = is_kb ? 'B' : 'KB'
35
33
 
34
+ max_tolerance = params[:max_tolerance] || diff_ext == 'B' ? 5000 : 500 # By default, Max Tolerance is 5000 Bytes or 500 Kilobytes
35
+ fine_tolerance = params[:fine_tolerance] || diff_ext == 'B' ? 2500 : 250 # By default, Fine Tolerance is 2500 Bytes or 250 Kilobytes
36
+
36
37
  diff_sign = if diff.zero?
37
38
  ''
38
39
  elsif diff.positive?
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.76'
3
+ VERSION = '0.3.77'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.76
4
+ version: 0.3.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-14 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list