middleman-favicon-maker 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/lib/middleman-favicon-maker.rb +37 -0
- data/lib/middleman_init.rb +1 -0
- data/lib/version.rb +5 -0
- data/middleman-favicon-maker.gemspec +21 -0
- metadata +63 -0
data/Gemfile
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
module Middleman
|
2
|
+
module Features
|
3
|
+
module FaviconMaker
|
4
|
+
class << self
|
5
|
+
def registered(app)
|
6
|
+
require "favicon_maker"
|
7
|
+
|
8
|
+
app.set :favicon_root_dir, app.root
|
9
|
+
app.set :favicon_input_dir, app.views
|
10
|
+
app.set :favicon_output_dir, app.build_dir
|
11
|
+
app.set :favicon_base_image, "favicon_base.png"
|
12
|
+
app.set :favicon_versions, ::FaviconMaker::Generator::ICON_VERSIONS.keys
|
13
|
+
|
14
|
+
app.after_build do
|
15
|
+
::FaviconMaker::Generator.create_versions({
|
16
|
+
:root_dir => app.settings.favicon_root_dir,
|
17
|
+
:input_dir => app.settings.favicon_input_dir,
|
18
|
+
:output_dir => app.settings.favicon_output_dir,
|
19
|
+
:base_image => app.settings.favicon_base_image,
|
20
|
+
:versions => app.settings.favicon_versions,
|
21
|
+
}) do |filepath|
|
22
|
+
say_status :created, filepath.gsub(app.root + "/", "")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# exclude favicon_base_image from being copied to build dir
|
27
|
+
app.build_reroute do |destination, request_path|
|
28
|
+
if request_path.include? app.settings.favicon_base_image
|
29
|
+
throw
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
alias :included :registered
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "middleman-favicon-maker"
|
data/lib/version.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "middleman-favicon-maker"
|
7
|
+
s.version = Middleman::FaviconMaker::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Andreas Follmann"]
|
10
|
+
#s.email = [""]
|
11
|
+
s.homepage = "https://github.com/follmann/middleman-favicon-maker"
|
12
|
+
s.summary = %q{Generate favicon files in various sizes from a base image in your middleman project}
|
13
|
+
s.description = %q{Generate favicon files in various sizes from a base image in your middleman project}
|
14
|
+
|
15
|
+
s.files = `git ls-files`.split("\n")
|
16
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
s.require_paths = ["lib"]
|
19
|
+
|
20
|
+
s.add_runtime_dependency("favicon_maker", ["~>0.0.1"])
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: middleman-favicon-maker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Andreas Follmann
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-31 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: favicon_maker
|
16
|
+
requirement: &70259513508560 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.0.1
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70259513508560
|
25
|
+
description: Generate favicon files in various sizes from a base image in your middleman
|
26
|
+
project
|
27
|
+
email:
|
28
|
+
executables: []
|
29
|
+
extensions: []
|
30
|
+
extra_rdoc_files: []
|
31
|
+
files:
|
32
|
+
- .gitignore
|
33
|
+
- Gemfile
|
34
|
+
- lib/middleman-favicon-maker.rb
|
35
|
+
- lib/middleman_init.rb
|
36
|
+
- lib/version.rb
|
37
|
+
- middleman-favicon-maker.gemspec
|
38
|
+
homepage: https://github.com/follmann/middleman-favicon-maker
|
39
|
+
licenses: []
|
40
|
+
post_install_message:
|
41
|
+
rdoc_options: []
|
42
|
+
require_paths:
|
43
|
+
- lib
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 1.8.10
|
59
|
+
signing_key:
|
60
|
+
specification_version: 3
|
61
|
+
summary: Generate favicon files in various sizes from a base image in your middleman
|
62
|
+
project
|
63
|
+
test_files: []
|