middleman-favicon-maker 3.5 → 3.5.1

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: 9fa52aace31c3229aadff949f52cba09aac233f8
4
- data.tar.gz: c04dc678fcf570072041acd4776778a48ff691f4
3
+ metadata.gz: 226aaed859d567a2078906d51457b997520a6b0c
4
+ data.tar.gz: 5d43fd137a3f6a923d37635717e665b0925b4625
5
5
  SHA512:
6
- metadata.gz: 4225513d005709c6e3854e18f1795790801dbe3ee80a61c5dc0fe8b9cff8e545e13c5b77e4b04a4ee45bbd177571a73ef66d967f498f7db82bffa25eccab3aeb
7
- data.tar.gz: fae09d7a7d7599a58724c4168127a6d03e71f172f9265dac5edbb3fa13c3f859f63b02c14e71e69f0d98674c0a341e3a15960836135a6c56fa0d616a70fc392f
6
+ metadata.gz: b3d61c6ebea949016605911279438658e377a26f90bfac5c67f3192e30876f0c53ec3825d08578955826ba3dec218c8eceaa096d96acdd4e5ef63421029fb6b4
7
+ data.tar.gz: 18e926cc027d887676dcaa7ccbd64da5999fe57543552553276682dc2faa00abb58cfe49ae1eb9d1a76a0af0f6da70a5e341716d725904f319c203bb33697907
data/README.md CHANGED
@@ -22,7 +22,7 @@ If you're using Middleman version 2.x, use version 0.0.6 of middleman-favicon-ma
22
22
 
23
23
  ## Integrating with Middleman
24
24
 
25
- Create a favicon_template.png image and place it in your source directory. Ideally, this image's dimensions would be 152 x 152. In config.rb, extend the `configure :build` block:
25
+ Create a favicon_template.png image and place it in your source directory. Ideally, this image's dimensions would be 152 x 152. In config.rb, extend the `configure :build` block. The template images are deleted from the build folder (Middleman copies them) after all icons have been generated.
26
26
 
27
27
  ### Simple config
28
28
  This config assumes that a PNG file named favicon_template.png lives in the source folder. The generated icons are stored in the build folder root.
@@ -42,7 +42,7 @@ end
42
42
  ```
43
43
 
44
44
  ### Advanced config
45
- Using all configuration options. The template_dir/output_dir require absolute paths. You can use multiple template files that suit the different resolutions better. ```format``` and ```size``` are optional and only required when the size of the icon and/or the file format is not encoded in the filename. Multiple resolutions in one file is only supported for the .ico format.
45
+ Using all configuration options. The `template_dir` and `output_dir` require absolute paths. You can use multiple template files that suit the different resolutions better. `format` and `size` are optional and only required when the size of the icon and/or the file format is not encoded in the filename. Multiple resolutions in one file is only supported for the .ico format.
46
46
 
47
47
  ``` ruby
48
48
  configure :build do
@@ -66,7 +66,32 @@ configure :build do
66
66
  ...
67
67
  end
68
68
  ```
69
- The template images are deleted from the build folder (Middleman copies them) after all icons have been generated.
69
+
70
+ ### List of icons you might be interested in
71
+ This is a moving target. Feel free to extend it and submit the change.
72
+
73
+ ``` ruby
74
+ [
75
+ { icon: "apple-touch-icon-152x152-precomposed.png" },
76
+ { icon: "apple-touch-icon-144x144-precomposed.png" },
77
+ { icon: "apple-touch-icon-120x120-precomposed.png" },
78
+ { icon: "apple-touch-icon-114x114-precomposed.png" },
79
+ { icon: "apple-touch-icon-76x76-precomposed.png" },
80
+ { icon: "apple-touch-icon-72x72-precomposed.png" },
81
+ { icon: "apple-touch-icon-60x60-precomposed.png" },
82
+ { icon: "apple-touch-icon-57x57-precomposed.png" },
83
+ { icon: "apple-touch-icon-precomposed.png", size: "57x57" },
84
+ { icon: "apple-touch-icon.png", size: "57x57" },
85
+ { icon: "favicon-196x196.png" },
86
+ { icon: "favicon-160x160.png" },
87
+ { icon: "favicon-96x96.png" },
88
+ { icon: "favicon-32x32.png" },
89
+ { icon: "favicon-16x16.png" },
90
+ { icon: "favicon.png", size: "16x16" },
91
+ { icon: "favicon.ico", size: "64x64,32x32,24x24,16x16" },
92
+ { icon: "mstile-144x144", format: "png" },
93
+ ]
94
+ ```
70
95
 
71
96
  ## Markup meta links
72
97
 
@@ -75,6 +100,7 @@ Specifying meta links is only necessary if you want to support non-iOS devices.
75
100
  ### HTML
76
101
 
77
102
  ``` html
103
+ <link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152-precomposed.png" />
78
104
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png" />
79
105
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png" />
80
106
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png" />
@@ -86,7 +112,7 @@ Specifying meta links is only necessary if you want to support non-iOS devices.
86
112
  ### HAML
87
113
 
88
114
  ``` haml
89
- %link{ rel: "apple-touch-icon", sizes: "152x152", href: "apple-touch-icon-144x144-precomposed.png" }
115
+ %link{ rel: "apple-touch-icon", sizes: "152x152", href: "apple-touch-icon-152x152-precomposed.png" }
90
116
  %link{ rel: "apple-touch-icon", sizes: "144x144", href: "apple-touch-icon-144x144-precomposed.png" }
91
117
  %link{ rel: "apple-touch-icon", sizes: "114x114", href: "apple-touch-icon-114x114-precomposed.png" }
92
118
  %link{ rel: "apple-touch-icon", sizes: "72x72", href: "apple-touch-icon-72x72-precomposed.png" }
@@ -94,6 +120,12 @@ Specifying meta links is only necessary if you want to support non-iOS devices.
94
120
  %link{ rel: "shortcut icon", href: "favicon.png" }
95
121
  %link{ rel: "icon", type: "image/ico", href: "favicon.ico" }
96
122
  ```
123
+ ## Contributing
124
+ 1. Fork it
125
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
126
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
127
+ 4. Push to the branch (`git push origin my-new-feature`)
128
+ 5. Create new Pull Request
97
129
 
98
130
  ## Copyright
99
131
 
@@ -37,10 +37,11 @@ module Middleman
37
37
  end
38
38
 
39
39
  template_files.uniq.each do |template_filepath|
40
- builder.remove_file template_filepath.gsub(options[:template_dir], options[:output_dir])
40
+ template_filepath.gsub!(options[:template_dir], options[:output_dir])
41
+ builder.remove_file(template_filepath) if File.exists?(template_filepath)
41
42
  end
42
43
 
43
44
  end
44
45
  end
45
46
  end
46
- end
47
+ end
@@ -2,7 +2,7 @@ module Middleman
2
2
  module FaviconMaker
3
3
  MAJOR = 3
4
4
  MINOR = 5
5
- PATCH = nil
5
+ PATCH = 1
6
6
  BUILD = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -20,5 +20,5 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  # Additional dependencies
22
22
  gem.add_runtime_dependency("middleman-core", [">= 3.0.0"])
23
- gem.add_runtime_dependency("favicon_maker", ["~> 1.0"])
23
+ gem.add_runtime_dependency("favicon_maker", ["~> 1.1"])
24
24
  end
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: '3.5'
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Follmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-12 00:00:00.000000000 Z
11
+ date: 2014-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1.1'
41
41
  description: Generate favicon files in various sizes from a base image in your Middleman
42
42
  project
43
43
  email: