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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 076b77aa9eca5c59a6762ae1e90aa276b5798302398e66c438b114809d80bc13
4
- data.tar.gz: 00096065526e12fc6dd0b43a8cfab288a8feeb65ab1d2bb42a0657b94880622e
3
+ metadata.gz: a6c826b5e43e54083534f8f35ea6907a83057ae9923873e6ca3a462e06018d4c
4
+ data.tar.gz: edbacd41b26eb96b1b9503c7addc05a8557bc209d31f53f396cda0f9b744b378
5
5
  SHA512:
6
- metadata.gz: 09619f1f197ea0c58fe0ee6055587e9735f73f1008ceb7c69f68d93b1c3f1153155232f067c4c691c7a9e43a7ffa2cfc086e3025c4fb98d9eaa1971989f142fb
7
- data.tar.gz: 79592a1401fac9983816224c399d89f4c8b81408c11d6adfd8df824c8c8b6a08f3e29ffe06e992582e8bb85d6fe47d59b98e7c6c11b32df3bced97cefd8a2856
6
+ metadata.gz: f574b4d82c8308d404634236881ee725188e04883cc182838438631e5a1e8c7ad33907b0cf25ee5aac64962c5638c1781e8bca758f37c561a218a16f6b00be0a
7
+ data.tar.gz: d81c983cf29a605e191cbbb79abd09d5b384cf4b79706d61d3a060d0380c59c25926afef774692ef90269efb3026ce58f0c3c7b3ab5f5da1414ff8b26ce39a63
@@ -326,7 +326,11 @@ Logfile: #{log_file}
326
326
  minor = xcode_minor
327
327
 
328
328
  if xcode_major == 10
329
- model = "XS"
329
+ if minor >= 2
330
+ model = "Xs"
331
+ else
332
+ model = "XS"
333
+ end
330
334
  else
331
335
  model = xcode_major - 1
332
336
  end
@@ -15,5 +15,8 @@ module RunLoop
15
15
  # @!visibility private
16
16
  VERSION_REGEX = /(\d+\.\d+(\.\d+)?)/.freeze
17
17
 
18
+ # @!visibility private
19
+ XCODE_102_SIMULATOR_REGEX = /(?<version>\d+(-\d){1,2}\z)/.freeze
20
+
18
21
  end
19
22
  end
@@ -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.split(" ").last
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
 
@@ -1,5 +1,5 @@
1
1
  module RunLoop
2
- VERSION = "4.1.0"
2
+ VERSION = "4.2.0"
3
3
 
4
4
  # A model of a software release version that can be used to compare two versions.
5
5
  #
@@ -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.1.0
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: 2018-11-08 00:00:00.000000000 Z
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: '1.6'
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: '1.6'
163
+ version: '0'
164
164
  - !ruby/object:Gem::Dependency
165
165
  name: rspec
166
166
  requirement: !ruby/object:Gem::Requirement