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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3824e947983c38d4c4692effa4aa242b0bdbacb8190ddf4d52f064bb1a11e579
4
- data.tar.gz: ee4a9cd2b6f394d07d602ec5681fab2281c338eaab9f0c2c40d31ac8cf4ff42b
3
+ metadata.gz: 8e266c4885c939c09e183e23d218c09c6d88ef4a9a9ce3b5c7d5660fd5d4db38
4
+ data.tar.gz: 781a49c6f18352355f25871beb27d9336f373db2df7f34df8eacc8a8b60fd453
5
5
  SHA512:
6
- metadata.gz: aa25f7899af4557c444e0c536e13e958da1cfa0bd7f0489a166993ad8d316f572a69b8394607dee2e97c260938091d82c3f258b71c9a8f9d713492d940f81335
7
- data.tar.gz: 13a531903179111bbab838937057bef88d215ad4e13105475009f360fd06d28da1f7299089f3f80c75f6c918c98f2ea891a905225113841197d01e406274a9a4
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
- @svg&.to_xml
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Healthicons
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
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.5
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-07-27 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler