snapshot 1.4.4 → 1.5.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
  SHA1:
3
- metadata.gz: 2bcb5a092c61bb5ec4edc603237667501d1918ec
4
- data.tar.gz: 541859822d489149b36ee88ac0585a54f6fc4441
3
+ metadata.gz: 465b8c37379a1a9a76a3ba13cadb954806c6e7bf
4
+ data.tar.gz: 73b36f1256f379ee0ff430d5054b92cf9f74adf1
5
5
  SHA512:
6
- metadata.gz: 0b6bddb2e5097c3f3734be7691669678d5f0dd11ded20f441df5f42a296263ad9c2b7ae94d8740eb8c54fe455bbb76d287cd6fae00ff14ac17556874c7592182
7
- data.tar.gz: 01781eb574d27f1ff95996e06af8a1b683eda82463de4253af9c0c6aebd9f0357b2376cbb6bc00be1b541d554c7060f8050963b2203dc5ebaff7081fa8451b1b
6
+ metadata.gz: 1dbd182b3e65ed03cc67d4aaa841804d8c066c05dbfd2acadc36ad329aeef01565895f07cecddd77f36c0a060e97bd61ccfed54aa780df913bf70f1609208463
7
+ data.tar.gz: 19451dc63532cc4d2ffaadf9db19c3b36484fb398440fcd8a9230ee5601d85fa557fbb6af65ca0d29c11704689162e0a4d923ed297ab67f5105e051f44883f63
@@ -74,8 +74,10 @@ class Snapshot: NSObject {
74
74
 
75
75
  class func waitForLoadingIndicatorToDisappear() {
76
76
  let query = XCUIApplication().statusBars.childrenMatchingType(.Other).elementBoundByIndex(1).childrenMatchingType(.Other)
77
-
78
- while query.count > 4 {
77
+
78
+ let expectedCount = ((UIDevice.currentDevice().userInterfaceIdiom == .Pad) ? 5 : 4)
79
+
80
+ while (query.count > UInt(expectedCount)) {
79
81
  sleep(1)
80
82
  print("Number of Elements in Status Bar: \(query.count)... waiting for status bar to disappear")
81
83
  }
@@ -105,6 +105,12 @@ module Snapshot
105
105
  env_name: "SNAPSHOT_CONFIGURATION",
106
106
  description: "The configuration to use when building the app. Defaults to 'Release'",
107
107
  optional: true),
108
+ FastlaneCore::ConfigItem.new(key: :xcpretty_args,
109
+ short_option: "-x",
110
+ env_name: "SNAPSHOT_XCPRETTY_ARGS",
111
+ description: "Additional xcpretty arguments",
112
+ is_string: true,
113
+ optional: true),
108
114
  FastlaneCore::ConfigItem.new(key: :sdk,
109
115
  short_option: "-k",
110
116
  env_name: "SNAPSHOT_SDK",
@@ -53,7 +53,7 @@ module Snapshot
53
53
  end
54
54
 
55
55
  def pipe
56
- ["| tee '#{xcodebuild_log_path}' | xcpretty"]
56
+ ["| tee '#{xcodebuild_log_path}' | xcpretty #{Snapshot.config[:xcpretty_args]}"]
57
57
  end
58
58
 
59
59
  def device_udid(device)
@@ -1,4 +1,4 @@
1
1
  module Snapshot
2
- VERSION = "1.4.4"
2
+ VERSION = "1.5.0"
3
3
  DESCRIPTION = "Automate taking localized screenshots of your iOS app on every device"
4
4
  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: 1.4.4
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastimage
@@ -176,14 +176,14 @@ dependencies:
176
176
  requirements:
177
177
  - - "~>"
178
178
  - !ruby/object:Gem::Version
179
- version: '0.34'
179
+ version: 0.35.1
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: '0.34'
186
+ version: 0.35.1
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: webmock
189
189
  requirement: !ruby/object:Gem::Requirement