inky-rb 1.4.2.0 → 1.4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inky/rails/version.rb +1 -1
- data/lib/inky.rb +3 -0
- data/spec/test_app/log/test.log +81 -5345
- metadata +3 -77
- data/spec/_cases_output/button/no_link.inky +0 -1
- data/spec/_cases_output/button/with_expand_class.inky +0 -4
- data/spec/_cases_output/button/with_extra_attr.inky +0 -3
- data/spec/_cases_output/button/with_image.inky +0 -3
- data/spec/_cases_output/button/with_link.inky +0 -3
- data/spec/_cases_output/button/with_link_and_extra_attr.inky +0 -3
- data/spec/_cases_output/button/with_tricky_class.inky +0 -22
- data/spec/_cases_output/callout/basic.inky +0 -1
- data/spec/_cases_output/callout/with_attributes.inky +0 -3
- data/spec/_cases_output/general/empty_attributes.inky +0 -6
- data/spec/_cases_output/general/multiple_root.inky +0 -2
- data/spec/_cases_output/general/no_tag.inky +0 -1
- data/spec/_cases_output/general/root_within_text.inky +0 -7
- data/spec/_cases_output/general/void_html_elements.inky +0 -6
- data/spec/_cases_output/grid/columns.inky +0 -2
- data/spec/_cases_output/grid/container.inky +0 -1
- data/spec/_cases_output/grid/container_with_align.inky +0 -1
- data/spec/_cases_output/grid/row.inky +0 -1
- data/spec/_cases_output/grid/row_with_columns.inky +0 -5
- data/spec/_cases_output/h_line/basic.inky +0 -1
- data/spec/_cases_output/h_line/h_line.inky +0 -2
- data/spec/_cases_output/h_line/multiple.inky +0 -3
- data/spec/_cases_output/h_line/with_attr.inky +0 -1
- data/spec/_cases_output/menu/item.inky +0 -1
- data/spec/_cases_output/menu/menu.inky +0 -2
- data/spec/_cases_output/menu/menu_with_align.inky +0 -2
- data/spec/_cases_output/menu/menu_with_items.inky +0 -5
- data/spec/_cases_output/spacer/basic.inky +0 -5
- data/spec/_cases_output/spacer/with_attr.inky +0 -6
- data/spec/_cases_output/spacer/with_size.inky +0 -5
- data/spec/_cases_output/spacer/with_size_lg.inky +0 -5
- data/spec/_cases_output/spacer/with_size_sm.inky +0 -5
- data/spec/_cases_output/spacer/with_size_sm_and_lg.inky +0 -5
- data/spec/_cases_output/spacer/with_sizes_and_attr.inky +0 -6
- data/spec/_cases_output/wrapper/basic.inky +0 -1
- data/spec/_cases_output/wrapper/with_align.inky +0 -1
- data/spec/_cases_output/wrapper/with_attributes.inky +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8deedcc1e292b8b0f12de420af6d3493444416da805707ce7dd1e992b3a5768b
|
4
|
+
data.tar.gz: 6859292e358b42009d900b468fbe2c6cb748631f021c9264c5ce441b2b69a8bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc424f30789ff30c806b9c059350c35908f464ab0cf5afd4a8dfd6157a349b56714fa192aae54846a005527709f1bea71076c0caec557988290a1d16c5448bf3
|
7
|
+
data.tar.gz: 55880e2d1d5ea9ff137b0f851c52c4ba82e89e43697c63cdd6e77df05ef036df522c0715e662c25e5659589efb7e6c883428e8b93979d2f24fa659348a51ff56
|
data/lib/inky/rails/version.rb
CHANGED
data/lib/inky.rb
CHANGED
@@ -32,6 +32,9 @@ module Inky
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def release_the_kraken(html_string)
|
35
|
+
# Force conversion to string. (required for Rails 7.1+)
|
36
|
+
html_string = html_string.to_s
|
37
|
+
|
35
38
|
if html_string.encoding.name == "ASCII-8BIT"
|
36
39
|
html_string.force_encoding('utf-8') # transform_doc barfs if encoding is ASCII-8bit
|
37
40
|
end
|