esvg 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/esvg/svg.rb +2 -2
- data/lib/esvg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6df8f118f74c6a07e847ad3af6d6e254ebac1a5
|
4
|
+
data.tar.gz: 5ba5fe47e56750908bc40546f081bdca5fd2c974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be85aa23f362fcdc850d1e4abfa5c8c64165a5b853cf4fff2d8208caca5c8ae794c0d8f14bdbb255345123ac14be2af2fc3c5f731080fc9004bc1eda8d8f630
|
7
|
+
data.tar.gz: 7bcf746b645e883294fdab8746980b66de163cf5a54c4450f74b834e1935a9dc73f18eab2c99cfc67484b60606ab3e4aef889e025ba19986f91fc599b6258c34
|
data/CHANGELOG.md
CHANGED
data/lib/esvg/svg.rb
CHANGED
@@ -60,7 +60,7 @@ module Esvg
|
|
60
60
|
@mtime = last_modified(found)
|
61
61
|
|
62
62
|
found.each do |f|
|
63
|
-
@files[File.basename(f, ".*")] = read(f)
|
63
|
+
@files[dasherize(File.basename(f, ".*"))] = read(f)
|
64
64
|
end
|
65
65
|
|
66
66
|
if @files.empty? && config[:verbose]
|
@@ -230,7 +230,7 @@ if(typeof(module) != 'undefined') { module.exports = esvg }
|
|
230
230
|
end
|
231
231
|
|
232
232
|
def svg_icon(file, options={})
|
233
|
-
file = file.to_s
|
233
|
+
file = dasherize(file.to_s)
|
234
234
|
@cache[cache_name(file, options)] ||= begin
|
235
235
|
name = icon_name(file)
|
236
236
|
%Q{<svg class="#{config[:base_class]} #{name} #{options[:class] || ""}" #{dimensions(@files[file])}><use xlink:href="##{name}"/>#{title(options)}#{desc(options)}</svg>}
|
data/lib/esvg/version.rb
CHANGED