snapshot 0.7.1 → 0.8.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: 8ea463f2f123b8e7855fb76d06144e2647e3264d
4
- data.tar.gz: 9757d090c1785789e958c5a467fd311820220d36
3
+ metadata.gz: 1fe56d81aa604485820010eadd10d664dc2e074b
4
+ data.tar.gz: 0bf22a8fe033bf484bd05ea35524ce6ae549e157
5
5
  SHA512:
6
- metadata.gz: b5f48e3f0f7376fea696e58616d04e79da0eb494f9636eca63b4894f5d865b7cef230c3118e0af6d9a253141859d1e8e33bbde101729afa2fc139b4fe2ca6c5a
7
- data.tar.gz: 05ec92c9955486462dc888b4b2f0fe6f1b347a30a8080164303da7fc3293978d4d52a21147873598b06f597007f2b1ad70fd6cc43e27be3e524a44db737e7258
6
+ metadata.gz: ba23be45519c941df5c1a9eeaf8376cda8afeb5a1caaefcc5faa9f6a7188c7be595ed3b55e57ab5cf16730e45b26bc1329f4d7aa9fc8c5083975476c61096957
7
+ data.tar.gz: 70a024e17730c0ada7b14679b07de7bf3281257d776554a8c8509378b4edd922663c692b51054321f553aa8bb4e6c06864e507896d69d1dee34e2934bfb9ecde
data/README.md CHANGED
@@ -163,12 +163,26 @@ snapshot test
163
163
  ```
164
164
 
165
165
 
166
- By default, `snapshot`, will re-install the app, to make sure it's in a clean state. In case you don't want this run
166
+ If any error occurs while running the snapshot script on a device, that device will not have any screenshots, and `snapshot` will continue with the next device or language. To stop the flow after the first error, run
167
+
168
+ ```
169
+ SNAPSHOT_BREAK_ON_FIRST_ERROR=1 snapshot
170
+ ```
171
+
172
+
173
+ By default, `snapshot` will re-install the app, to make sure it's in a clean state. In case you don't want this run
167
174
 
168
175
  ```
169
176
  SNAPSHOT_SKIP_UNINSTALL=1 snapshot
170
177
  ```
171
178
 
179
+
180
+ Also by default, `snapshot` will open the HTML after all is done. This can be skipped with the following command
181
+
182
+ ```
183
+ SNAPSHOT_SKIP_OPEN_SUMMARY=1 snapshot
184
+ ```
185
+
172
186
  ## Snapfile
173
187
 
174
188
  #### Why should you have to remember complicated commands and parameters?
data/bin/snapshot CHANGED
@@ -19,7 +19,7 @@ class SnapshotApplication
19
19
  program :help, 'Author', 'Felix Krause <snapshot@krausefx.com>'
20
20
  program :help, 'Website', 'https://fastlane.tools'
21
21
  program :help, 'GitHub', 'https://github.com/krausefx/snapshot'
22
- program :help_formatter, :compact
22
+ # program :help_formatter, :compact # https://github.com/commander-rb/commander/issues/12
23
23
 
24
24
  global_option '--snapfile PATH', String, 'Custom path for your Snapfile.'
25
25
  global_option '--nobuild', 'Skips the build process when running snapshot.'
@@ -36,7 +36,7 @@ screenshots_path "./screenshots"
36
36
 
37
37
  # setup_for_device_change do |device, udid, language|
38
38
  # puts "Running #{language} on #{device}"
39
- # system("./popuplateDatabase.sh")
39
+ # system("./populateDatabase.sh")
40
40
  # end
41
41
 
42
42
  # teardown_device do |language, device|
@@ -38,7 +38,11 @@ module Snapshot
38
38
  end
39
39
 
40
40
  teardown_simulator(device, language)
41
+
42
+ break if errors.any? && ENV["SNAPSHOT_BREAK_ON_FIRST_ERROR"]
41
43
  end
44
+
45
+ break if errors.any? && ENV["SNAPSHOT_BREAK_ON_FIRST_ERROR"]
42
46
  end
43
47
 
44
48
  `killall "iOS Simulator"` # close the simulator after the script is finished
@@ -1,3 +1,3 @@
1
1
  module Snapshot
2
- VERSION = "0.7.1"
2
+ VERSION = "0.8.0"
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.7.1
4
+ version: 0.8.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: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastimage