esvg 2.8.5 → 2.8.6

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: ffc67e85b1760278c56a7b6b78d6a02e55b4cdb7
4
- data.tar.gz: bfe33813bdf9b5ba4ea95d2cfee14ca7d2c37a30
3
+ metadata.gz: 7c5e7ce6a36acf545b3d05269d817bd64e9d73bc
4
+ data.tar.gz: aa6a8709daaea5c4a62c3abdb2902207ec35f24d
5
5
  SHA512:
6
- metadata.gz: 00b0b1c4ca6fba5ed9470be91a7284f8dd6502647e2a578a59669a97628e4f00d78aa208fd5e3abff6fe73a89eb9d72cc7f9a9eaedf46db429d5602dfb22ce12
7
- data.tar.gz: 186b009af34d16fc12b1a1aecb83da6b80d51fe52751ef884aa2aa99cb1e98f3f403c6109494a022b77003dfceca5a9dc77a88c35d436c57707927f69901fd21
6
+ metadata.gz: 812a5bb6f30cd98253253b25a33b22c027170cc1e107dc684f249634bb2294d466ff60570f59509a9bd03837a4d6243d58c3ce9620bdfe54a4aa421192858a42
7
+ data.tar.gz: 2565a6132628bd9ca60f6bb1e6013cce667f80095c264fd9e3ea64a6104bfab0dd4b57b57c24fca3e168b1d1b54e44885c22620ca863248bf973dcd27b3ffd42
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.8.6 (2016-01-20)
4
+ - Fix: Some regexes weren't specific enough and were interfering with icon names.
5
+
3
6
  ### 2.8.5 (2016-01-08)
4
7
  - Fix: Restored `svg_icon` helper to rails helpers.
5
8
 
data/lib/esvg/svg.rb CHANGED
@@ -361,7 +361,7 @@ module Esvg
361
361
  symbols << prep_svg(name, data[:content])
362
362
  end
363
363
 
364
- symbols = optimize(symbols.join).gsub(/class/,'id').gsub(/svg/,'symbol')
364
+ symbols = optimize(symbols.join).gsub(/class=/,'id=').gsub(/<svg/,'<symbol')
365
365
 
366
366
  %Q{<svg id="esvg-symbols" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:none">#{symbols}</svg>}
367
367
  end
data/lib/esvg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "2.8.5"
2
+ VERSION = "2.8.6"
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: 2.8.5
4
+ version: 2.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-09 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler