esvg 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/esvg.rb +6 -1
- data/lib/esvg/jekyll_hooks.rb +6 -1
- data/lib/esvg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 740a5624db183fb489724df93de30fb797f129e6
|
4
|
+
data.tar.gz: 313e801368b139c1d5caffba2cd58f2cb5616fc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04235fff98a436b815afd0707ed83fde14e83639ee5560937caf2c870bdc7cb21f5a6390ab84e65a8cbab707920aa4c1d9e944b4a42eace9326f58422b8ed885
|
7
|
+
data.tar.gz: c93bb74bb8ecca79bb20f97bbbe8d9cff75987ffdc697f7e2177c79e1e701fe0987aa88dced05036ca80429e6ef400f856e8a3ec5bae8fc007627cfc90975107
|
data/lib/esvg.rb
CHANGED
@@ -38,7 +38,7 @@ CONFIG_RAILS = {
|
|
38
38
|
|
39
39
|
CONFIG_JEKYLL = {
|
40
40
|
source: "_svgs",
|
41
|
-
build: "
|
41
|
+
build: "javascripts",
|
42
42
|
core: false
|
43
43
|
}
|
44
44
|
|
@@ -156,6 +156,11 @@ module Esvg
|
|
156
156
|
|
157
157
|
config.merge!(options)
|
158
158
|
|
159
|
+
if defined? Jekyll
|
160
|
+
config[:build] = File.join(config[:destination], config[:build])
|
161
|
+
config[:source] = File.join(config[:source_dir], config[:source])
|
162
|
+
end
|
163
|
+
|
159
164
|
config[:filename] = File.basename(config[:filename], '.*')
|
160
165
|
|
161
166
|
config[:pwd] = File.expand_path Dir.pwd
|
data/lib/esvg/jekyll_hooks.rb
CHANGED
@@ -7,7 +7,12 @@ end
|
|
7
7
|
|
8
8
|
Jekyll::Hooks.register :site, :post_read do |site|
|
9
9
|
site.exclude.push '.esvg-cache'
|
10
|
-
|
10
|
+
config = {
|
11
|
+
source_dir: site.config['source'],
|
12
|
+
destination: site.config['destination']
|
13
|
+
}.merge site.config["esvg"] || {}
|
14
|
+
|
15
|
+
Jekyll.esvg = Esvg.seed_cache(config)
|
11
16
|
end
|
12
17
|
|
13
18
|
Jekyll::Hooks.register :site, :post_write do |site|
|
data/lib/esvg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esvg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|