belletrist 1.1.3 → 1.1.4

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
  SHA256:
3
- metadata.gz: 3f66e1ee02f68531a8c0eacd51b230e39603ae2c9533cf5d206a7290bc4cba4c
4
- data.tar.gz: aee1eda279971f4fcc74359b19f806a799af1ffe9abc3ac0d8619afbb12ba04b
3
+ metadata.gz: 409e60beb1bbf4e59762c8ae7954c5aa82c34c2ab3875bc40889aea42ac499c8
4
+ data.tar.gz: 3762c51f6d169f46bf00565348fc5f05c52cd6efaf2b1ebf1ffa12223101bf78
5
5
  SHA512:
6
- metadata.gz: 43619f6bf38d9786dc178e26aace145745b2771c0c41225b77de473ad1120eaee6df46fc71ff4250be4cbaa2fdd21e54e6118f9d353840e438b94743b46b0888
7
- data.tar.gz: 2bbe6f6e824fdb92fe10524eedc199594f5c57979320e3c432858f703a47cb3842b0713d4e4c26cf253fa695ac1c6dc0b92545eb5a5e9f9a7f153777f82e5d4b
6
+ metadata.gz: 0cb8f3e5a94cce664c6a9c8c670df6c6aaedd0613afea1072cfd500dc614414b70d55bab67967858df7962dd08e3f2054e35c940a2060a24e8669a100978d408
7
+ data.tar.gz: 1d6c94c4db97251d03433d414bd23047bf79846273ff03d0f6e99e0cc64c540c7128d659f35e71d81177e42c6309d1d781dc0b76114d561b96e39c6a2d3e2900
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
  This file contains general, high level explanations of the differences between versions. Please check the commmit
3
3
  history for further details.
4
4
 
5
+ ## 1.1.4
6
+ * Fixed sanitizer failing on non-string values, by converting everything to a string beforehand.
7
+
5
8
  ## 1.1.3
6
9
  * Added `model` argument to the `component` method of `HTML::Element`. This allows easier access to the root object
7
10
  for purposes of getting values sent into the subclass, for component usage.
@@ -53,15 +53,15 @@ module Belletrist::HTML
53
53
  end
54
54
 
55
55
  private def s_key(key)
56
- key.gsub(/\W/, '')
56
+ key.to_s.gsub(/\W/, '')
57
57
  end
58
58
 
59
59
  private def s_quoted(value)
60
- value.gsub(/"/, '"')
60
+ value.to_s.gsub(/"/, '"')
61
61
  end
62
62
 
63
63
  private def s_txt(text)
64
- text.gsub(ESCAPE_HTML_PATTERN, ESCAPE_HTML)
64
+ text.to_s.gsub(ESCAPE_HTML_PATTERN, ESCAPE_HTML)
65
65
  end
66
66
 
67
67
  def to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Belletrist
4
- VERSION = '1.1.3'
4
+ VERSION = '1.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: belletrist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juniper