frameit 0.1.1 → 0.1.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 +2 -1
- data/bin/frameit +10 -0
- data/lib/frameit/editor.rb +2 -1
- data/lib/frameit/frame_converter.rb +25 -28
- data/lib/frameit/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d254930af1c380d5765525d5c37c1d75c84cbb1
|
4
|
+
data.tar.gz: 7595ade14e406c4d2359f4b1997c7f83ece450c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 498772931aedc50f66e597956a0eee315a3d93f9b3c74530061de402f0a57fda7a0f98b1e60a0a6a192c6bed54d461dde513f61b3897cd61aa128b392a8f1804
|
7
|
+
data.tar.gz: 5eaf24c58946b66de6591604e60605c218502e140e7c502da225147a4891946e353086b8ab63d6a2dd9f7cc6972e6f4dc1ad8f4cff22e30ade21a6788985c4ae
|
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
<p align="center">
|
2
2
|
<a href="https://github.com/KrauseFx/deliver">Deliver</a> •
|
3
3
|
<a href="https://github.com/KrauseFx/snapshot">Snapshot</a> •
|
4
|
-
<b>FrameIt</b>
|
4
|
+
<b>FrameIt</b> •
|
5
|
+
<a href="https://github.com/KrauseFx/PEM">PEM</a>
|
5
6
|
</p>
|
6
7
|
-------
|
7
8
|
|
data/bin/frameit
CHANGED
@@ -46,6 +46,16 @@ command :silver do |c|
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
+
command :setup do |c|
|
50
|
+
c.syntax = 'frameit setup'
|
51
|
+
c.description = "Helps you adding new frames."
|
52
|
+
|
53
|
+
c.action do |args, options|
|
54
|
+
Frameit::DependencyChecker.check_dependencies
|
55
|
+
Frameit::FrameConverter.new.run
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
49
59
|
alias_command :white, :silver
|
50
60
|
|
51
61
|
def shared_run(c)
|
data/lib/frameit/editor.rb
CHANGED
@@ -14,37 +14,34 @@ module Frameit
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def setup_frames
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
puts "----------------------------------------------------".green
|
18
|
+
puts "Looks like you have no device templates installed".green
|
19
|
+
puts "The images can not be pre-installed due to licensing".green
|
20
|
+
puts "Press Enter to get started".green
|
21
|
+
puts "----------------------------------------------------".green
|
22
|
+
STDIN.gets
|
23
|
+
|
24
|
+
system("open '#{DOWNLOAD_URL}'")
|
25
|
+
puts "----------------------------------------------------".green
|
26
|
+
puts "Download the zip files for the following devices".green
|
27
|
+
puts "iPhone 6, iPhone 6 Plus, iPhone 5s and iPad mini 3".green
|
28
|
+
puts "You only need to download the devices you want to use".green
|
29
|
+
puts "Press Enter when you downloaded the zip files".green
|
30
|
+
puts "----------------------------------------------------".green
|
31
|
+
STDIN.gets
|
32
|
+
|
33
|
+
while not frames_exist?
|
34
|
+
system("mkdir -p '#{@templates_path}' && open '#{@templates_path}'")
|
26
35
|
puts "----------------------------------------------------".green
|
27
|
-
puts "
|
28
|
-
puts "
|
29
|
-
puts "You
|
30
|
-
puts "Press Enter when you
|
36
|
+
puts "Extract the downloaded files into the folder".green
|
37
|
+
puts "'#{@templates_path}', which should be open in your Finder".green
|
38
|
+
puts "You can just copy the whole content into it.".green
|
39
|
+
puts "Press Enter when you extracted the files into the given folder".green
|
31
40
|
puts "----------------------------------------------------".green
|
32
41
|
STDIN.gets
|
33
42
|
|
34
|
-
|
35
|
-
|
36
|
-
puts "----------------------------------------------------".green
|
37
|
-
puts "Extract the downloaded files into the folder".green
|
38
|
-
puts "'#{@templates_path}', which should be open in your Finder'".green
|
39
|
-
puts "You can just copy the whole content into it.'".green
|
40
|
-
puts "The structure doesn't matter.".green
|
41
|
-
puts "Press Enter when you downloaded the zip files".green
|
42
|
-
puts "----------------------------------------------------".green
|
43
|
-
STDIN.gets
|
44
|
-
|
45
|
-
if not frames_exist?
|
46
|
-
puts "Sorry, I can't find the PSD files. Make sure you unzipped them into '#{@templates_path}'".red
|
47
|
-
end
|
43
|
+
if not frames_exist?
|
44
|
+
puts "Sorry, I can't find the PSD files. Make sure you unzipped them into '#{@templates_path}'".red
|
48
45
|
end
|
49
46
|
end
|
50
47
|
|
@@ -74,4 +71,4 @@ module Frameit
|
|
74
71
|
end
|
75
72
|
end
|
76
73
|
end
|
77
|
-
end
|
74
|
+
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -192,8 +192,7 @@ dependencies:
|
|
192
192
|
- - '>='
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
description:
|
196
|
-
screenshot.
|
195
|
+
description: Want a device frame around your iPhone app screenshots? Do it in an instant!
|
197
196
|
email:
|
198
197
|
- krausefx@gmail.com
|
199
198
|
executables:
|