esvg 2.2.2 → 2.2.3

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: 4e374a737c4b033c612705eb0b8c8e628a83b0a3
4
- data.tar.gz: 04e8337a412464567a16bd202e55ee0561da86c1
3
+ metadata.gz: e6df8f118f74c6a07e847ad3af6d6e254ebac1a5
4
+ data.tar.gz: 5ba5fe47e56750908bc40546f081bdca5fd2c974
5
5
  SHA512:
6
- metadata.gz: a305f622033ffe748433efc2d6044f0fe3a5681ff28a522d3b6feaf89e4c02dab340ad91b1182f89ee7c5a92a1622dae100dc261d2378e8e998f12792f343c7f
7
- data.tar.gz: 887a7287d5f100813b667805a6f8ae2beb1c8e604c7957bb71067488527918ef81c576f143684f12e798d2e09082578d508d4db43f7f74e2e447f8014d880f5f
6
+ metadata.gz: 4be85aa23f362fcdc850d1e4abfa5c8c64165a5b853cf4fff2d8208caca5c8ae794c0d8f14bdbb255345123ac14be2af2fc3c5f731080fc9004bc1eda8d8f630
7
+ data.tar.gz: 7bcf746b645e883294fdab8746980b66de163cf5a54c4450f74b834e1935a9dc73f18eab2c99cfc67484b60606ab3e4aef889e025ba19986f91fc599b6258c34
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.2.3 (2015-10-02)
4
+ - Fix: Dasherize input when embedding icons from the ruby helper.
5
+
3
6
  ### 2.2.2 (2015-10-02)
4
7
  - Fix: Improved lookup of last-modified file.
5
8
 
@@ -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>}
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esvg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis