esvg 4.3.7 → 4.3.8

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: 719d2c2a44fb7213d877ec9b85d5c33def999104
4
- data.tar.gz: 28c26ce05e29cd77914df6cf0394e798cbe25735
3
+ metadata.gz: ac6815e1a336081185bac3ca8f40fb55a94142a8
4
+ data.tar.gz: 0252b86e68f08e5b98ee9492c25334f573cc78d2
5
5
  SHA512:
6
- metadata.gz: 1014beb93ef7779d5e79c3e57f1e5818b72eeef564a58e5668cefe8d9b8f64ee086a13e7078957a25faff2361dc34b1123fb6b5df621d545ba269d387d15fc04
7
- data.tar.gz: a8c905548b1b8fc7e9ee74808dda575bf821526963c690a066da51bcb186395db3d8330e18b1c4a29ec587d8caada275f5b5e5f0548dbc2d7349625110f1b2a7
6
+ metadata.gz: e5ee09002f415f058412c4f444b877938866280990eeaf6a0e4083602e6ef6a14844cd31ae826a8bac0dff15cb2dd113e1b5d244f10dba981ec8f0ee4490bfa9
7
+ data.tar.gz: 2399824e3faf6e0a2281a54e390cd53d86d0791c9bb1d0eebcb38b8751ea0f30dc9642c4f2ad5482d7be41e2ba1c7a309f4450f494157c2b33bf770c27ed4cb8
@@ -223,9 +223,10 @@ module Esvg
223
223
  svg.strip
224
224
  .gsub(att, '') # Remove unwanted attributes
225
225
  .sub(/.+?<svg/,'<svg') # Get rid of doctypes and comments
226
+ .gsub(/<!--(.+?)-->/m, '') # Remove XML comments
226
227
  .gsub(/style="([^"]*?)fill:(.+?);/m, 'fill="\2" style="\1') # Make fill a property instead of a style
227
228
  .gsub(/style="([^"]*?)fill-opacity:(.+?);/m, 'fill-opacity="\2" style="\1') # Move fill-opacity a property instead of a style
228
- .gsub(/\n/, '') # Remove endlines
229
+ .gsub(/\n/m, ' ') # Remove endlines
229
230
  .gsub(/\s{2,}/, ' ') # Remove whitespace
230
231
  .gsub(/>\s+</, '><') # Remove whitespace between tags
231
232
  .gsub(/\s?fill="(#0{3,6}|black|rgba?\(0,0,0\))"/,'') # Strip black fill
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "4.3.7"
2
+ VERSION = "4.3.8"
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.3.7
4
+ version: 4.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler