xcsim 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcsim/rbAppBundles.rb +8 -2
- data/lib/xcsim/rbDeviceSet.rb +4 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b80620b5de3cba5343e98ccdc8d54a23c30f8b04
|
4
|
+
data.tar.gz: 7be3c42bc56843d7d9937218e89551f86618b8cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34858247344c0a1c7f22855696a461a949b3ba1719cfbcde61fe744598fdeb6f4532d9678d5bba592cb3c1fc1746bb36586876a9e464e6017e89926d5e36e903
|
7
|
+
data.tar.gz: 68edbebaaf51bc7f97b75a38b5ef8c4ff787085ed7508b77c2719f5e793d6161c25ecb38030bf1f15d07519f6947d16ffc54aa8f88cfd12b51aa1dde0b858ecd
|
data/lib/xcsim/rbAppBundles.rb
CHANGED
@@ -44,6 +44,9 @@ module XCSim
|
|
44
44
|
# otherwise.
|
45
45
|
def self.findBundleDataPath(deviceID, bundleID)
|
46
46
|
path = deviceID.appDataPath
|
47
|
+
|
48
|
+
return nil unless File.directory? path
|
49
|
+
|
47
50
|
subdirs = Dir.entries(path).select do |entry|
|
48
51
|
File.directory? File.join(path, entry) and !(entry =='.' || entry == '..')
|
49
52
|
end
|
@@ -60,7 +63,7 @@ module XCSim
|
|
60
63
|
nil
|
61
64
|
end
|
62
65
|
end
|
63
|
-
.
|
66
|
+
.compact
|
64
67
|
|
65
68
|
result = metadataPairs.select{ |pair| pair[:plist][METADATA_ID] == bundleID }
|
66
69
|
|
@@ -88,6 +91,9 @@ module XCSim
|
|
88
91
|
# of the bundles.
|
89
92
|
def self.parseInstalledBundles(deviceID)
|
90
93
|
path = deviceID.appBundlesPath
|
94
|
+
|
95
|
+
return {} unless File.directory? path
|
96
|
+
|
91
97
|
subdirs = Dir.entries(path).select do |entry|
|
92
98
|
File.directory? File.join(path, entry) and !(entry =='.' || entry == '..')
|
93
99
|
end
|
@@ -104,7 +110,7 @@ module XCSim
|
|
104
110
|
nil
|
105
111
|
end
|
106
112
|
end
|
107
|
-
.
|
113
|
+
.compact
|
108
114
|
|
109
115
|
bundleInfos = bundlePlists.map do |pair|
|
110
116
|
bundleID = pair[:plist][METADATA_ID]
|
data/lib/xcsim/rbDeviceSet.rb
CHANGED
@@ -23,19 +23,20 @@ module XCSim
|
|
23
23
|
osIDs = defaultDevices
|
24
24
|
.keys
|
25
25
|
.map{|s| OSID.fromPrefixedString(s) }
|
26
|
-
.
|
26
|
+
.compact
|
27
27
|
|
28
28
|
oses = osIDs.map do |id|
|
29
29
|
osDevices = defaultDevices[id.key]
|
30
30
|
devices = osDevices
|
31
31
|
.keys
|
32
32
|
.map{ |s| DeviceID.fromPrefixedString(s, osDevices[s])}
|
33
|
-
.
|
33
|
+
.compact
|
34
34
|
.select{ |device| File.directory? device.appBundlesPath }
|
35
|
+
.select{ |device| File.directory? device.appDataPath }
|
35
36
|
|
36
37
|
(devices.count > 0) ? OSDevices.new(id, devices) : nil
|
37
38
|
end
|
38
|
-
.
|
39
|
+
.compact
|
39
40
|
|
40
41
|
osHash = {}
|
41
42
|
oses.each{ |os| osHash[os.id] = os }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Egor Chiglintsev
|
@@ -56,9 +56,9 @@ require_paths:
|
|
56
56
|
- lib
|
57
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '2.0'
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
64
|
- - ">="
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
68
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
69
|
+
rubygems_version: 2.4.6
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Open iOS Simulator application/data directories by bundle ID
|