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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c5edfee2a420a70bee0a6af831f2f5d42950767
4
- data.tar.gz: e3c20c036bb41d12cb7dfcf2a444e7a6c233024d
3
+ metadata.gz: 2bcb5a092c61bb5ec4edc603237667501d1918ec
4
+ data.tar.gz: 541859822d489149b36ee88ac0585a54f6fc4441
5
5
  SHA512:
6
- metadata.gz: 09fbafd083e1435dcbdac39a795d9f530bb5dc3e8a2bf3b01f5d0a484f327f91dff7bec6ce7ae0ec9fbf1fac897701fe50b71af7ca0ef8e5fc2c5cfe35388969
7
- data.tar.gz: c1435617ea8b08662ffb1092ab7020d79e002a74b278e68b0fc7555fb786440003ae832dc36d9c114e7cd0976c7fd95590fee537e0cbbad0cfd9c261cc91dc83
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
- [![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
32
+ [![Twitter: @FastlaneTools](https://img.shields.io/badge/contact-@FastlaneTools-blue.svg?style=flat)](https://twitter.com/FastlaneTools)
33
33
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/snapshot/blob/master/LICENSE)
34
34
  [![Gem](https://img.shields.io/gem/v/snapshot.svg?style=flat)](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: [@KrauseFx](https://twitter.com/KrauseFx)
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 `Instruments` problems when running `snapshot`.
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/krausefx/snapshot'
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 }
@@ -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/krausefx/snapshot
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
@@ -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)
@@ -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/KrauseFx/snapshot/blob/master/MigrationGuide.md".red
13
- Helper.log.warn "And read the updated documentation: https://github.com/KrauseFx/snapshot".red
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)
@@ -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/krausefx/snapshot".green
30
+ puts "More information on GitHub: https://github.com/fastlane/snapshot".green
31
31
  end
32
32
  end
33
33
  end
@@ -1,4 +1,4 @@
1
1
  module Snapshot
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
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.4.3
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-06 00:00:00.000000000 Z
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.5.1
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