esvg 4.3.8 → 4.3.9

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: ac6815e1a336081185bac3ca8f40fb55a94142a8
4
- data.tar.gz: 0252b86e68f08e5b98ee9492c25334f573cc78d2
3
+ metadata.gz: 4c725ea2fad5a3ce5df37270bb5d49d85d58e012
4
+ data.tar.gz: 9a1311c39d423b886216d966e45521f1ac2bb592
5
5
  SHA512:
6
- metadata.gz: e5ee09002f415f058412c4f444b877938866280990eeaf6a0e4083602e6ef6a14844cd31ae826a8bac0dff15cb2dd113e1b5d244f10dba981ec8f0ee4490bfa9
7
- data.tar.gz: 2399824e3faf6e0a2281a54e390cd53d86d0791c9bb1d0eebcb38b8751ea0f30dc9642c4f2ad5482d7be41e2ba1c7a309f4450f494157c2b33bf770c27ed4cb8
6
+ metadata.gz: 248cd982eb3cbb1b16b68532be97fb62b6ec192a5ad69b854bfba5b40082f86682fcf59758616263782f3f8493698643d00ec4addba57f3630b5edf553de15ca
7
+ data.tar.gz: 593cc46f94f68f770019ba967f4d590c3b670054f5e1d8f7bae972592747d10fb74401a115ad6edcc96e4750d58ce530134b42d3d5244d2298f2176bfe49cb74
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 4.3.9 (2017-09-05)
4
+ - Fix: Esvg javascript now properly appends prefixes when generating use tags.
5
+
3
6
  ### 2.9.2 (2016-08-31)
4
7
  - Fix: Attributes width and height are now properly converted to strings.
5
8
 
@@ -240,7 +240,7 @@ module Esvg
240
240
  var prefix = parent.dataset.prefix
241
241
  var base = parent.dataset.symbolClass
242
242
 
243
- var svg = document.createRange().createContextualFragment( '<svg><use xlink:href="#'+id+'"/></svg>' ).firstChild;
243
+ var svg = document.createRange().createContextualFragment( '<svg><use xlink:href="#' + prefix + '-' + id + '"/></svg>' ).firstChild;
244
244
  svg.setAttribute( 'class', base + ' ' + prefix + '-' + id + ' ' + ( options.class || '' ).trim() )
245
245
  svg.setAttribute( 'viewBox', symbol.getAttribute( 'viewBox' ) )
246
246
 
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "4.3.8"
2
+ VERSION = "4.3.9"
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.8
4
+ version: 4.3.9
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-30 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.5.1
117
+ rubygems_version: 2.4.5.1
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Embed svgs in HTML or CSS