xcsim 1.0.1 → 1.0.2
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/CHANGELOG.md +22 -0
- data/lib/xcsim/rbOSID.rb +6 -2
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 139a97358a334eb8fb59ee044b67e5478324e0bd
|
|
4
|
+
data.tar.gz: 129491df87296b379e97ca1d8ac26f1fec9d5ff4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6904e236fd5b5ff3ba0f4a236a9418c0aeaccee2b4ebc89f0edae788ee148e9beedbd8d9564a58165b1057b52454d91f6715e9b09c820ce09bb475086d31aa18
|
|
7
|
+
data.tar.gz: 64e1725c27836dc1e803da7ce6eef95d7543dcccd84ff11f5c342c745fe8637aba805faf4ff85b268eaffb6b446d4cf437acb37a7171643c3875c6d60571a440
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
|
+
|
|
5
|
+
### [1.0.2]
|
|
6
|
+
#### Issues fixed
|
|
7
|
+
- Fixed version comparison, which incorrectly assumed `10.0 < 9.0`; using `Gem::Version` class
|
|
8
|
+
for comparing versions now.
|
|
9
|
+
|
|
10
|
+
### [1.0.1]
|
|
11
|
+
#### Issues fixed
|
|
12
|
+
- Resolve https://github.com/wanderwaltz/xcsim/issues/1 regarding a Ruby 2.2 warning
|
|
13
|
+
`Return nil in #<=> if the comparison is inappropriate or avoid such comparison.`
|
|
14
|
+
by using `compact` instead of `select` for filtering `nil` values.
|
|
15
|
+
|
|
16
|
+
- Resolved https://github.com/wanderwaltz/xcsim/issues/2:
|
|
17
|
+
-- `XCSim::parseDeviceSet` will now skip simulators without application data directory
|
|
18
|
+
-- both `XCSim::parseInstalledBundles` and `XCSim::findBundleDataPath` now check the existence
|
|
19
|
+
of their wokring directories for an early return
|
|
20
|
+
|
|
21
|
+
### [1.0.0]
|
|
22
|
+
Initial release
|
data/lib/xcsim/rbOSID.rb
CHANGED
|
@@ -44,6 +44,7 @@ module XCSim
|
|
|
44
44
|
def initialize(type, version)
|
|
45
45
|
@type = type
|
|
46
46
|
@version = version
|
|
47
|
+
@parsed_version = Gem::Version.new(version)
|
|
47
48
|
end
|
|
48
49
|
|
|
49
50
|
# Returns a string in <tt>'iOS 9.2'</tt> format
|
|
@@ -64,10 +65,10 @@ module XCSim
|
|
|
64
65
|
|
|
65
66
|
include Comparable
|
|
66
67
|
|
|
67
|
-
# Uses
|
|
68
|
+
# Uses version for comparison (allows using <tt>Array#max</tt> on arrays of OSID
|
|
68
69
|
# for selecting max version)
|
|
69
70
|
def <=>(other)
|
|
70
|
-
@
|
|
71
|
+
@parsed_version <=> other.parsed_version
|
|
71
72
|
end
|
|
72
73
|
|
|
73
74
|
# Returns +inspect.hash+
|
|
@@ -80,6 +81,9 @@ module XCSim
|
|
|
80
81
|
@type.eql?(other.type) && @version.eql?(other.version)
|
|
81
82
|
end
|
|
82
83
|
|
|
84
|
+
protected
|
|
85
|
+
attr_reader :parsed_version
|
|
86
|
+
|
|
83
87
|
private
|
|
84
88
|
@@PREFIX = "com.apple.CoreSimulator.SimRuntime."
|
|
85
89
|
end # class OSID
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xcsim
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Egor Chiglintsev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: CFPropertyList
|
|
@@ -32,6 +32,7 @@ executables:
|
|
|
32
32
|
extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
|
34
34
|
files:
|
|
35
|
+
- CHANGELOG.md
|
|
35
36
|
- LICENSE
|
|
36
37
|
- README.md
|
|
37
38
|
- bin/xcsim
|
|
@@ -66,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
66
67
|
version: '0'
|
|
67
68
|
requirements: []
|
|
68
69
|
rubyforge_project:
|
|
69
|
-
rubygems_version: 2.4.
|
|
70
|
+
rubygems_version: 2.4.8
|
|
70
71
|
signing_key:
|
|
71
72
|
specification_version: 4
|
|
72
73
|
summary: Open iOS Simulator application/data directories by bundle ID
|