favicon_maker 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +58 -0
  2. data/favicon_maker.gemspec +1 -1
  3. data/lib/version.rb +1 -1
  4. metadata +5 -4
data/README.md ADDED
@@ -0,0 +1,58 @@
1
+ FaviconMaker
2
+ ============
3
+
4
+ FaviconMaker aims to ease the tedious process of creating multiple versions of your favicon in different sizes and formats.
5
+
6
+ The basic idea is to have one image file as source for all the different sizes and or formats (png/ico). If the input folder contains a precomposed file like a visually improved version of the 16x16 favicon.ico this file version will not be generated but the file optionally be copied to the output folder. The remaining versions will still be sourced from the input image defined.
7
+
8
+ ## Install
9
+ ### Standalone
10
+ gem install favicon_maker
11
+
12
+ ### Using Bundler (recommended)
13
+ ...
14
+ gem "favicon_maker"
15
+ ...
16
+
17
+ ## Integration
18
+ ### Middleman
19
+ In order to integrate the FaviconMaker effortless into your [Middleman](https://github.com/tdreyno/middleman) project use the following gem: [middleman-favicon-maker](https://github.com/follmann/middleman-favicon-maker)
20
+ ### Rails
21
+ Soon to come... Have a look on the basic usage for now.
22
+
23
+ ## Basic Usage
24
+ ### Simple
25
+ require "rubygems"
26
+ require "favicon_maker"
27
+
28
+ FaviconMaker::Generator.create_versions
29
+
30
+ Uses the following defaults:
31
+
32
+ options = {
33
+ :versions => [:apple_114, :apple_72, :apple_57, :apple_pre, :apple, :fav_png, :fav_ico],
34
+ :root_dir => File.dirname(__FILE__),
35
+ :input_dir => "favicons",
36
+ :base_image => "favicon_base.png",
37
+ :output_dir => "favicons_output",
38
+ :copy => false
39
+ }
40
+
41
+ ### Advanced
42
+ (attempted Rails integration, could be used in a Rake task or Capistrano recipe)
43
+
44
+ options = {
45
+ :versions => [:apple_114, :apple_57, :apple, :fav_png, :fav_ico],
46
+ :root_dir => Rails.root,
47
+ :input_dir => File.join(Rails.root, "app", "assets", "public"),
48
+ :base_image => "favico.png",
49
+ :output_dir => "public",
50
+ :copy => true
51
+ }
52
+ FaviconMaker::Generator.create_versions(options) do |filepath|
53
+ Rails.logger.info "Created favicon: #{filepath}"
54
+ end
55
+
56
+ ## Copyright
57
+
58
+ Copyright (c) 2011 Andreas Follmann. See LICENSE for details.
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Andreas Follmann"]
10
10
  #s.email = [""]
11
- #s.homepage = "https://github.com/tdreyno/middleman-smusher"
11
+ s.homepage = "https://github.com/follmann/favicon_maker"
12
12
  s.summary = %q{Create favicon files in various sizes from a base image}
13
13
  s.description = %q{Create favicon files in various sizes from a base image}
14
14
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FaviconMaker
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andreas Follmann
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-10-31 00:00:00 +01:00
17
+ date: 2011-11-01 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -40,11 +40,12 @@ extra_rdoc_files: []
40
40
 
41
41
  files:
42
42
  - .gitignore
43
+ - README.md
43
44
  - favicon_maker.gemspec
44
45
  - lib/favicon_maker.rb
45
46
  - lib/version.rb
46
47
  has_rdoc: true
47
- homepage:
48
+ homepage: https://github.com/follmann/favicon_maker
48
49
  licenses: []
49
50
 
50
51
  post_install_message: