middleman-favicon-maker 3.6 → 3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/middleman-favicon-maker/extension.rb +3 -3
- data/lib/middleman-favicon-maker/version.rb +1 -1
- data/middleman-favicon-maker.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96b2e0ddf4d87560b0776b352e1cd3e228941def
|
4
|
+
data.tar.gz: 940528cbc2b3375a4b2ddacc0ca9efb7dd86ca1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01e1b4f3318fbcb4711104f59623260518dcf0d1164d659c6a1dd8a7815ae66cb8ba8da7a3ed03cae6728b9e77ac469dabcb88ab266c28137ba60d398094a8a2
|
7
|
+
data.tar.gz: eae6488c51e8a3112d585eb5f68822492820154ef06fee4a8a56e6c913847cbca21365eba038fd38d2c322d3f37d0f3d84b02083278308971b546942aaa81036
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# middleman-favicon-maker [![
|
1
|
+
# middleman-favicon-maker [![Code Climate](https://codeclimate.com/github/follmann/middleman-favicon-maker.png)](https://codeclimate.com/github/follmann/middleman-favicon-maker)
|
2
2
|
|
3
3
|
[FaviconMaker](https://github.com/follmann/favicon_maker) is a gem which generates favicon files in various sizes from a base image. This gem integrates FaviconMaker effortlessly into your [Middleman](https://github.com/middleman/middleman) project.
|
4
4
|
|
@@ -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
|
25
|
+
Create an image e.g. named `_favicon_template.png` and place it in your source directory. The leading underscore prevents it from being copied into the build directory. Ideally, this image's dimensions would be 152 x 152 or have multiple templates for different ranges (small, medium, big). In your config.rb, extend the `configure :build` block.
|
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.
|
@@ -31,7 +31,7 @@ This config assumes that a PNG file named favicon_template.png lives in the sour
|
|
31
31
|
configure :build do
|
32
32
|
...
|
33
33
|
activate :favicon_maker, :icons => {
|
34
|
-
"
|
34
|
+
"_favicon_template.png" => [
|
35
35
|
{ icon: "apple-touch-icon-152x152-precomposed.png" },
|
36
36
|
{ icon: "apple-touch-icon-114x114-precomposed.png" },
|
37
37
|
{ icon: "apple-touch-icon-72x72-precomposed.png" },
|
@@ -51,13 +51,13 @@ configure :build do
|
|
51
51
|
f.template_dir = File.join(root, 'source')
|
52
52
|
f.output_dir = File.join(root, 'build')
|
53
53
|
f.icons = {
|
54
|
-
"
|
54
|
+
"_favicon_template_hires.png" => [
|
55
55
|
{ icon: "apple-touch-icon-152x152-precomposed.png" },
|
56
56
|
{ icon: "apple-touch-icon-114x114-precomposed.png" },
|
57
57
|
{ icon: "apple-touch-icon-72x72-precomposed.png" },
|
58
58
|
{ icon: "mstile-144x144", format: :png },
|
59
59
|
],
|
60
|
-
"
|
60
|
+
"_favicon_template_lores.png" => [
|
61
61
|
{ icon: "favicon.png", size: "16x16" },
|
62
62
|
{ icon: "favicon.ico", size: "64x64,32x32,24x24,16x16" },
|
63
63
|
]
|
@@ -6,11 +6,11 @@ module Middleman
|
|
6
6
|
|
7
7
|
option :template_dir, nil, "Template dir for icon templates"
|
8
8
|
option :output_dir, nil, "Output dir for generated icons"
|
9
|
-
option :icons, {},
|
9
|
+
option :icons, {}, "Hash with template filename (key) and Array of Hashes with icon configs"
|
10
10
|
|
11
11
|
def after_configuration
|
12
|
-
options[:template_dir]
|
13
|
-
options[:output_dir]
|
12
|
+
options[:template_dir] ||= source_path
|
13
|
+
options[:output_dir] ||= build_path
|
14
14
|
end
|
15
15
|
|
16
16
|
def after_build(builder)
|
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.
|
4
|
+
version: '3.7'
|
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-05-
|
11
|
+
date: 2014-05-30 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.
|
33
|
+
version: '1.3'
|
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.
|
40
|
+
version: '1.3'
|
41
41
|
description: Generate favicon files in various sizes from a base image in your Middleman
|
42
42
|
project
|
43
43
|
email:
|