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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9337ddc0f1d2be5dd563366a9ff4a947f1f76c6
4
- data.tar.gz: 1b6c7cad2ccbbecd8bf707733928699707269bcf
3
+ metadata.gz: 96b2e0ddf4d87560b0776b352e1cd3e228941def
4
+ data.tar.gz: 940528cbc2b3375a4b2ddacc0ca9efb7dd86ca1e
5
5
  SHA512:
6
- metadata.gz: 04bfdedcf1a147257fe0d777b62fc770031aa36c9b8a522ea12d8b262c10bf9f1b2ac70385db70945469dea2430c7f050dfa3b2fe10bb08fb39cb07a01a80ef2
7
- data.tar.gz: be83c2f854e7e47c6190279800995e231c473d376a899814b6a73f63f54286188d8673633ffafb4cf108fe79dee2b979c68aee482c31447e2d6c6f96f74ed3c6
6
+ metadata.gz: 01e1b4f3318fbcb4711104f59623260518dcf0d1164d659c6a1dd8a7815ae66cb8ba8da7a3ed03cae6728b9e77ac469dabcb88ab266c28137ba60d398094a8a2
7
+ data.tar.gz: eae6488c51e8a3112d585eb5f68822492820154ef06fee4a8a56e6c913847cbca21365eba038fd38d2c322d3f37d0f3d84b02083278308971b546942aaa81036
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # middleman-favicon-maker [![Build Status](https://secure.travis-ci.org/follmann/middleman-favicon-maker.png)](http://travis-ci.org/follmann/middleman-favicon-maker) [![Code Climate](https://codeclimate.com/github/follmann/middleman-favicon-maker.png)](https://codeclimate.com/github/follmann/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 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.
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
- "favicon_template.png" => [
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
- "favicon_template_hires.png" => [
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
- "favicon_template_lores.png" => [
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, {}, "Hash with template filename (key) and Array of Hashes with icon configs"
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] ||= source_path if options[:template_dir].nil?
13
- options[:output_dir] ||= build_path if options[:output_dir].nil?
12
+ options[:template_dir] ||= source_path
13
+ options[:output_dir] ||= build_path
14
14
  end
15
15
 
16
16
  def after_build(builder)
@@ -1,7 +1,7 @@
1
1
  module Middleman
2
2
  module FaviconMaker
3
3
  MAJOR = 3
4
- MINOR = 6
4
+ MINOR = 7
5
5
  PATCH = nil
6
6
  BUILD = nil
7
7
 
@@ -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.2.1'
23
+ gem.add_runtime_dependency 'favicon_maker', '~> 1.3'
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.6'
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-29 00:00:00.000000000 Z
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.2.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.2.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: