middleman-favicon-maker 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,7 +1,20 @@
1
1
  Copyright (c) 2011 Andreas Follmann
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
4
10
 
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
6
13
 
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  middleman-favicon-maker
2
- ============
2
+ =======================
3
3
  Generate favicon files in various sizes from a base image in your middleman project.
4
4
 
5
5
  This gem integrates [FaviconMaker](https://github.com/follmann/favicon_maker) effortless into your [Middleman](https://github.com/tdreyno/middleman) project.
@@ -9,20 +9,31 @@ This gem integrates [FaviconMaker](https://github.com/follmann/favicon_maker) ef
9
9
  gem install middleman-favicon-maker
10
10
 
11
11
  ### Using Bundler (recommended)
12
- ...
13
12
  gem "middleman-favicon-maker"
14
- ...
15
13
 
16
14
  ## How to integrate into a middleman project
17
- In your config.rb extend the configure :build block with:
15
+ 1. Put a file called favicon_base.png into your source folder (ideally with the dimensions of 114x114 pixels)
16
+ 2. In your config.rb extend the configure :build block with:
18
17
 
19
- configure :build do
20
- ...
21
- activate :favicon_maker
22
- ...
23
- end
18
+ configure :build do
19
+ ...
20
+ activate :favicon_maker
21
+ ...
22
+ end
24
23
 
25
- ### Customise integration
24
+ That results in the following files being created on middleman build:
25
+
26
+ build/apple-touch-icon-57x57-precomposed.png
27
+ build/apple-touch-icon-72x72-precomposed.png
28
+ build/apple-touch-icon-114x114-precomposed.png
29
+ build/apple-touch-icon-precomposed.png
30
+ build/apple-touch-icon.png
31
+ build/favicon.ico
32
+ build/favicon.png
33
+
34
+ **NOTE: The base image will not be copied to the build folder.**
35
+
36
+ ## Customise integration
26
37
  You can set the following options for favicon-maker:
27
38
 
28
39
  :favicon_root_dir # default: app.root
@@ -30,10 +41,12 @@ You can set the following options for favicon-maker:
30
41
  :favicon_output_dir # default: app.build_dir -> build/
31
42
  :favicon_base_image # default: "favicon_base.png"
32
43
  :favicon_versions # default: ::FaviconMaker::Generator::ICON_VERSIONS.keys
44
+ :favicon_custom_versions # default: {}
33
45
 
34
46
  e.g.
35
47
  set :favicon_input_dir, "favicons"
48
+ set :favicon_custom_versions, {:apple_extreme_retina => {:filename => "apple-touch-icon-228x228-precomposed.png", :dimensions => "228x228", :format => "png"}}
36
49
 
37
50
  ## Copyright
38
51
 
39
- Copyright (c) 2011 Andreas Follmann. See LICENSE for details.
52
+ © 2011 Andreas Follmann. See LICENSE for details.
@@ -10,7 +10,7 @@ module Middleman
10
10
  app.set :favicon_output_dir, app.build_dir
11
11
  app.set :favicon_base_image, "favicon_base.png"
12
12
  app.set :favicon_versions, ::FaviconMaker::Generator::ICON_VERSIONS.keys
13
-
13
+
14
14
  app.after_build do
15
15
  ::FaviconMaker::Generator.create_versions({
16
16
  :root_dir => app.settings.favicon_root_dir,
@@ -18,6 +18,7 @@ module Middleman
18
18
  :output_dir => app.settings.favicon_output_dir,
19
19
  :base_image => app.settings.favicon_base_image,
20
20
  :versions => app.settings.favicon_versions,
21
+ :custom_versions => app.settings.favicon_custom_versions,
21
22
  }) do |filepath|
22
23
  say_status :generated, filepath.gsub(app.root + "/", "")
23
24
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module FaviconMaker
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_runtime_dependency("favicon_maker", ["~>0.0.1"])
20
+ s.add_runtime_dependency("favicon_maker", ["~>0.0.5"])
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-favicon-maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,15 +13,15 @@ date: 2011-11-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: favicon_maker
16
- requirement: &70351258343740 !ruby/object:Gem::Requirement
16
+ requirement: &70296238954840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.1
21
+ version: 0.0.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70351258343740
24
+ version_requirements: *70296238954840
25
25
  description: Generate favicon files in various sizes from a base image in your middleman
26
26
  project
27
27
  email: