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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/inky/rails/version.rb +1 -1
  3. data/lib/inky.rb +3 -0
  4. data/spec/test_app/log/test.log +81 -5345
  5. metadata +3 -77
  6. data/spec/_cases_output/button/no_link.inky +0 -1
  7. data/spec/_cases_output/button/with_expand_class.inky +0 -4
  8. data/spec/_cases_output/button/with_extra_attr.inky +0 -3
  9. data/spec/_cases_output/button/with_image.inky +0 -3
  10. data/spec/_cases_output/button/with_link.inky +0 -3
  11. data/spec/_cases_output/button/with_link_and_extra_attr.inky +0 -3
  12. data/spec/_cases_output/button/with_tricky_class.inky +0 -22
  13. data/spec/_cases_output/callout/basic.inky +0 -1
  14. data/spec/_cases_output/callout/with_attributes.inky +0 -3
  15. data/spec/_cases_output/general/empty_attributes.inky +0 -6
  16. data/spec/_cases_output/general/multiple_root.inky +0 -2
  17. data/spec/_cases_output/general/no_tag.inky +0 -1
  18. data/spec/_cases_output/general/root_within_text.inky +0 -7
  19. data/spec/_cases_output/general/void_html_elements.inky +0 -6
  20. data/spec/_cases_output/grid/columns.inky +0 -2
  21. data/spec/_cases_output/grid/container.inky +0 -1
  22. data/spec/_cases_output/grid/container_with_align.inky +0 -1
  23. data/spec/_cases_output/grid/row.inky +0 -1
  24. data/spec/_cases_output/grid/row_with_columns.inky +0 -5
  25. data/spec/_cases_output/h_line/basic.inky +0 -1
  26. data/spec/_cases_output/h_line/h_line.inky +0 -2
  27. data/spec/_cases_output/h_line/multiple.inky +0 -3
  28. data/spec/_cases_output/h_line/with_attr.inky +0 -1
  29. data/spec/_cases_output/menu/item.inky +0 -1
  30. data/spec/_cases_output/menu/menu.inky +0 -2
  31. data/spec/_cases_output/menu/menu_with_align.inky +0 -2
  32. data/spec/_cases_output/menu/menu_with_items.inky +0 -5
  33. data/spec/_cases_output/spacer/basic.inky +0 -5
  34. data/spec/_cases_output/spacer/with_attr.inky +0 -6
  35. data/spec/_cases_output/spacer/with_size.inky +0 -5
  36. data/spec/_cases_output/spacer/with_size_lg.inky +0 -5
  37. data/spec/_cases_output/spacer/with_size_sm.inky +0 -5
  38. data/spec/_cases_output/spacer/with_size_sm_and_lg.inky +0 -5
  39. data/spec/_cases_output/spacer/with_sizes_and_attr.inky +0 -6
  40. data/spec/_cases_output/wrapper/basic.inky +0 -1
  41. data/spec/_cases_output/wrapper/with_align.inky +0 -1
  42. 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: 8b6292d929c4b925c5767a682f808c6f7f812925fe8769604e266459b19f0afb
4
- data.tar.gz: 46349b5e9e7901e374e99d51f9bfbcaa1d083550336917629ea434c452ce4c99
3
+ metadata.gz: 8deedcc1e292b8b0f12de420af6d3493444416da805707ce7dd1e992b3a5768b
4
+ data.tar.gz: 6859292e358b42009d900b468fbe2c6cb748631f021c9264c5ce441b2b69a8bb
5
5
  SHA512:
6
- metadata.gz: d7c9410bd6ff9a642ccd5c51d8435a077234334c6dcfe23054f72bd6dc330a2cd4d07cd02bd2084dc0f65bed18ba08d82b904d5b08ced59e23b0f553b3daf22e
7
- data.tar.gz: 1479e4b652d006b7a37092a05ee72d1177e0ab97ea514f0eb646acc25900da9799f887176cee1bef2f9527ebd13936d208ed5818bad3a44fee0b88da1ebbfcf5
6
+ metadata.gz: cc424f30789ff30c806b9c059350c35908f464ab0cf5afd4a8dfd6157a349b56714fa192aae54846a005527709f1bea71076c0caec557988290a1d16c5448bf3
7
+ data.tar.gz: 55880e2d1d5ea9ff137b0f851c52c4ba82e89e43697c63cdd6e77df05ef036df522c0715e662c25e5659589efb7e6c883428e8b93979d2f24fa659348a51ff56
@@ -1,6 +1,6 @@
1
1
  module Inky
2
2
  module Rails
3
- VERSION = '1.4.2.0'.freeze
3
+ VERSION = '1.4.2.1'.freeze
4
4
  end
5
5
  NODE_VERSION, GEM_VERSION = Rails::VERSION.rpartition('.').map(&:freeze)
6
6
  end
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