jekyll-diagrams 0.2.4 → 0.2.5

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: 2955b25fc33e384a65fe84c5c0e2e92b32751960
4
- data.tar.gz: 892896bf05ea41e37b18c2e00ddaf42351c0424a
3
+ metadata.gz: 5256cb817227b9150124feaa2ef887e91f3ab257
4
+ data.tar.gz: fbdc4f5c4e461d39352ac03f376aa09ceb67adbd
5
5
  SHA512:
6
- metadata.gz: 4cda4b61128a179001ac42a74a7312a028d0c92bf6d43055bccf94bb9b0f615192d96f0a61bedb1e5ada6524781a44a4f63161a7d5d92c49f83cc15b418b96f0
7
- data.tar.gz: 513af7af577cf7566de3f7b89d8220e0c0202a14e26e911750aaabef2651bbaa1a72d2d98a29652c16a12c089db069de92ab6b9ebeb377ce6d1385ecf1232bc0
6
+ metadata.gz: 4cb291fa127444bd51b5bfd2746d512ad024a080637c85925c331fdf563f9844ed4bdf2928cb3c2272bfa71febdb658bebdb6cb57dcd110425d6e74b9b5cce5f
7
+ data.tar.gz: 82582e4fe9a99b9066e7cc00c4907c328a5555c486c4639fdb6acd362db0754d9b02b96eced430aac72c108a70542a3c3b18c932f2c874bdb0db03352f2a1898
@@ -59,14 +59,14 @@ module Jekyll
59
59
 
60
60
  svg.force_encoding 'UTF-8'
61
61
 
62
- strip_metainfo(svg)
62
+ svg = strip_metainfo(svg)
63
63
  wrap_div(svg)
64
64
  end
65
65
 
66
66
  private
67
67
 
68
68
  def strip_metainfo(svg)
69
- svg.sub(/([^\n]*\n){6}/, '')
69
+ svg.sub(/(?:.*\n){6}/, '')
70
70
  .sub(%[xmlns="http://www.w3.org/2000/svg"], '')
71
71
  .sub(%[xmlns:xlink="http://www.w3.org/1999/xlink"], '')
72
72
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Diagrams
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-diagrams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - farkasity