healthicons 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/healthicons/transform.rb +3 -2
- data/lib/healthicons/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e266c4885c939c09e183e23d218c09c6d88ef4a9a9ce3b5c7d5660fd5d4db38
|
4
|
+
data.tar.gz: 781a49c6f18352355f25871beb27d9336f373db2df7f34df8eacc8a8b60fd453
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee468d4c6efecce55c320d9d6147fdde0efb418b78cc0e630eaf1f6d9e0ddffb2b828391db8825ea81b3d445d5d4570099ae8f6963335462d3535f2601909d1
|
7
|
+
data.tar.gz: 57f2811c2469d3819bbed696dd5c46b4b45bb389169801f3e793295826dac423f0b5d7cac7fec85bcf5fcf9931a7d0a94a4700bf92d65402a9f5ea0cb40b3721
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [0.0.6] - 2021-11-15
|
8
|
+
|
9
|
+
- FIXED: When the icons SVG tags are parsed it should conver `<path />` to `<path></path>` to fix and issue with IE not recognising path as a self-closing tag.
|
10
|
+
## [0.0.5] - 2021-07-27
|
11
|
+
|
12
|
+
- CHANGED: Updated icons to include healthicons latest SVG changes and newly added icons
|
13
|
+
- CHANGED: Version bump since so many of the icon files changed
|
14
|
+
|
7
15
|
## [0.0.4] - 2021-07-9
|
8
16
|
|
9
17
|
- CHANGED: Removing adding varient attribute to SVG/XML when a variant is specified
|
@@ -33,7 +33,8 @@ module Healthicons
|
|
33
33
|
return '' if @svg.blank?
|
34
34
|
|
35
35
|
add_icon_options
|
36
|
-
|
36
|
+
# used to ensure icons with missing </path> have it added to ensure IE compatibiltiy
|
37
|
+
@svg&.to_html(&:no_empty_tags)
|
37
38
|
end
|
38
39
|
|
39
40
|
private
|
@@ -106,7 +107,7 @@ module Healthicons
|
|
106
107
|
# https://nokogiri.org/rdoc/Nokogiri/XML/Builder.html
|
107
108
|
# https://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/Node
|
108
109
|
def parse_icon_content(icon_contents)
|
109
|
-
Nokogiri::HTML::DocumentFragment.parse(icon_contents)
|
110
|
+
Nokogiri::HTML::DocumentFragment.parse(icon_contents) # allow it's child attributes/tags to be accessible
|
110
111
|
rescue
|
111
112
|
''
|
112
113
|
end
|
data/lib/healthicons/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: healthicons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Hicks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|