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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80613ecb52693e3f1540e8d538460138a96b0271
4
- data.tar.gz: a6c0fe63c64bd8f7ea4dedddefbf6ec47f07d544
3
+ metadata.gz: 740a5624db183fb489724df93de30fb797f129e6
4
+ data.tar.gz: 313e801368b139c1d5caffba2cd58f2cb5616fc3
5
5
  SHA512:
6
- metadata.gz: 13ce53f86132b512ab4fff84afcc87996c1ea086053d6e1a3e4c48e5431de76e4c1e0e0ff9a3fec5fe457398533329ce156e4ab5e1bfe9e63f1852dce063c108
7
- data.tar.gz: d49a75c05c53f09184d49db85f9e25a66b5352d69818f77bb5e7320338fddfea7b8c3ccab3e9340f877e8540ef01b172aa97268e78ba6080216e6e5b37d5da98
6
+ metadata.gz: 04235fff98a436b815afd0707ed83fde14e83639ee5560937caf2c870bdc7cb21f5a6390ab84e65a8cbab707920aa4c1d9e944b4a42eace9326f58422b8ed885
7
+ data.tar.gz: c93bb74bb8ecca79bb20f97bbbe8d9cff75987ffdc697f7e2177c79e1e701fe0987aa88dced05036ca80429e6ef400f856e8a3ec5bae8fc007627cfc90975107
@@ -38,7 +38,7 @@ CONFIG_RAILS = {
38
38
 
39
39
  CONFIG_JEKYLL = {
40
40
  source: "_svgs",
41
- build: "_site/javascripts",
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
@@ -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
- Jekyll.esvg = Esvg.seed_cache(site.config["esvg"] || {})
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|
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "4.4.0"
2
+ VERSION = "4.4.1"
3
3
  end
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2018-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler