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: 226aaed859d567a2078906d51457b997520a6b0c
4
- data.tar.gz: 5d43fd137a3f6a923d37635717e665b0925b4625
3
+ metadata.gz: 4bf33f110d81fe3a1f4745b549962ebf658a0de2
4
+ data.tar.gz: 2d56c78738a331bc47cfcf74bc1bb685b0c04a01
5
5
  SHA512:
6
- metadata.gz: b3d61c6ebea949016605911279438658e377a26f90bfac5c67f3192e30876f0c53ec3825d08578955826ba3dec218c8eceaa096d96acdd4e5ef63421029fb6b4
7
- data.tar.gz: 18e926cc027d887676dcaa7ccbd64da5999fe57543552553276682dc2faa00abb58cfe49ae1eb9d1a76a0af0f6da70a5e341716d725904f319c203bb33697907
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] ||= File.join(app.root, app.settings[:source]) if options[:template_dir].nil?
13
- options[:output_dir] ||= File.join(app.root, app.settings[:build_dir]) if options[:output_dir].nil?
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!(options[:template_dir], options[:output_dir])
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
@@ -2,7 +2,7 @@ module Middleman
2
2
  module FaviconMaker
3
3
  MAJOR = 3
4
4
  MINOR = 5
5
- PATCH = 1
5
+ PATCH = 2
6
6
  BUILD = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -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("middleman-core", [">= 3.0.0"])
23
- gem.add_runtime_dependency("favicon_maker", ["~> 1.1"])
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.1
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: '1.1'
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: '1.1'
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: