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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0047799fb5b851440daaefea58f77f3b43397fd2
4
- data.tar.gz: 817eef1a7c6a5b01638f9fffda64f880844008c4
3
+ metadata.gz: bdd17eda9ebc8d109239cf2172ce13406c06820a
4
+ data.tar.gz: 49e20768684dc519ef933d2451243150c8ab1c65
5
5
  SHA512:
6
- metadata.gz: cab60266e823cd47f8242d8766073e4671297ec935f7ce0465582539a7b4b71cffb3afdee513eea280129a607127e75b34036109439a53a75678486b31880db7
7
- data.tar.gz: d4404b931493c2ffb9b6f5a45e1c5cf9192f907544972e455cdf2efc86b74e2666dec3b008e3cd8c46deb49b3e0378e5c34645cea86424bbd7a035906b600b02
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", "~> 3.7"
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
@@ -2,7 +2,7 @@ module Middleman
2
2
  module FaviconMaker
3
3
  MAJOR = 4
4
4
  MINOR = 0
5
- PATCH = 3
5
+ PATCH = 4
6
6
  BUILD = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
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.3
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-02-19 00:00:00.000000000 Z
11
+ date: 2016-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core