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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 128e1fba0308d08053dbf2817d712d0c469ffa19
4
- data.tar.gz: d60afccfcb75690522e94724d620f24dfc52b061
3
+ metadata.gz: d48db6f3a941d5415f919c885128617eccbd045b
4
+ data.tar.gz: 48accee55c96d5ae5de75688f3076f3e2cc66ca2
5
5
  SHA512:
6
- metadata.gz: 05fb00a65d26f783510606a53a862fc615944c9f6fe4fd747e99cd79094a4d82ccf9bae516ee3904cbf1e40092e75d577807d5d2958f43373eb7d00b37b36da8
7
- data.tar.gz: 20c2b7848b7cb2bbf316d8dc286f688bc6d13a80c9b65b6464d9f914a371be58720f12d368cfbcb6ddf38390cd2498fb15fb9d405cb0e6a804ead7b60d4b4c9c
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(/SDKVersion: ([\d\.]+)/)
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}`
@@ -1,3 +1,3 @@
1
1
  module Snapshot
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
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.1
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-21 00:00:00.000000000 Z
11
+ date: 2015-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastimage