frameit 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9209d6d82a7676b5cbaee5f77e0031ffda2cc4b4
4
- data.tar.gz: 9b6ffab3b82c88b66f32ec7cd00ef22dfbf4c2cf
3
+ metadata.gz: dbac0e7593487359353d49f966022776dcf324df
4
+ data.tar.gz: f7374ba45fc4165ad9ff31cff19ad13e14e9f879
5
5
  SHA512:
6
- metadata.gz: d26dc836eaded3dfacc0e8979259eaaac052523be5804b0019dd76bb642c42169b9801bae6232b673eeb15369d23e3a0959fb918dabf87099a36ab2b3d6d686d
7
- data.tar.gz: 192dca599fe6a69388510c4cc2802e7bb0a2a604c349696ebbba605342c9ffb11c4672c5a9ea4564b7285ecae497eef92ba94ee03790ff59a92a209505769218
6
+ metadata.gz: a162b88e4572ca4d209463352b17bf318cb87592a5e22df3fb1515f728fdbaec6636f9fe113442c40d287b084939015fe6a42e05de83b3288ced3b84a31b1d35
7
+ data.tar.gz: 0d55fb4a6ddf4c9a3aaadd94057dd2b91c38977bd26512e085ccf4a9c917cd3dcc83949b5549f5e9a131c9534dc7cd6f7bbe697ffcb0b2a22fe4e9736e692d81
@@ -43,6 +43,8 @@ module Frameit
43
43
  result.write output_path
44
44
  Helper.log.info "Successfully framed screenshot at path '#{output_path}'".green
45
45
  end
46
+ rescue SystemExit, Interrupt => ex
47
+ raise ex # system interrupted exception (ctrl + C)
46
48
  rescue Exception => ex
47
49
  Helper.log.error ex
48
50
  end
@@ -91,7 +93,7 @@ module Frameit
91
93
  when size::IOS_40
92
94
  return 'iPhone_5s'
93
95
  when size::IOS_IPAD
94
- return 'iPad_Air'
96
+ return 'iPad_mini'
95
97
  end
96
98
  end
97
99
 
@@ -123,8 +125,8 @@ module Frameit
123
125
  }
124
126
  when size::IOS_IPAD
125
127
  return {
126
- offset: '+57+112',
127
- width: 765
128
+ offset: '+50+134',
129
+ width: 792
128
130
  }
129
131
  end
130
132
  when Orientation::LANDSCAPE
@@ -146,8 +148,8 @@ module Frameit
146
148
  }
147
149
  when size::IOS_IPAD
148
150
  return {
149
- offset: '+113+57',
150
- width: 1024
151
+ offset: '+133+50',
152
+ width: 1058
151
153
  }
152
154
  end
153
155
  end
@@ -24,7 +24,7 @@ module Frameit
24
24
  puts "----------------------------------------------------".green
25
25
  STDIN.gets
26
26
 
27
- while not frames_exist?
27
+ loop do
28
28
  system("mkdir -p '#{templates_path}' && open '#{templates_path}'")
29
29
  puts "----------------------------------------------------".green
30
30
  puts "Extract the downloaded files into the folder".green
@@ -36,6 +36,8 @@ module Frameit
36
36
 
37
37
  if not frames_exist?
38
38
  puts "Sorry, I can't find the PSD files. Make sure you unzipped them into '#{templates_path}'".red
39
+ else
40
+ break # everything is finished
39
41
  end
40
42
  end
41
43
 
@@ -1,3 +1,3 @@
1
1
  module Frameit
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
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-21 00:00:00.000000000 Z
11
+ date: 2014-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json