fastlane-plugin-stream_actions 0.3.56 → 0.3.58

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: d249166cf95a7bdf05d9768a37900a29c56f60f49ab70d086aed41ec2295bd9e
4
- data.tar.gz: c4305ec4380aeb992bcfc499209a337f6bc456172a368a7a7b338c87797aae8c
3
+ metadata.gz: b2345dcb287f04e51faa662e34ba5fea343ac9a90dc9f7692e60dd6439255002
4
+ data.tar.gz: 7a908355904e4aaa3808bd65c2fe9161a36935f6537a1388cde05c69f385635a
5
5
  SHA512:
6
- metadata.gz: a6ed3d0525e720286e4bf440785c9827e9d65c99659b63aea1ead5e6bd9f0a5f407becf4939c6cbc7db1aa254e03561b0cf8406a27acfff02f1c8eda2b1b5825
7
- data.tar.gz: de805cb4fe9d13202d144def9a64129027131413903f945aebdd567e835f753ee69d622010da8b9897b7461ca5d15d5480f2ab8ede370bc88bd41a152e64afcd
6
+ metadata.gz: 72db6372a2ea659aae8f885dbcd2425057b9e1c64e8130e33a4e69ba1619d0ad91bc941f906e4e316837e095e1588a7e3ef3aed54bf72020fe65cc00f36cfbfc
7
+ data.tar.gz: 02cfe9f6b872cdaf919eb5ef47b2fc8c01413f1a6321ed7e67ffd51a63439174fc23defb935101fae2d36349e9662c3e52a36069a07611378f334b28a616b2f1
@@ -2,7 +2,9 @@ module Fastlane
2
2
  module Actions
3
3
  class PrCommentAction < Action
4
4
  def self.run(params)
5
- if params[:pr_num]
5
+ if params[:pr_num].to_s.empty?
6
+ UI.important('Skipping the PR comment.')
7
+ else
6
8
  additional_args = []
7
9
  if params[:edit_last_comment_with_text]
8
10
  UI.message('Checking last comment for required pattern.')
@@ -17,8 +19,6 @@ module Fastlane
17
19
  end
18
20
  sh("gh pr comment #{params[:pr_num]} -b '#{params[:text]}' #{additional_args.join(' ')}")
19
21
  UI.success('PR comment been added.')
20
- else
21
- UI.error('Skipping the PR comment because PR number has not been provided.')
22
22
  end
23
23
  end
24
24
 
@@ -25,7 +25,7 @@ module Fastlane
25
25
  max_tolerance = 500 # Max Tolerance is 500KB
26
26
  fine_tolerance = 250 # Fine Tolerance is 250KB
27
27
 
28
- diff = branch_value_kb - benchmark_value_kb
28
+ diff = (branch_value_kb - benchmark_value_kb).to_i
29
29
 
30
30
  diff_sign = if diff.zero?
31
31
  ''
@@ -45,7 +45,7 @@ module Fastlane
45
45
  success_status
46
46
  end
47
47
 
48
- markdown_table << "|#{sdk_name}|#{benchmark_value_mb}MB|#{branch_value_mb}MB|#{diff_sign}#{diff.to_i.abs}KB|#{status_emoji}|\n"
48
+ markdown_table << "|#{sdk_name}|#{benchmark_value_mb} MB|#{branch_value_mb} MB|#{diff_sign}#{diff.abs} KB|#{status_emoji}|\n"
49
49
  end
50
50
 
51
51
  FastlaneCore::PrintTable.print_values(title: 'Benchmark', config: benchmark_sizes)
@@ -7,7 +7,7 @@ module Fastlane
7
7
  params[:sizes].each do |key, value|
8
8
  framework_size_kb = value
9
9
  framework_size_mb = (framework_size_kb / 1024.0).round(2)
10
- readme_content.gsub!(%r{(https://img.shields.io/badge/#{key}-)(.*?)(-blue)}, "\\1#{framework_size_mb}MB\\3")
10
+ readme_content.gsub!(%r{(https://img.shields.io/badge/#{key}-)(.*?)(-blue)}, "\\1#{framework_size_mb}%20MB\\3")
11
11
  end
12
12
 
13
13
  File.write(params[:readme_path], readme_content)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.56'
3
+ VERSION = '0.3.58'
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.56
4
+ version: 0.3.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-13 00:00:00.000000000 Z
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list