snapshot 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snapshot/latest_ios_version.rb +2 -1
- data/lib/snapshot/reset_simulators.rb +6 -0
- data/lib/snapshot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d48db6f3a941d5415f919c885128617eccbd045b
|
4
|
+
data.tar.gz: 48accee55c96d5ae5de75688f3076f3e2cc66ca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3575a0c9b77f63f603741441ef3d363f1108c4da48d1b2047d6ae6d08494ea4f3febf43e83ef860fd7839b57c2efdfc6a6a144876531cbba48cc680a82874023
|
7
|
+
data.tar.gz: cd25ef5ec5eb98bb7d708f0ecec4c66bfb91805e0351e62860ccfd0b2cb0d54cc7499b20f69b7d8782258afa6a8ea4e3b9c67f6d7a0ae14f9f8124e659ca5763
|
@@ -4,7 +4,8 @@ module Snapshot
|
|
4
4
|
return ENV["SNAPSHOT_IOS_VERSION"] if ENV["SNAPSHOT_IOS_VERSION"]
|
5
5
|
|
6
6
|
output = `xcodebuild -version -sdk`.split("Mac").last # don't care about the Mac Part
|
7
|
-
matched = output.match(/
|
7
|
+
matched = output.match(/iPhoneSimulator([\d\.]+)\.sdk/)
|
8
|
+
|
8
9
|
if matched.length > 1
|
9
10
|
return matched[1]
|
10
11
|
else
|
@@ -27,7 +27,13 @@ module Snapshot
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
# device_types
|
31
|
+
# ["iPhone 5", "com.apple.CoreSimulator.SimDeviceType.iPhone-5"],
|
32
|
+
# ["iPhone 5s", "com.apple.CoreSimulator.SimDeviceType.iPhone-5s"],
|
33
|
+
# ["iPhone 6", "com.apple.CoreSimulator.SimDeviceType.iPhone-6"],
|
30
34
|
device_types.each do |device_type|
|
35
|
+
next if device_type.first.include?"Watch" # we don't want to deal with the Watch right now
|
36
|
+
|
31
37
|
puts "Creating #{device_type} for iOS version #{ios_version}"
|
32
38
|
command = "xcrun simctl create '#{device_type[0]}' #{device_type[1]} #{ios_version}"
|
33
39
|
command_output = `#{command}`
|
data/lib/snapshot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snapshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastimage
|