snapshot 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/bin/snapshot +1 -1
- data/lib/assets/SnapfileTemplate +1 -1
- data/lib/assets/SnapshotHelper.swift +1 -1
- data/lib/snapshot/collector.rb +6 -0
- data/lib/snapshot/runner.rb +4 -5
- data/lib/snapshot/setup.rb +1 -1
- data/lib/snapshot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bcb5a092c61bb5ec4edc603237667501d1918ec
|
4
|
+
data.tar.gz: 541859822d489149b36ee88ac0585a54f6fc4441
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6bddb2e5097c3f3734be7691669678d5f0dd11ded20f441df5f42a296263ad9c2b7ae94d8740eb8c54fe455bbb76d287cd6fae00ff14ac17556874c7592182
|
7
|
+
data.tar.gz: 01781eb574d27f1ff95996e06af8a1b683eda82463de4253af9c0c6aebd9f0357b2376cbb6bc00be1b541d554c7060f8050963b2203dc5ebaff7081fa8451b1b
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
snapshot
|
30
30
|
============
|
31
31
|
|
32
|
-
[](https://twitter.com/FastlaneTools)
|
33
33
|
[](https://github.com/fastlane/snapshot/blob/master/LICENSE)
|
34
34
|
[](http://rubygems.org/gems/snapshot)
|
35
35
|
|
@@ -49,7 +49,7 @@ More information about [creating perfect screenshots](https://krausefx.com/blog/
|
|
49
49
|
|
50
50
|
`snapshot` runs completely in the background - you can do something else, while your computer takes the screenshots for you.
|
51
51
|
|
52
|
-
Get in contact with the developer on Twitter: [@
|
52
|
+
Get in contact with the developer on Twitter: [@FastlaneTools](https://twitter.com/FastlaneTools)
|
53
53
|
|
54
54
|
### Note: New `snapshot` with UI Tests in Xcode 7
|
55
55
|
|
@@ -252,7 +252,7 @@ You can run this command in the terminal to delete and re-create all iOS simulat
|
|
252
252
|
snapshot reset_simulators
|
253
253
|
```
|
254
254
|
|
255
|
-
**Warning**: This will delete **all** your simulators and replace by new ones! This is useful, if you run into weird
|
255
|
+
**Warning**: This will delete **all** your simulators and replace by new ones! This is useful, if you run into weird problems when running `snapshot`.
|
256
256
|
|
257
257
|
You can use the environment variable `SNAPSHOT_FORCE_DELETE` to stop asking for confirmation before deleting.
|
258
258
|
|
data/bin/snapshot
CHANGED
@@ -15,7 +15,7 @@ class SnapshotApplication
|
|
15
15
|
program :description, 'CLI for \'snapshot\' - Automate taking localized screenshots of your iOS app on every device'
|
16
16
|
program :help, 'Author', 'Felix Krause <snapshot@krausefx.com>'
|
17
17
|
program :help, 'Website', 'https://fastlane.tools'
|
18
|
-
program :help, 'GitHub', 'https://github.com/
|
18
|
+
program :help, 'GitHub', 'https://github.com/fastlane/snapshot'
|
19
19
|
program :help_formatter, :compact
|
20
20
|
|
21
21
|
global_option('--verbose', 'Shows a more verbose output') { $verbose = true }
|
data/lib/assets/SnapfileTemplate
CHANGED
@@ -25,7 +25,7 @@ languages([
|
|
25
25
|
# Where should the resulting screenshots be stored?
|
26
26
|
# output_directory "./screenshots"
|
27
27
|
|
28
|
-
# clear_previous_screenshots # remove the '#' to clear all previously generated screenshots before creating new ones
|
28
|
+
# clear_previous_screenshots true # remove the '#' to clear all previously generated screenshots before creating new ones
|
29
29
|
|
30
30
|
# Choose which project/workspace to use
|
31
31
|
# project "./Project.xcodeproj"
|
@@ -66,7 +66,7 @@ class Snapshot: NSObject {
|
|
66
66
|
waitForLoadingIndicatorToDisappear()
|
67
67
|
}
|
68
68
|
|
69
|
-
print("snapshot: \(name)") // more information about this, check out https://github.com/
|
69
|
+
print("snapshot: \(name)") // more information about this, check out https://github.com/fastlane/snapshot
|
70
70
|
|
71
71
|
sleep(1) // Waiting for the animation to be finished (kind of)
|
72
72
|
XCUIDevice.sharedDevice().orientation = .Unknown
|
data/lib/snapshot/collector.rb
CHANGED
@@ -9,6 +9,10 @@ module Snapshot
|
|
9
9
|
to_store = attachments(containing)
|
10
10
|
matches = output.scan(/snapshot: (.*)/)
|
11
11
|
|
12
|
+
if to_store.count == 0 && matches.count == 0
|
13
|
+
return false
|
14
|
+
end
|
15
|
+
|
12
16
|
if matches.count != to_store.count
|
13
17
|
Helper.log.error "Looks like the number of screenshots (#{to_store.count}) doesn't match the number of names (#{matches.count})"
|
14
18
|
end
|
@@ -32,6 +36,8 @@ module Snapshot
|
|
32
36
|
end
|
33
37
|
FileUtils.cp(from_path, output_path)
|
34
38
|
end
|
39
|
+
|
40
|
+
return true
|
35
41
|
end
|
36
42
|
|
37
43
|
def self.attachments(containing)
|
data/lib/snapshot/runner.rb
CHANGED
@@ -9,8 +9,8 @@ module Snapshot
|
|
9
9
|
if File.exist?("./fastlane/snapshot.js") or File.exist?("./snapshot.js")
|
10
10
|
Helper.log.warn "Found old snapshot configuration file 'snapshot.js'".red
|
11
11
|
Helper.log.warn "You updated to snapshot 1.0 which now uses UI Automation".red
|
12
|
-
Helper.log.warn "Please follow the migration guide: https://github.com/
|
13
|
-
Helper.log.warn "And read the updated documentation: https://github.com/
|
12
|
+
Helper.log.warn "Please follow the migration guide: https://github.com/fastlane/snapshot/blob/master/MigrationGuide.md".red
|
13
|
+
Helper.log.warn "And read the updated documentation: https://github.com/fastlane/snapshot".red
|
14
14
|
sleep 3 # to be sure the user sees this, as compiling clears the screen
|
15
15
|
end
|
16
16
|
|
@@ -32,8 +32,7 @@ module Snapshot
|
|
32
32
|
results[device] ||= {}
|
33
33
|
|
34
34
|
begin
|
35
|
-
launch(language, device, launch_arguments)
|
36
|
-
results[device][language] = true
|
35
|
+
results[device][language] = launch(language, device, launch_arguments)
|
37
36
|
rescue => ex
|
38
37
|
Helper.log.error ex # we should to show right here as well
|
39
38
|
Helper.log.error "Backtrace:\n\t#{ex.backtrace.join("\n\t")}"
|
@@ -138,7 +137,7 @@ module Snapshot
|
|
138
137
|
end)
|
139
138
|
|
140
139
|
raw_output = File.read(TestCommandGenerator.xcodebuild_log_path)
|
141
|
-
Collector.fetch_screenshots(raw_output, language, device_type, launch_arguments.first)
|
140
|
+
return Collector.fetch_screenshots(raw_output, language, device_type, launch_arguments.first)
|
142
141
|
end
|
143
142
|
|
144
143
|
def uninstall_app(device_type)
|
data/lib/snapshot/setup.rb
CHANGED
@@ -27,7 +27,7 @@ module Snapshot
|
|
27
27
|
puts ""
|
28
28
|
puts "3) Add `snapshot(\"0Launch\")` to wherever you want to create the screenshots".yellow
|
29
29
|
puts ""
|
30
|
-
puts "More information on GitHub: https://github.com/
|
30
|
+
puts "More information on GitHub: https://github.com/fastlane/snapshot".green
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
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: 1.4.
|
4
|
+
version: 1.4.4
|
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-
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastimage
|
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
version: '0'
|
251
251
|
requirements: []
|
252
252
|
rubyforge_project:
|
253
|
-
rubygems_version: 2.4.
|
253
|
+
rubygems_version: 2.4.0
|
254
254
|
signing_key:
|
255
255
|
specification_version: 4
|
256
256
|
summary: Automate taking localized screenshots of your iOS app on every device
|