middleman-favicon-maker 3.5.1 → 3.5.2
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4bf33f110d81fe3a1f4745b549962ebf658a0de2
|
|
4
|
+
data.tar.gz: 2d56c78738a331bc47cfcf74bc1bb685b0c04a01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0243fbbefeb99fcbba5ba6e880dc1761ffd518e5833e59683258356f85b06ebdbd29328b47ce331fbe1b3dacaa6c91512f1c97eecb077df498b9d049658abb6c
|
|
7
|
+
data.tar.gz: 238a7ac5b25db83abd41d74daf2a2ad96813ef3bd24beb30f0c80bce81f18282e365c63a61cb4ce5b906239f4c645c1805d2b471e4125dac29ca891100dca2f1
|
|
@@ -9,8 +9,8 @@ module Middleman
|
|
|
9
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 if options[:template_dir].nil?
|
|
13
|
+
options[:output_dir] ||= build_path if options[:output_dir].nil?
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def after_build(builder)
|
|
@@ -37,11 +37,21 @@ module Middleman
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
template_files.uniq.each do |template_filepath|
|
|
40
|
-
template_filepath.gsub!(
|
|
40
|
+
template_filepath.gsub!(source_path, '')
|
|
41
|
+
template_filepath = File.join(options[:output_dir], template_filepath)
|
|
41
42
|
builder.remove_file(template_filepath) if File.exists?(template_filepath)
|
|
42
43
|
end
|
|
43
44
|
|
|
44
45
|
end
|
|
46
|
+
|
|
47
|
+
private
|
|
48
|
+
def source_path
|
|
49
|
+
File.join(app.root, app.settings[:source])
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def build_path
|
|
53
|
+
File.join(app.root, app.settings[:build_dir])
|
|
54
|
+
end
|
|
45
55
|
end
|
|
46
56
|
end
|
|
47
57
|
end
|
|
@@ -19,6 +19,6 @@ Gem::Specification.new do |gem|
|
|
|
19
19
|
gem.require_paths = ["lib"]
|
|
20
20
|
|
|
21
21
|
# Additional dependencies
|
|
22
|
-
gem.add_runtime_dependency
|
|
23
|
-
gem.add_runtime_dependency
|
|
22
|
+
gem.add_runtime_dependency 'middleman-core', '>= 3.0.0'
|
|
23
|
+
gem.add_runtime_dependency 'favicon_maker', '~> 1.1.1'
|
|
24
24
|
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: 3.5.
|
|
4
|
+
version: 3.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andreas Follmann
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ~>
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 1.1.1
|
|
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:
|
|
40
|
+
version: 1.1.1
|
|
41
41
|
description: Generate favicon files in various sizes from a base image in your Middleman
|
|
42
42
|
project
|
|
43
43
|
email:
|