esvg 2.9.1 → 2.9.2

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: 8043d7996452e9835cccff0963b343c979b3ba38
4
- data.tar.gz: 74c546775101bf3c91769f5f32a9d33b089803c3
3
+ metadata.gz: fcb20cbdb2766a9c94db529a3ccbdc7a0815b766
4
+ data.tar.gz: 79366cde7d7087e46293dde3e90b3f23b8595f96
5
5
  SHA512:
6
- metadata.gz: 7ceefb55b295f44f8e884896a3b1930e9ef3db4b346c32deffceb8106ed77c45a9b2bffe0b9996b2d5fecdedd20e0a6df8751d31edd4359b433275a5fa9b6942
7
- data.tar.gz: 98d15fa8f95672e5b0e4db06a869418b8bdc8c77f35d47b8118464ae863cec3908653251708779f912ec58fa27fc7c0c2ac6e3a68b70e5d70a749a2e07100e70
6
+ metadata.gz: aaa404d0ebb54899e4f4699ab7aae135d2171ee0ba99c86428164b0a843454df4d77adf575f1f82b23c49a605fd4bd7d207f35e551333feba7afd95af4ddfa85
7
+ data.tar.gz: 2e7ebad89d8d5cea1c7faef06eb6d28dde80b56d123cbd77cb015592f6bd5b5ae5cb3fd3840407ddbe2afd388e34999b7704fbb4d936da4e5725c29e799c3587
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.9.2 (2016-08-31)
4
+ - Fix: Attributes width and height are now properly converted to strings.
5
+
3
6
  ### 2.9.1 (2016-07-18)
4
7
  - New: `use` method is an alias for svg_icon
5
8
  - Fix: Esvg.new caches instances to be used by Rails helper methods
@@ -204,6 +204,7 @@ module Esvg
204
204
 
205
205
  def add_attribute(tag, attr, content=nil, append=false)
206
206
  return tag if content.nil?
207
+ content = content.to_s
207
208
  if tag.match(/#{attr}/)
208
209
  if append
209
210
  tag.sub(/#{attr}="(.+?)"/, attr+'="\1'+append+content+'"')
@@ -1,3 +1,3 @@
1
1
  module Esvg
2
- VERSION = "2.9.1"
2
+ VERSION = "2.9.2"
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.9.1
4
+ version: 2.9.2
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-07-18 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler