snapshot 0.2.1 → 0.2.2

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: f9587bca312d28377307565bc943291fed8b44f5
4
- data.tar.gz: 624c2a496b4c50820964d2626b20a61a413a4535
3
+ metadata.gz: 480a0ab46d0a7b50f7adecc6a17bbb1412019004
4
+ data.tar.gz: a44d87eff87b3aa5e6dc5f2d15dd4e9194604759
5
5
  SHA512:
6
- metadata.gz: f8ccb3fcc29be45f88c5ce7c9d8d2b61d8fa8c483c60226a2477c5991be56503d3e68b2d24fdd5d943ed41cf2413f992e7dca7b7e37164f42151b811f007691c
7
- data.tar.gz: ef10c5745da09e21ccff13dfb420e8a31761949e314e379acd7147518563faffaf1355c256804e2b16ae887877c3bdadc43738a641500cd41c553564b57d725f
6
+ metadata.gz: 1e33a3bf704a1aee065f3a7038b7edfef2c8f9f3160d09e0faff8823292b0080611b24dabd6d79cd33a22b7f109955ab38736f7c4324db56ce15a27f97c6ff93
7
+ data.tar.gz: 850b75361cf3bdd9fc2293f4899b24d363b60ec460ce16f3154ba9803e7f7627529c5f21bdb9f864fd4d90e3e20aeaa270f92aae0bc3115588e80bbcb83b7eb6
data/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ <p align="center">
2
+ <a href="https://github.com/KrauseFx/deliver">Deliver</a> &bull;
3
+ <b>Snapshot</b> &bull;
4
+ <a href="https://github.com/KrauseFx/frameit">FrameIt</a>
5
+ </p>
6
+ -------
7
+
1
8
  <p align="center">
2
9
  <img src="assets/snapshot.png">
3
10
  </p>
@@ -9,8 +16,9 @@ Snapshot - Create hundreds of iOS app screenshots
9
16
  [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/snapshot/blob/master/LICENSE)
10
17
  [![Gem](https://img.shields.io/gem/v/snapshot.svg?style=flat)](http://rubygems.org/gems/snapshot)
11
18
 
19
+
12
20
  You have an iPhone app. You support 20 languages. You updated the design. You want to release the update to the App Store.
13
- *What's missing? *
21
+ What's missing?
14
22
 
15
23
  **New Screenshots**
16
24
 
@@ -50,6 +58,9 @@ Follow the developer on Twitter: [@KrauseFx](https://twitter.com/KrauseFx)
50
58
  - Very easy to integrate with ```deliver```
51
59
  - ```Snapshot``` automatically waits for network requests to be finished before taking a screenshot (we don't want loading images in the App Store screenshots)
52
60
 
61
+ After ```Snapshot``` successfully created new screenshots, it will generate a beautiful html file to get a quick overview of all screens:
62
+ ![assets/htmlPage.png](assets/htmlPage.png)
63
+
53
64
  ## Why?
54
65
  This gem automatically switches the language and device type and runs the automation script to take all screenshots.
55
66
 
@@ -96,6 +107,9 @@ Here a few links to get started:
96
107
  - This will get you started. Copy the generated code into ```./snapshot.js```. Make sure, you leave the import statement on the top.
97
108
  - To take a screenshot, use ```captureLocalizedScreenshot('0-name')```
98
109
 
110
+ Here is a nice gif, that shows ```snapshot``` in action:
111
+ ![assets/snapshot.gif](assets/snapshot.gif)
112
+
99
113
  You can take a look at the example project to play around with it.
100
114
 
101
115
  ## Start ```snapshot```
@@ -37,7 +37,11 @@ module Snapshot
37
37
 
38
38
  private
39
39
  def lib_path
40
- "./lib/"
40
+ if not Helper.is_test? and Gem::Specification::find_all_by_name('snapshot').any?
41
+ return [Gem::Specification.find_by_name('snapshot').gem_dir, 'lib'].join('/')
42
+ else
43
+ return './lib'
44
+ end
41
45
  end
42
46
 
43
47
  def available_devices
@@ -1,3 +1,3 @@
1
1
  module Snapshot
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause