xhtml_report_generator 4.0.1 → 4.0.2

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
- SHA256:
3
- metadata.gz: 480f421a95dc8ed3ec41ed15744b3b210f2628f0b1724e99b2eb14d2daf9b513
4
- data.tar.gz: afe8c32fadd481c6674331443de1f0c969c47f53adeb383f22b98a309c95b7ac
2
+ SHA1:
3
+ metadata.gz: c047aa5a9465ad6b198ca581c98a823d61e12814
4
+ data.tar.gz: '0545085c2ee528d64eb3545d3e7c31238766085d'
5
5
  SHA512:
6
- metadata.gz: 8d176b5f21143a6f39cde2e00d5c43e51268b2f345333667a7d78fbdcd598d11ac432bb7f96c9f4fbd93437e7d8077998fba4c6a3668be47531a699078ffd154
7
- data.tar.gz: efe94e555cd7e01493b4e6773671cf70e5e4c60d24b2522f8f8361d7a1c4c90e8ef323f355e64325637509409c5c59c1c4770303f086d2dfe66bb5a974c080fa
6
+ metadata.gz: f407c1d00784018648248efe8136efbd22ef4ef51b54072f004b36cf51668a64b1c6e4f45a0bc39f0b5d792dacbf6128526f725ead1040a4d51b8e88eb12904d
7
+ data.tar.gz: ea0bc7f1431d331b4ad7c30ab3da77759119017a51e26591cc7bf57ff79820bbc0d4ddd53adbe26ca8db2dc160ca33fcc6d3894e622fc63043e309418d31f91c
@@ -5,7 +5,7 @@ require 'base64'
5
5
 
6
6
  module XhtmlReportGenerator
7
7
 
8
- VERSION = '4.0.1'
8
+ VERSION = '4.0.2'
9
9
 
10
10
  # This is the main generator class. It can be instanced with custom javascript, css, and ruby files to allow
11
11
  # generation of arbitrary reports.
@@ -100,6 +100,9 @@ module XhtmlReportGenerator
100
100
  # @param parent_element [REXML::Element] the element to which cdata should be added
101
101
  # @return [REXML::Element] parent_element
102
102
  def cdata(str, parent_element)
103
+ # sometimes depending on LC_CTYPE environemnt variable it can happen that js / css files are interpreted
104
+ # with wrong encoding
105
+ str = encoding_fixer(str)
103
106
  # somehow there is a problem with CDATA, any text added after will automatically go into the CDATA
104
107
  # so we have do add a dummy node after the CDATA and then add the text.
105
108
  parent_element.add_text("/*")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xhtml_report_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Widmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-26 00:00:00.000000000 Z
11
+ date: 2019-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  The generator can be used to create html or xhtml files. It comes with many utility functions.
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.7.6
59
+ rubygems_version: 2.6.13
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: A simple html or xhtml generator or logger to create human readable reports