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 +4 -4
- data/README.md +15 -1
- data/bin/snapshot +1 -1
- data/lib/assets/SnapfileTemplate +1 -1
- data/lib/snapshot/runner.rb +4 -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: 1fe56d81aa604485820010eadd10d664dc2e074b
|
4
|
+
data.tar.gz: 0bf22a8fe033bf484bd05ea35524ce6ae549e157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.'
|
data/lib/assets/SnapfileTemplate
CHANGED
@@ -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("./
|
39
|
+
# system("./populateDatabase.sh")
|
40
40
|
# end
|
41
41
|
|
42
42
|
# teardown_device do |language, device|
|
data/lib/snapshot/runner.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2015-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastimage
|