longbow 0.0.5 → 0.0.6
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/longbow/images.rb +104 -4
- data/lib/longbow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 367d5c4ba4b392253a235796e8f2a7ddc70d1dc9
|
|
4
|
+
data.tar.gz: b93c026749f538b78ab5e1e00fcfdfc3613bfaeb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: daa01a1b53430feb4736710c6e733ba466378daca68f8b8bc9ece5fa5ab533fe823c340cd23006c4451711430e2829c54b7bed2913a602fc162ae79d1b7b6d38
|
|
7
|
+
data.tar.gz: 6a3439aa005b9b22857db96d6fedc27f5092705ea3ad0006b15522a4e9c0492e1ad5a6093bdd627dd8d21a10973eff14c673de74ac8e7c160d8b9972fa32c7bb
|
data/Gemfile.lock
CHANGED
data/lib/longbow/images.rb
CHANGED
|
@@ -98,13 +98,13 @@ module Longbow
|
|
|
98
98
|
# Make resize sizes
|
|
99
99
|
sizes = []
|
|
100
100
|
if key == 'launch_phone_p'
|
|
101
|
-
sizes = ['640x1136','640x960']
|
|
101
|
+
sizes = ['640x1136','640x960','320x480']
|
|
102
102
|
elsif key == 'launch_phone_l'
|
|
103
|
-
sizes = ['1136x640','960x640']
|
|
103
|
+
sizes = ['1136x640','960x640','480x320']
|
|
104
104
|
elsif key == 'launch_tablet_p'
|
|
105
|
-
sizes = ['1536x2048','768x1024']
|
|
105
|
+
sizes = ['1536x2048','768x1024','1536x2008','768x1004']
|
|
106
106
|
elsif key == 'launch_tablet_l'
|
|
107
|
-
sizes = ['2048x1536','1024x768']
|
|
107
|
+
sizes = ['2048x1536','1024x768','2048x1496','1024x748']
|
|
108
108
|
end
|
|
109
109
|
|
|
110
110
|
# Resize Images
|
|
@@ -203,6 +203,28 @@ module Longbow
|
|
|
203
203
|
"minimum-system-version" : "7.0",
|
|
204
204
|
"orientation" : "portrait",
|
|
205
205
|
"scale" : "2x"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"orientation" : "portrait",
|
|
209
|
+
"idiom" : "iphone",
|
|
210
|
+
"extent" : "full-screen",
|
|
211
|
+
"filename" : "launch_phone_p_320x480.png",
|
|
212
|
+
"scale" : "1x"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"orientation" : "portrait",
|
|
216
|
+
"idiom" : "iphone",
|
|
217
|
+
"extent" : "full-screen",
|
|
218
|
+
"filename" : "launch_phone_p_640x960.png",
|
|
219
|
+
"scale" : "2x"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"orientation" : "portrait",
|
|
223
|
+
"idiom" : "iphone",
|
|
224
|
+
"extent" : "full-screen",
|
|
225
|
+
"subtype" : "retina4",
|
|
226
|
+
"filename" : "launch_phone_p_640x1136.png",
|
|
227
|
+
"scale" : "2x"
|
|
206
228
|
}')
|
|
207
229
|
f.write ',' if phone_landscape || tablet_portrait || tablet_landscape
|
|
208
230
|
end
|
|
@@ -224,6 +246,28 @@ module Longbow
|
|
|
224
246
|
"minimum-system-version" : "7.0",
|
|
225
247
|
"orientation" : "landscape",
|
|
226
248
|
"scale" : "2x"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"orientation" : "landscape",
|
|
252
|
+
"idiom" : "iphone",
|
|
253
|
+
"extent" : "full-screen",
|
|
254
|
+
"filename" : "launch_phone_l_480x320.png",
|
|
255
|
+
"scale" : "1x"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"orientation" : "landscape",
|
|
259
|
+
"idiom" : "iphone",
|
|
260
|
+
"extent" : "full-screen",
|
|
261
|
+
"filename" : "launch_phone_l_960x640.png",
|
|
262
|
+
"scale" : "2x"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"orientation" : "landscape",
|
|
266
|
+
"idiom" : "iphone",
|
|
267
|
+
"extent" : "full-screen",
|
|
268
|
+
"subtype" : "retina4",
|
|
269
|
+
"filename" : "launch_phone_l_1136x640.png",
|
|
270
|
+
"scale" : "2x"
|
|
227
271
|
}')
|
|
228
272
|
f.write ',' if tablet_portrait || tablet_landscape
|
|
229
273
|
end
|
|
@@ -244,6 +288,34 @@ module Longbow
|
|
|
244
288
|
"filename" : "launch_tablet_p_1536x2048.png",
|
|
245
289
|
"minimum-system-version" : "7.0",
|
|
246
290
|
"scale" : "2x"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"orientation" : "portrait",
|
|
294
|
+
"idiom" : "ipad",
|
|
295
|
+
"extent" : "to-status-bar",
|
|
296
|
+
"scale" : "1x",
|
|
297
|
+
"filename" : "launch_tablet_p_768x1004.png"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"orientation" : "portrait",
|
|
301
|
+
"idiom" : "ipad",
|
|
302
|
+
"extent" : "full-screen",
|
|
303
|
+
"scale" : "1x",
|
|
304
|
+
"filename" : "launch_tablet_p_768x1024.png"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"orientation" : "portrait",
|
|
308
|
+
"idiom" : "ipad",
|
|
309
|
+
"extent" : "to-status-bar",
|
|
310
|
+
"scale" : "2x",
|
|
311
|
+
"filename" : "launch_tablet_p_1536x2008.png"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"orientation" : "portrait",
|
|
315
|
+
"idiom" : "ipad",
|
|
316
|
+
"extent" : "full-screen",
|
|
317
|
+
"scale" : "2x",
|
|
318
|
+
"filename" : "launch_tablet_p_1536x2048.png"
|
|
247
319
|
}')
|
|
248
320
|
f.write ',' if tablet_landscape
|
|
249
321
|
end
|
|
@@ -264,6 +336,34 @@ module Longbow
|
|
|
264
336
|
"filename" : "launch_tablet_l_2048x1536.png",
|
|
265
337
|
"minimum-system-version" : "7.0",
|
|
266
338
|
"scale" : "2x"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"orientation" : "landscape",
|
|
342
|
+
"idiom" : "ipad",
|
|
343
|
+
"extent" : "to-status-bar",
|
|
344
|
+
"scale" : "1x",
|
|
345
|
+
"filename" : "launch_tablet_l_1024x748.png"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"orientation" : "landscape",
|
|
349
|
+
"idiom" : "ipad",
|
|
350
|
+
"extent" : "full-screen",
|
|
351
|
+
"scale" : "1x",
|
|
352
|
+
"filename" : "launch_tablet_l_1024x768.png"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"orientation" : "landscape",
|
|
356
|
+
"idiom" : "ipad",
|
|
357
|
+
"extent" : "to-status-bar",
|
|
358
|
+
"scale" : "2x",
|
|
359
|
+
"filename" : "launch_tablet_l_2048x1496.png"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"orientation" : "landscape",
|
|
363
|
+
"idiom" : "ipad",
|
|
364
|
+
"extent" : "full-screen",
|
|
365
|
+
"scale" : "2x",
|
|
366
|
+
"filename" : "launch_tablet_l_2048x1536.png"
|
|
267
367
|
}')
|
|
268
368
|
end
|
|
269
369
|
|
data/lib/longbow/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: longbow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Intermark Interactive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
11
|
+
date: 2014-04-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|