frameit 0.1.1 → 0.1.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: 570e49d5ab0ccb339538663cbb0a0ad85634b991
4
- data.tar.gz: 173bb51470b15b18141be235029af8461fc2ede5
3
+ metadata.gz: 8d254930af1c380d5765525d5c37c1d75c84cbb1
4
+ data.tar.gz: 7595ade14e406c4d2359f4b1997c7f83ece450c6
5
5
  SHA512:
6
- metadata.gz: 30056f9f42009e6c5df30793f054c7e05b9ff7f73b438bf774e549edcfe8d1aef6693079bea7bfece0771faa4f7abf2f607a7a27a768f5ed20b24a358ecdbaf0
7
- data.tar.gz: 2b16a6ec78d496fee6e87c96309cf8e9d71520ab39cd2c5b07c5f7d3ddfd8082787bf939671566e8e5c3fb493f098ae9379a07272438d0d4559f4cfc6c9c84e2
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> &bull;
3
3
  <a href="https://github.com/KrauseFx/snapshot">Snapshot</a> &bull;
4
- <b>FrameIt</b>
4
+ <b>FrameIt</b> &bull;
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)
@@ -14,7 +14,8 @@ module Frameit
14
14
 
15
15
 
16
16
  def initialize
17
- FrameConverter.new.run
17
+ converter = FrameConverter.new
18
+ converter.run unless converter.frames_exist?
18
19
  end
19
20
 
20
21
  def run(path, color = Color::BLACK)
@@ -14,37 +14,34 @@ module Frameit
14
14
  end
15
15
 
16
16
  def setup_frames
17
- unless frames_exist?
18
- puts "----------------------------------------------------".green
19
- puts "Looks like you have no device templates installed".green
20
- puts "The images can not be pre-installed due to licensing".green
21
- puts "Press Enter to get started".green
22
- puts "----------------------------------------------------".green
23
- STDIN.gets
24
-
25
- system("open '#{DOWNLOAD_URL}'")
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 "Download the zip files for the following devices".green
28
- puts "iPhone 6, iPhone 6 Plus, iPhone 5s and iPad Air".green
29
- puts "You only need to download the devices you want to use".green
30
- puts "Press Enter when you downloaded the zip files".green
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
- while not frames_exist?
35
- system("mkdir -p '#{@templates_path}' && open '#{@templates_path}'")
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
@@ -1,3 +1,3 @@
1
1
  module Frameit
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-17 00:00:00.000000000 Z
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: Take the pain out of using Photoshop, just to add a device around your
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: