run_loop 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/run_loop/core.rb +5 -1
- data/lib/run_loop/regex.rb +3 -0
- data/lib/run_loop/simctl.rb +10 -1
- data/lib/run_loop/version.rb +1 -1
- data/lib/run_loop/xcode.rb +15 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c826b5e43e54083534f8f35ea6907a83057ae9923873e6ca3a462e06018d4c
|
4
|
+
data.tar.gz: edbacd41b26eb96b1b9503c7addc05a8557bc209d31f53f396cda0f9b744b378
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f574b4d82c8308d404634236881ee725188e04883cc182838438631e5a1e8c7ad33907b0cf25ee5aac64962c5638c1781e8bca758f37c561a218a16f6b00be0a
|
7
|
+
data.tar.gz: d81c983cf29a605e191cbbb79abd09d5b384cf4b79706d61d3a060d0380c59c25926afef774692ef90269efb3026ce58f0c3c7b3ab5f5da1414ff8b26ce39a63
|
data/lib/run_loop/core.rb
CHANGED
data/lib/run_loop/regex.rb
CHANGED
data/lib/run_loop/simctl.rb
CHANGED
@@ -590,7 +590,16 @@ while trying to list devices.
|
|
590
590
|
|
591
591
|
# @!visibility private
|
592
592
|
def device_key_to_version(key)
|
593
|
-
str = key.
|
593
|
+
str = if key.include?(" ")
|
594
|
+
key.split(" ").last
|
595
|
+
else
|
596
|
+
matches = RunLoop::Regex::XCODE_102_SIMULATOR_REGEX.match(key)
|
597
|
+
if matches.nil?
|
598
|
+
raise RuntimeError, "Cannot fetch the Simulator version from #{key}"
|
599
|
+
end
|
600
|
+
matches[:version].tr("-", ".")
|
601
|
+
end
|
602
|
+
|
594
603
|
RunLoop::Version.new(str)
|
595
604
|
end
|
596
605
|
|
data/lib/run_loop/version.rb
CHANGED
data/lib/run_loop/xcode.rb
CHANGED
@@ -26,6 +26,14 @@ module RunLoop
|
|
26
26
|
to_s
|
27
27
|
end
|
28
28
|
|
29
|
+
# Returns a version instance for Xcode 10.2; used to check for the
|
30
|
+
# availability of features and paths to various items on the filesystem
|
31
|
+
#
|
32
|
+
# @return [RunLoop::Version] 10.2
|
33
|
+
def v102
|
34
|
+
fetch_version(:v102)
|
35
|
+
end
|
36
|
+
|
29
37
|
# Returns a version instance for Xcode 10.0; used to check for the
|
30
38
|
# availability of features and paths to various items on the filesystem
|
31
39
|
#
|
@@ -106,6 +114,13 @@ module RunLoop
|
|
106
114
|
fetch_version(:v80)
|
107
115
|
end
|
108
116
|
|
117
|
+
# Is the active Xcode version 10.2 or above?
|
118
|
+
#
|
119
|
+
# @return [Boolean] `true` if the current Xcode version is >= 10.2
|
120
|
+
def version_gte_102?
|
121
|
+
version >= v102
|
122
|
+
end
|
123
|
+
|
109
124
|
# Is the active Xcode version 10.0 or above?
|
110
125
|
#
|
111
126
|
# @return [Boolean] `true` if the current Xcode version is >= 10.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_loop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -151,16 +151,16 @@ dependencies:
|
|
151
151
|
name: bundler
|
152
152
|
requirement: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- - "
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '
|
156
|
+
version: '0'
|
157
157
|
type: :development
|
158
158
|
prerelease: false
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
|
-
- - "
|
161
|
+
- - ">="
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version: '
|
163
|
+
version: '0'
|
164
164
|
- !ruby/object:Gem::Dependency
|
165
165
|
name: rspec
|
166
166
|
requirement: !ruby/object:Gem::Requirement
|