snapshot 1.1.0 → 1.1.1
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 +1 -0
- data/lib/assets/SnapshotHelper.swift +1 -1
- data/lib/snapshot/detect_values.rb +5 -2
- data/lib/snapshot/runner.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: abe2a2114b41b71a5a3b0bf789737b74ed8eb269
|
4
|
+
data.tar.gz: 96a63f2703288bfb6026fd9ec337fe1fb2219159
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90bc75c631543a8d4506a9ab88de3c72c7399a0869b023212811f02b301949640ab4705377eaad0c70281984cdc8f520d4d940daa883eabfd5e3dff8ed6c9cb0
|
7
|
+
data.tar.gz: 4d20b097682c395cca61c67f69fbd8d4d5ef1cd38c43c01a4f616bf5356eb7cc9d61bb0559a53b5bd7e476d877a4ddd76854c26f308b4467517a636f202cac31
|
data/README.md
CHANGED
@@ -130,6 +130,7 @@ Here a few links to get started:
|
|
130
130
|
- [WWDC 2015 Introduction to UI Tests](https://developer.apple.com/videos/play/wwdc2015-406/)
|
131
131
|
- [A first look into UI Tests](http://www.mokacoding.com/blog/xcode-7-ui-testing/)
|
132
132
|
- [UI Testing in Xcode 7](http://masilotti.com/ui-testing-xcode-7/)
|
133
|
+
- [HSTestingBackchannel : ‘Cheat’ by communicating directly with your app](https://github.com/ConfusedVorlon/HSTestingBackchannel)
|
133
134
|
|
134
135
|
**Note**: Since there is no official way to trigger a screenshot from UI Tests, `snapshot` uses a workaround (described in [How Does It Work?](#how-does-it-work)) to trigger a screenshot. If you feel like this should be done right, please duplicate radar [23062925](https://openradar.appspot.com/radar?id=5056366381105152).
|
135
136
|
|
@@ -32,7 +32,7 @@ func snapshot(name: String, waitForLoadingIndicator: Bool = true)
|
|
32
32
|
do {
|
33
33
|
let locale = try NSString(contentsOfFile: path, encoding: NSUTF8StringEncoding) as String
|
34
34
|
deviceLanguage = locale.substringToIndex(locale.startIndex.advancedBy(2, limit:locale.endIndex))
|
35
|
-
app.launchArguments
|
35
|
+
app.launchArguments += ["-AppleLanguages", "(\(deviceLanguage))", "-AppleLocale", "\"\(locale)\"","-ui_testing"]
|
36
36
|
} catch {
|
37
37
|
print("Couldn't detect/set language...")
|
38
38
|
}
|
@@ -4,11 +4,14 @@ module Snapshot
|
|
4
4
|
def self.set_additional_default_values
|
5
5
|
config = Snapshot.config
|
6
6
|
|
7
|
-
|
7
|
+
# First, try loading the Snapfile from the current directory
|
8
|
+
config.load_configuration_file(Snapshot.snapfile_name)
|
8
9
|
|
10
|
+
# Detect the project
|
11
|
+
FastlaneCore::Project.detect_projects(config)
|
9
12
|
Snapshot.project = FastlaneCore::Project.new(config)
|
10
13
|
|
11
|
-
# Go into the project's folder
|
14
|
+
# Go into the project's folder, as there might be a Snapfile there
|
12
15
|
Dir.chdir(File.expand_path("..", Snapshot.project.path)) do
|
13
16
|
config.load_configuration_file(Snapshot.snapfile_name)
|
14
17
|
end
|
data/lib/snapshot/runner.rb
CHANGED
@@ -14,7 +14,7 @@ module Snapshot
|
|
14
14
|
sleep 3 # to be sure the user sees this, as compiling clears the screen
|
15
15
|
end
|
16
16
|
|
17
|
-
FastlaneCore::PrintTable.print_values(config: Snapshot.config, hide_keys: [], title: "Summary")
|
17
|
+
FastlaneCore::PrintTable.print_values(config: Snapshot.config, hide_keys: [], title: "Summary for snapshot #{Snapshot::VERSION}")
|
18
18
|
|
19
19
|
clear_previous_screenshots if Snapshot.config[:clear_previous_screenshots]
|
20
20
|
|
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.1.
|
4
|
+
version: 1.1.1
|
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-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastimage
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
249
|
rubyforge_project:
|
250
|
-
rubygems_version: 2.
|
250
|
+
rubygems_version: 2.5.0
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: Automate taking localized screenshots of your iOS app on every device
|