xcresult 0.2.2 → 0.2.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/xcresult/parser.rb +5 -3
- data/lib/xcresult/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d2df19e4db1c1335a316a67e25e1902fdc4ec018b9933deec2d9c2134b7d03c
|
|
4
|
+
data.tar.gz: 9e33e023d183caba87ba49625bfd93f8f820219f998fd9d06224d6c91e44d544
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37e6d1999642f4ea2f127ee9ef78a98d802d5c91adc26e59b801fd80c646cd038b2b3d54bf248ed70921f9a4eea7d9ce080a498f2715d02007c79d793ce19faf
|
|
7
|
+
data.tar.gz: 43c2ffe290fde684dcbe03bcfb4371e392dfc6616c7ea485519f024901729505bfe76b72272c4b6320de1bce19d00fcde14d6a945d2de93a0eefffd2ab56788e
|
data/Gemfile.lock
CHANGED
data/lib/xcresult/parser.rb
CHANGED
|
@@ -85,11 +85,13 @@ module XCResult
|
|
|
85
85
|
def xcresulttool_command(subcommand, args)
|
|
86
86
|
# Find the current xcresulttool version based on Fastlane's implementation
|
|
87
87
|
# xcresulttool version 23024, format version 3.53 (current)
|
|
88
|
-
|
|
88
|
+
# xcresulttool version 24051.1, schema version: 0.1.0 (legacy commands format version: 3.53)
|
|
89
|
+
match = `xcrun xcresulttool version`.match(/xcresulttool version (?<version>\d+(\.\d+)?),/)
|
|
89
90
|
|
|
90
|
-
version = match[:version]&.to_f
|
|
91
|
+
version = match ? match[:version]&.to_f : nil
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
# If version string does not match expected format, assume legacy is required
|
|
94
|
+
requires_legacy = version.nil? || version >= 23_021.0
|
|
93
95
|
legacy_flag = requires_legacy ? ' --legacy' : ''
|
|
94
96
|
|
|
95
97
|
cmd = "xcrun xcresulttool #{subcommand}#{legacy_flag} #{args}"
|
data/lib/xcresult/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xcresult
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Holtz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|