frameit 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +35 -20
- data/bin/frameit +3 -10
- data/lib/frameit.rb +4 -1
- data/lib/frameit/editor.rb +4 -4
- data/lib/frameit/update_checker.rb +1 -1
- data/lib/frameit/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc9e7085866795c75a277882132c16161abe91fa
|
4
|
+
data.tar.gz: f49ead675da98a9f4b285a1944dc8e8e38dfdcf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8aa3bb4dc407e533fe623934074fabbd79e44ffd7a50307c8dab3ff9a7abb7dd47af77a81318c07d323804000d618ac6dee281889a553d10d6734cca6929b0be
|
7
|
+
data.tar.gz: 39c81b5abbf2c6e147e37a7183da74f38344e0d1dc53b3ab881bf52679302e81d3a3a8bdcd5e09de24c0fd95b283ebf965a3cf1c042417ef1674aa8f4a34ba66
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,16 @@
|
|
1
|
+
<h3 align="center">
|
2
|
+
<a href="https://github.com/KrauseFx/fastlane">
|
3
|
+
<img src="assets/fastlane.png" width="150" />
|
4
|
+
<br />
|
5
|
+
fastlane
|
6
|
+
</a>
|
7
|
+
</h3>
|
1
8
|
<p align="center">
|
2
|
-
<a href="https://github.com/KrauseFx/deliver">
|
3
|
-
<a href="https://github.com/KrauseFx/snapshot">
|
4
|
-
<b>
|
5
|
-
<a href="https://github.com/KrauseFx/PEM">PEM</a>
|
9
|
+
<a href="https://github.com/KrauseFx/deliver">deliver</a> •
|
10
|
+
<a href="https://github.com/KrauseFx/snapshot">snapshot</a> •
|
11
|
+
<b>frameit</b> •
|
12
|
+
<a href="https://github.com/KrauseFx/PEM">PEM</a> •
|
13
|
+
<a href="https://github.com/KrauseFx/sigh">sigh</a>
|
6
14
|
</p>
|
7
15
|
-------
|
8
16
|
|
@@ -10,26 +18,32 @@
|
|
10
18
|
<img src="assets/frameit.png">
|
11
19
|
</p>
|
12
20
|
|
13
|
-
|
21
|
+
frameit
|
14
22
|
============
|
15
23
|
|
16
24
|
[![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
|
17
25
|
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/frameit/blob/master/LICENSE)
|
18
26
|
[![Gem](https://img.shields.io/gem/v/frameit.svg?style=flat)](http://rubygems.org/gems/frameit)
|
19
27
|
|
20
|
-
|
28
|
+
###### Quickly put your screenshots into the right device frames
|
21
29
|
|
22
|
-
|
30
|
+
This tool is not supposed to be used for App Store screenshots. Instead it should be used to prepare screenshots for websites, emails and prints.
|
31
|
+
|
32
|
+
Get in contact with the developer on Twitter: [@KrauseFx](https://twitter.com/KrauseFx)
|
23
33
|
|
24
34
|
|
25
35
|
-------
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
36
|
+
<p align="center">
|
37
|
+
<a href="#features">Features</a> •
|
38
|
+
<a href="#installation">Installation</a> •
|
39
|
+
<a href="#usage">Usage</a> •
|
40
|
+
<a href="#tips">Tips</a> •
|
41
|
+
<a href="#need-help">Need help?</a>
|
42
|
+
</p>
|
31
43
|
|
32
44
|
-------
|
45
|
+
<h5 align="center"><code>frameit</code> is part of <a href="http://fastlane.tools">fastlane</a>: connect all deployment tools into one streamlined workflow.</h5>
|
46
|
+
|
33
47
|
|
34
48
|
|
35
49
|
# Features
|
@@ -56,7 +70,7 @@ Install the gem
|
|
56
70
|
|
57
71
|
sudo gem install frameit
|
58
72
|
|
59
|
-
Because of legal reasons, I can not pre-package the device frames with ```
|
73
|
+
Because of legal reasons, I can not pre-package the device frames with ```frameit```.
|
60
74
|
|
61
75
|
The process of adding is really easy, just run ```frameit``` and the guide will help you set it up.
|
62
76
|
You only have to do this once per computer.
|
@@ -86,12 +100,13 @@ To run the setup process again to add new frames use:
|
|
86
100
|
|
87
101
|
# Tips
|
88
102
|
|
89
|
-
##
|
90
|
-
Check out other tools in this collection to speed up your deployment process:
|
91
|
-
- [```deliver```](https://github.com/KrauseFx/deliver): Deploy screenshots, app metadata and app updates to the App Store using just one command
|
92
|
-
- [```snapshot```](https://github.com/KrauseFx/snapshot): Create hundreds of screenshots of your iPhone app... while doing something else
|
93
|
-
- [```PEM```](https://github.com/KrauseFx/pem): Tired of manually creating and maintaining your push certification profiles?
|
103
|
+
## [`fastlane`](http://fastlane.tools) Toolchain
|
94
104
|
|
105
|
+
- [`fastlane`](http://fastlane.tools): Connect all deployment tools into one streamlined workflow
|
106
|
+
- [`deliver`](https://github.com/KrauseFx/deliver): Upload screenshots, metadata and your app to the App Store using a single command
|
107
|
+
- [`snapshot`](https://github.com/KrauseFx/snapshot): Automate taking localized screenshots of your iOS app on every device
|
108
|
+
- [`PEM`](https://github.com/KrauseFx/pem): Automatically generate and renew your push notification profiles
|
109
|
+
- [`sigh`](https://github.com/KrauseFx/sigh): Because you would rather spend your time building stuff than fighting provisioning
|
95
110
|
|
96
111
|
## Generate screenshots
|
97
112
|
Check out [```Snapshot```](https://github.com/KrauseFx/snapshot) to automatically generate screenshots using ```UI Automation```.
|
@@ -104,8 +119,8 @@ You can use [SimulatorStatusMagic](https://github.com/shinydevelopment/Simulator
|
|
104
119
|
- ```rm -rf ~/.frameit```
|
105
120
|
|
106
121
|
# Need help?
|
107
|
-
- If there is a technical problem with ```
|
108
|
-
- I'm available for contract work - drop me an email: frameit@
|
122
|
+
- If there is a technical problem with ```frameit```, submit an issue. Run ```frameit --trace``` to get the stacktrace.
|
123
|
+
- I'm available for contract work - drop me an email: frameit@krausefx.com
|
109
124
|
|
110
125
|
# License
|
111
126
|
This project is licensed under the terms of the MIT license. See the LICENSE file.
|
data/bin/frameit
CHANGED
@@ -4,25 +4,21 @@ $:.push File.expand_path("../../lib", __FILE__)
|
|
4
4
|
|
5
5
|
require 'frameit'
|
6
6
|
require 'commander/import'
|
7
|
-
require 'frameit/update_checker'
|
8
|
-
require 'frameit/dependency_checker'
|
9
7
|
|
10
8
|
HighLine.track_eof = false
|
11
9
|
|
12
10
|
|
13
11
|
# Commander
|
14
12
|
program :version, Frameit::VERSION
|
15
|
-
program :description, '
|
16
|
-
program :help, 'Author', 'Felix Krause <krausefx
|
17
|
-
program :help, 'Website', 'http://
|
13
|
+
program :description, 'Quickly put your screenshots into the right device frames'
|
14
|
+
program :help, 'Author', 'Felix Krause <frameit@krausefx.com>'
|
15
|
+
program :help, 'Website', 'http://fastlane.tools'
|
18
16
|
program :help, 'GitHub', 'https://github.com/krausefx/frameit'
|
19
17
|
program :help_formatter, :compact
|
20
18
|
|
21
19
|
global_option('--verbose') { $verbose = true }
|
22
20
|
|
23
21
|
|
24
|
-
Frameit::UpdateChecker.verify_latest_version
|
25
|
-
|
26
22
|
default_command :black
|
27
23
|
|
28
24
|
|
@@ -31,7 +27,6 @@ command :black do |c|
|
|
31
27
|
c.description = "Adds a black frame around all screenshots."
|
32
28
|
|
33
29
|
c.action do |args, options|
|
34
|
-
Frameit::DependencyChecker.check_dependencies
|
35
30
|
Frameit::Editor.new.run('.', Frameit::Editor::Color::BLACK)
|
36
31
|
end
|
37
32
|
end
|
@@ -41,7 +36,6 @@ command :silver do |c|
|
|
41
36
|
c.description = "Adds a silver frame around all screenshots."
|
42
37
|
|
43
38
|
c.action do |args, options|
|
44
|
-
Frameit::DependencyChecker.check_dependencies
|
45
39
|
Frameit::Editor.new.run('.', Frameit::Editor::Color::SILVER)
|
46
40
|
end
|
47
41
|
end
|
@@ -51,7 +45,6 @@ command :setup do |c|
|
|
51
45
|
c.description = "Helps you adding new frames."
|
52
46
|
|
53
47
|
c.action do |args, options|
|
54
|
-
Frameit::DependencyChecker.check_dependencies
|
55
48
|
Frameit::FrameConverter.new.run
|
56
49
|
end
|
57
50
|
end
|
data/lib/frameit.rb
CHANGED
@@ -4,11 +4,14 @@ require 'frameit/version'
|
|
4
4
|
require 'frameit/helper'
|
5
5
|
require 'frameit/frame_converter'
|
6
6
|
require 'frameit/editor'
|
7
|
+
require 'frameit/update_checker'
|
8
|
+
require 'frameit/dependency_checker'
|
7
9
|
require 'deliver'
|
8
10
|
|
9
11
|
# Third Party code
|
10
12
|
require 'colored'
|
11
13
|
|
12
14
|
module Frameit
|
13
|
-
|
15
|
+
Frameit::UpdateChecker.verify_latest_version
|
16
|
+
Frameit::DependencyChecker.check_dependencies
|
14
17
|
end
|
data/lib/frameit/editor.rb
CHANGED
@@ -29,6 +29,8 @@ module Frameit
|
|
29
29
|
|
30
30
|
Dir.glob("#{path}/**/*.{png,PNG}").each do |screenshot|
|
31
31
|
next if screenshot.include?"_framed.png"
|
32
|
+
next if screenshot.include?".itmsp/" # a package file, we don't want to modify that
|
33
|
+
|
32
34
|
begin
|
33
35
|
template_path = get_template(screenshot)
|
34
36
|
if template_path
|
@@ -47,11 +49,9 @@ module Frameit
|
|
47
49
|
|
48
50
|
output_path = screenshot.gsub('.png', '_framed.png').gsub('.PNG', '_framed.png')
|
49
51
|
result.write output_path
|
50
|
-
Helper.log.info "
|
52
|
+
Helper.log.info "Added frame: '#{File.expand_path(output_path)}'".green
|
51
53
|
end
|
52
|
-
rescue
|
53
|
-
raise ex # system interrupted exception (ctrl + C)
|
54
|
-
rescue Exception => ex
|
54
|
+
rescue => ex
|
55
55
|
Helper.log.error ex
|
56
56
|
end
|
57
57
|
end
|
data/lib/frameit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frameit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -98,14 +98,14 @@ dependencies:
|
|
98
98
|
name: deliver
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>'
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0.3'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '>'
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
@@ -192,9 +192,9 @@ dependencies:
|
|
192
192
|
- - '>='
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
description:
|
195
|
+
description: Quickly put your screenshots into the right device frames
|
196
196
|
email:
|
197
|
-
- krausefx
|
197
|
+
- frameit@krausefx.com
|
198
198
|
executables:
|
199
199
|
- frameit
|
200
200
|
extensions: []
|
@@ -210,7 +210,7 @@ files:
|
|
210
210
|
- lib/frameit/helper.rb
|
211
211
|
- lib/frameit/update_checker.rb
|
212
212
|
- lib/frameit/version.rb
|
213
|
-
homepage: http://
|
213
|
+
homepage: http://fastlane.tools
|
214
214
|
licenses:
|
215
215
|
- MIT
|
216
216
|
metadata: {}
|
@@ -233,6 +233,6 @@ rubyforge_project:
|
|
233
233
|
rubygems_version: 2.2.2
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
|
-
summary:
|
236
|
+
summary: Quickly put your screenshots into the right device frames
|
237
237
|
test_files: []
|
238
238
|
has_rdoc:
|