snapshot 0.6.0 → 0.6.1

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: 920d554867f6ee77a1100ff2c43f43065a9356ea
4
- data.tar.gz: 19834058363057e3e1f3ceb68412079c065878ae
3
+ metadata.gz: abb441723ec5d8919da77815f6f0a1b1b4b080ee
4
+ data.tar.gz: b39ed6ef457d26b551c512f29533efcee29a00d9
5
5
  SHA512:
6
- metadata.gz: eecfdc2cbf3fb17854217c78b740616cce1f30314c1624f5eb480e792472f93ac8c6df92e5804972caa359bd82f888a7ebc19188cd6b6bceb40da532f8d52696
7
- data.tar.gz: 246ff86c93511de42fcda6a8c5f6b6fc162dbbc625f2cbfa6becf3128ec509ae4b4bdb6234831107d2fe9e40e615373b4d04de82ff01c91d14973cec7093461b
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 \'Snapshot\' - Automate taking localized screenshots of your iOS app on every device'
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
- SnapshotApplication.new.run
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
@@ -1,3 +1,3 @@
1
1
  module Snapshot
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
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.6.0
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-08 00:00:00.000000000 Z
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.4.3
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.4.3
40
+ version: 0.5.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement