snapshot 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -1
- data/lib/snapshot/reports_generator.rb +5 -1
- data/lib/snapshot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 480a0ab46d0a7b50f7adecc6a17bbb1412019004
|
4
|
+
data.tar.gz: a44d87eff87b3aa5e6dc5f2d15dd4e9194604759
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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> •
|
3
|
+
<b>Snapshot</b> •
|
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
|
-
|
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
|
-
|
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
|
data/lib/snapshot/version.rb
CHANGED