middleman-favicon-maker 4.0.3 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/middleman-favicon-maker/extension.rb +13 -0
- data/lib/middleman-favicon-maker/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: bdd17eda9ebc8d109239cf2172ce13406c06820a
|
4
|
+
data.tar.gz: 49e20768684dc519ef933d2451243150c8ab1c65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f54f65fcef504219386f85c7c457193a577c2fa120485d8ca8b9e8fd544c206e0449ba5cc2ea0bc488af89a0e6c4367ebe273f32835cbd440fbd9946789e46d
|
7
|
+
data.tar.gz: 4fba82f60b3b28acaeb9c30ad49d8ac0e7bc0013eace1fdf774e0f4ff2113c89cf60c53ab5a53b46a8ebae93cceb1154f39ff505857383cd0bb72a9535542caf
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ brew install imagemagick
|
|
17
17
|
### Using Bundler
|
18
18
|
|
19
19
|
``` ruby
|
20
|
-
gem "middleman-favicon-maker", "~>
|
20
|
+
gem "middleman-favicon-maker", "~> 4.0"
|
21
21
|
```
|
22
22
|
|
23
23
|
If you're using Middleman version 2.x, use version 0.0.6 of middleman-favicon-maker.
|
@@ -73,6 +73,7 @@ This is a moving target. Feel free to extend it and submit the change.
|
|
73
73
|
|
74
74
|
``` ruby
|
75
75
|
[
|
76
|
+
{ icon: "apple-touch-icon-180x180-precomposed.png" }, # Same as apple-touch-icon-57x57.png, for iPhone 6 Plus with @3× display
|
76
77
|
{ icon: "apple-touch-icon-152x152-precomposed.png" }, # Same as apple-touch-icon-57x57.png, for retina iPad with iOS7.
|
77
78
|
{ icon: "apple-touch-icon-144x144-precomposed.png" }, # Same as apple-touch-icon-57x57.png, for retina iPad with iOS6 or prior.
|
78
79
|
{ icon: "apple-touch-icon-120x120-precomposed.png" }, # Same as apple-touch-icon-57x57.png, for retina iPhone with iOS7.
|
@@ -105,6 +106,7 @@ Specifying meta links is only necessary if you want to support non-iOS devices.
|
|
105
106
|
### HTML
|
106
107
|
|
107
108
|
``` html
|
109
|
+
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="apple-touch-icon-180x180-precomposed.png" />
|
108
110
|
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152-precomposed.png" />
|
109
111
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png" />
|
110
112
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png" />
|
@@ -117,6 +119,7 @@ Specifying meta links is only necessary if you want to support non-iOS devices.
|
|
117
119
|
### HAML
|
118
120
|
|
119
121
|
``` haml
|
122
|
+
%link{ rel: "apple-touch-icon", sizes: "180x180", href: "apple-touch-icon-180x180-precomposed.png" }
|
120
123
|
%link{ rel: "apple-touch-icon", sizes: "152x152", href: "apple-touch-icon-152x152-precomposed.png" }
|
121
124
|
%link{ rel: "apple-touch-icon", sizes: "144x144", href: "apple-touch-icon-144x144-precomposed.png" }
|
122
125
|
%link{ rel: "apple-touch-icon", sizes: "114x114", href: "apple-touch-icon-114x114-precomposed.png" }
|
@@ -45,6 +45,19 @@ module Middleman
|
|
45
45
|
|
46
46
|
end
|
47
47
|
|
48
|
+
def manipulate_resource_list(resources)
|
49
|
+
options[:icons].each do|src, items|
|
50
|
+
resources += items.map do|item|
|
51
|
+
::Middleman::Sitemap::Resource.new(
|
52
|
+
app.sitemap,
|
53
|
+
item[:icon],
|
54
|
+
File.join(options[:template_dir], src)
|
55
|
+
)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
resources
|
59
|
+
end
|
60
|
+
|
48
61
|
private
|
49
62
|
|
50
63
|
def source_path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-favicon-maker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Follmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|