longbow 0.0.1 → 0.0.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 +4 -4
- data/lib/longbow/images.rb +4 -4
- data/lib/longbow/version.rb +1 -1
- data/longbow-0.0.1.gem +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06bc256b45d09059d7bea2b4551e3c894c5db712
|
|
4
|
+
data.tar.gz: 72415cba49a6453ad92a52d9e10e775f52685ac8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4296c4e10e5272f60c18b16fbebb410ef9a5eaa58a25df9822237b9c62e2de6b1cc20d8a61bb1b93c84038d093c562d63c34ffeae21bd496bf7b2e05cf415bb4
|
|
7
|
+
data.tar.gz: f9ab3af54820a70bd2249b25197af1d913009ab6e8948c1874eac77278da3905e40122ab3c0782572a3dd9dd60f1d7b788792c548f0a829342f0057687586538
|
data/lib/longbow/images.rb
CHANGED
|
@@ -37,12 +37,10 @@ module Longbow
|
|
|
37
37
|
# Make directory
|
|
38
38
|
img_dir = make_asset_directory directory, target
|
|
39
39
|
|
|
40
|
-
# Make image
|
|
41
|
-
image = MiniMagick::Image.open(img_path)
|
|
42
|
-
return false unless image
|
|
43
|
-
|
|
44
40
|
# Size for iPhone
|
|
45
41
|
if iPhone
|
|
42
|
+
image = MiniMagick::Image.open(img_path)
|
|
43
|
+
return false unless image
|
|
46
44
|
image.resize '120x120'
|
|
47
45
|
image.write img_dir + '/icon120x120.png'
|
|
48
46
|
image.resize '114x114'
|
|
@@ -59,6 +57,8 @@ module Longbow
|
|
|
59
57
|
end
|
|
60
58
|
|
|
61
59
|
if iPad
|
|
60
|
+
image = MiniMagick::Image.open(img_path)
|
|
61
|
+
return false unless image
|
|
62
62
|
image.resize '152x152'
|
|
63
63
|
image.write img_dir + '/icon152x152.png'
|
|
64
64
|
image.resize '144x144'
|
data/lib/longbow/version.rb
CHANGED
data/longbow-0.0.1.gem
CHANGED
|
Binary file
|