snapshot 0.6.0 → 0.6.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 +9 -0
- data/bin/snapshot +7 -2
- data/lib/snapshot.rb +0 -1
- data/lib/snapshot/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abb441723ec5d8919da77815f6f0a1b1b4b080ee
|
4
|
+
data.tar.gz: b39ed6ef457d26b551c512f29533efcee29a00d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 618a96767d35d67ab98d99088fdd4e66b7d603631973e820c136efaa62f32a9dfff72a59de49bd0ae46badf10c60494137d6eab6c5941d9f3259bb0914e1ab11
|
7
|
+
data.tar.gz: 8b9d135eac10e162c969b75020c1f2cfb7081b90c1fbbbb81d0f7a6c4aec8b9796070b8fe40cad0ed457e53dbd2fe3acab127f43184bba36e35416e750a48699
|
data/README.md
CHANGED
@@ -377,6 +377,15 @@ Unfortunately, Xamarin command line tool is only available for Business Edition
|
|
377
377
|
|
378
378
|
If building via command-line doesn't work for your project or you don't want to build every time, you can run the tool with ```snapshot --nobuild``` to skip the build process and use a pre-built ```.app``` under your ```build_dir```.
|
379
379
|
|
380
|
+
## Determine language in UI Automation script
|
381
|
+
|
382
|
+
To detect the currently used localization in your Javascript file, use the following code:
|
383
|
+
|
384
|
+
```javascript
|
385
|
+
var result = target.host().performTaskWithPathArgumentsTimeout("/usr/bin/printenv" , ["SNAPSHOT_LANGUAGE"], 5);
|
386
|
+
var language = result.stdout.substring(0, result.stdout.length - 1);
|
387
|
+
```
|
388
|
+
|
380
389
|
# Need help?
|
381
390
|
- If there is a technical problem with ```snapshot```, submit an issue.
|
382
391
|
- I'm available for contract work - drop me an email: snapshot@krausefx.com
|
data/bin/snapshot
CHANGED
@@ -15,7 +15,7 @@ class SnapshotApplication
|
|
15
15
|
|
16
16
|
def run
|
17
17
|
program :version, Snapshot::VERSION
|
18
|
-
program :description, 'CLI for \'
|
18
|
+
program :description, 'CLI for \'snapshot\' - Automate taking localized screenshots of your iOS app on every device'
|
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'
|
@@ -71,4 +71,9 @@ class SnapshotApplication
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
-
|
74
|
+
begin
|
75
|
+
FastlaneCore::UpdateChecker.start_looking_for_update('snapshot')
|
76
|
+
SnapshotApplication.new.run
|
77
|
+
ensure
|
78
|
+
FastlaneCore::UpdateChecker.show_update_status('snapshot', Snapshot::VERSION)
|
79
|
+
end
|
data/lib/snapshot.rb
CHANGED
@@ -15,6 +15,5 @@ require 'fastlane_core'
|
|
15
15
|
module Snapshot
|
16
16
|
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
|
17
17
|
|
18
|
-
FastlaneCore::UpdateChecker.verify_latest_version('snapshot', Snapshot::VERSION)
|
19
18
|
Snapshot::DependencyChecker.check_dependencies
|
20
19
|
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: 0.6.
|
4
|
+
version: 0.6.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-04-
|
11
|
+
date: 2015-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastimage
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.5.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.5.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|