fastlane-plugin-stream_actions 0.3.18 → 0.3.20

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: 3e4674e4c6bc2ac4759c650d0e49be2dadae8a9400b3b74b2da591abfdaa0c4e
4
- data.tar.gz: 037e2b4e807c94f8fdf1e7e667d0858fb3e45f9a5a4bd7ac508cd51a7b037280
3
+ metadata.gz: dcc8ca6b0e93fc72fea6d980559236d56b07c9b1dc638de46f8c11bef4b40868
4
+ data.tar.gz: a2956b90af0c1814e3ac8dd46aa9fd87351d2fedff54e628d17c1d1122547172
5
5
  SHA512:
6
- metadata.gz: eb8dedd395627711da96e0dc879aa9989de6afab4472552250c84b4122b0519b564190b9fb4ae7d21aa96a63b6e2256450ff28fa0e43db45510b27897d8ed2d7
7
- data.tar.gz: 3d9f881ec8c4248de7d0219f507bb52d4e0c2a7ab9f368802794c9cf6523f4eac8c7b5192b019b90aa28674c0d7ca215e7405622bdb5c754f6e98cd66296310b
6
+ metadata.gz: 52637654a181f0de8f4f7868c01733d69b71a7f088deba13e8fb73f2e8db0038d0ea8a22e1ccfab9a35e419e268722683d105aaa64df47d6b40820a3893d663a
7
+ data.tar.gz: 7b7550bb3f9d0f4c8ac07d114c8db4e8cad4e1c332e774730b87ab9e8cbdd0ccee725b3f563eca32aa927c42e059632e30dc90cb8641a5b7127893c9ac2c9897
@@ -2,7 +2,7 @@ module Fastlane
2
2
  module Actions
3
3
  class IsCheckRequiredAction < Action
4
4
  def self.run(params)
5
- return true if params[:github_pr_num].nil? || params[:github_pr_num].strip.empty?
5
+ return true if params[:force_check] || params[:github_pr_num].nil? || params[:github_pr_num].strip.empty?
6
6
 
7
7
  UI.message("Checking if check is required for PR ##{params[:github_pr_num]}")
8
8
 
@@ -40,6 +40,12 @@ module Fastlane
40
40
  key: :github_pr_num,
41
41
  description: 'GitHub PR number',
42
42
  optional: true
43
+ ),
44
+ FastlaneCore::ConfigItem.new(
45
+ key: :force_check,
46
+ description: 'GitHub PR number',
47
+ optional: true,
48
+ is_string: false
43
49
  )
44
50
  ]
45
51
  end
@@ -4,19 +4,20 @@ module Fastlane
4
4
  def self.run(params)
5
5
  simulators = FastlaneCore::Simulator.all
6
6
  version_regex = /\((\d+\.)?(\d+\.)?(\*|\d+)\)/
7
- ios_version = params[:device][version_regex]
7
+ ios_version_with_brackets = params[:device][version_regex]
8
8
  device_name = params[:device].sub(version_regex, '').strip
9
9
  udid = nil
10
10
 
11
- if ios_version.nil?
11
+ if ios_version_with_brackets.nil?
12
12
  sim = simulators.filter { |d| d.name == params[:device] }.max_by(&:os_version)
13
- ios_version = sim.os_version if sim
13
+ ios_version_with_brackets = "(#{sim.os_version})" if sim
14
14
  else
15
+ ios_version = ios_version_with_brackets.delete('()')
15
16
  sim = simulators.detect { |d| "#{d.name} (#{d.os_version})" == params[:device] }
16
- udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version.delete('()')}'` if sim.nil?
17
+ udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version}'`.to_s.strip if sim.nil?
17
18
  end
18
19
 
19
- udid = sim.udid unless sim.nil?
20
+ udid = sim.udid.to_s.strip unless sim.nil?
20
21
 
21
22
  if sim.nil? && (udid.nil? || udid.empty?)
22
23
  simulators.map! { |d| "#{d.name} (#{d.os_version})" }.join("\n")
@@ -25,7 +26,7 @@ module Fastlane
25
26
 
26
27
  sim.reset if sim && params[:reset]
27
28
  sh("xcrun simctl bootstatus #{udid} -b")
28
- UI.success("Simulator #{device_name} (#{ios_version}) is ready")
29
+ UI.success("Simulator #{device_name} #{ios_version_with_brackets} is ready")
29
30
  udid
30
31
  end
31
32
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.18'
3
+ VERSION = '0.3.20'
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.18
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-03 00:00:00.000000000 Z
11
+ date: 2023-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list