airservice_build_tools 0.0.7 → 0.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b55ce81be58abf8b9b292675fcd31623808fc88e
|
4
|
+
data.tar.gz: 54f0c5585d381c00bb7131bba0526c3d13f7298d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6c02d25c657e1fb03f0fb6d78111eacf5238cae76ac144736aa15935536c636b40f14c9a61fc4546b76f6685a3543bb4488c217e1f3f2ae6cbb96aff46d2356
|
7
|
+
data.tar.gz: 7e6e75d854c3df540293d4b4e325ecff5a45238b72a9ed48eae2f7d016c347ed3fa14c59ae70606763415ed9643a122fc1027006e685e221fe4695449b964ae5
|
data/Gemfile.lock
CHANGED
@@ -39,7 +39,7 @@ module AirService
|
|
39
39
|
size[:scale].each do |scale|
|
40
40
|
scaled_size = size[:size] * scale
|
41
41
|
target_size = "#{scaled_size}x#{scaled_size}"
|
42
|
-
output_file = "#{size[:name]}@#{scale}x
|
42
|
+
output_file = "#{size[:name]}@#{scale}x.png"
|
43
43
|
args = %W[#{File.expand_path(source, '.')}
|
44
44
|
-resize #{target_size}
|
45
45
|
#{File.join(output_dir, output_file)}]
|
@@ -85,5 +85,10 @@ describe AirService::BuildTools::ObjC do
|
|
85
85
|
end.join(' ')
|
86
86
|
icons.should include('152x152', '80x80', '58x58')
|
87
87
|
end
|
88
|
+
it 'creates images with correct names for ipad' do
|
89
|
+
create_ios_icons(source: 'spec/fixtures/test_image.png', output_dir: '/tmp/icons/')
|
90
|
+
icons = Dir['/tmp/icons/*.png'].join(' ')
|
91
|
+
icons.should include('ipad@2x.png', 'ipad@1x.png')
|
92
|
+
end
|
88
93
|
end
|
89
94
|
end
|