snapshot 1.1.0 → 1.1.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: 792893b8ea91ff1cb73ea41fe88538e359f7f369
4
- data.tar.gz: 081698de2c4c976898f3824403c04ac2d1e66dd8
3
+ metadata.gz: abe2a2114b41b71a5a3b0bf789737b74ed8eb269
4
+ data.tar.gz: 96a63f2703288bfb6026fd9ec337fe1fb2219159
5
5
  SHA512:
6
- metadata.gz: ce10a14b5f6d145fce00854da09148aa9657cf5a9a9f8e410a9abeffcd83d039b13315ea5a01b603ad1935a779c85952b40d4c83aecf674d9abde092870f34e1
7
- data.tar.gz: 054ae2477fcf77d586c3f6df3d2b3a5a384be2bbd663713ae5717e5dc3515cced46772b818ed890f5f3f1da85a816606856e487fe705ce2ab12c62ec4aa1fd91
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 = ["-AppleLanguages", "(\(deviceLanguage))", "-AppleLocale", "\"\(locale)\"","-ui_testing"]
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
- FastlaneCore::Project.detect_projects(config)
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
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  module Snapshot
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  DESCRIPTION = "Automate taking localized screenshots of your iOS app on every device"
4
4
  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: 1.1.0
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-10-30 00:00:00.000000000 Z
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.4.8
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