xhtml_report_generator 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/xhtml_report_generator/toc.js +5 -1
- data/lib/xhtml_report_generator/version.rb +1 -1
- metadata +11 -14
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d3bb7dd2a10d07719f2cac295e6710218fab5f2d
|
4
|
+
data.tar.gz: 0acaa09996b500ec388e63fd06dc9e9a5b1c7c74
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bdfcc8d627bec2b696efaac8ca4449a39a0c234d9a7ee44d16b02ca46267b05d15dffc653ef7d46ccdd97762d631a67eb0a3919db45bee83d4f5610a4ae038b5
|
7
|
+
data.tar.gz: e7c5cbcd6902fd9640eafc63fb41f7f216bd6f3ae3684039428cb9e96985b1f92f79dae02f659dff4ddb558774b8a465cec3983f759319c9c3277d731fb4cc68
|
@@ -1 +1,5 @@
|
|
1
|
-
$(document).ready(function(){$("td").each(function(b){b=$(this);null!==b.html().match(/^passed$/)?b.attr("style","background-color:#19D119;"):null!==b.html().match(/^failed$/)?b.attr("style","background-color:#FF4719;"):null!==b.html().match(/^check$/)&&b.attr("style","background-color:#FFFF00;")});$("[class=rtoconly],[class=bothtoc]").each(function(b){var a=$(this)
|
1
|
+
$(document).ready(function(){$("td").each(function(b){b=$(this);null!==b.html().match(/^passed$/)?b.attr("style","background-color:#19D119;"):null!==b.html().match(/^failed$/)?b.attr("style","background-color:#FF4719;"):null!==b.html().match(/^check$/)&&b.attr("style","background-color:#FFFF00;")});$("[class=rtoconly],[class=bothtoc]").each(function(b){var a=$(this),c=a.attr("class");a.attr("id",c+b);$("#rtoc").append("<a href='#"+c+b+"'>"+a.html()+"</a> <br />\n")});h3index=h2index=h1index=0;$("h1, h2, h3, a.h2, a.h1").each(function(b){var a=
|
2
|
+
$(this);void 0==a.attr("id")&&a.attr("id","title"+b);if("h1"==a.prop("tagName"))h1index+=1,h3index=h2index=0,a.prepend(h1index+" "),$("#ltoc").append("<br />\n"),lasth1="#"+a.attr("id"),lasth1cont=a.html();else if("h2"==a.prop("tagName"))h2index+=1,h3index=0,a.prepend(h1index+"."+h2index+" "),lasth2="#"+a.attr("id"),lasth2cont=a.html();else if("h3"==a.prop("tagName"))h3index+=1,a.prepend(h1index+"."+h2index+"."+h3index+" ");else{if("h1"==a.attr("class"))return a.attr("href",lasth1),a.html(lasth1cont),
|
3
|
+
0;if("h2"==a.attr("class"))return a.attr("href",lasth2),a.html(lasth2cont),0}if("rtoconly"==a.attr("class"))return 0;$("#ltoc").append("<div id='div_fold_"+h1index+"_"+h2index+"_"+h3index+"'><a id='a_fold_"+h1index+"_"+h2index+"_"+h3index+"' style='cursor:pointer'> - </a> <a id='link"+b+"' href='#"+a.attr("id")+"' >"+a.html()+"</a> <br /> </div>\n");return 0});$('a[id^="a_fold"]').click(function(){var b=$(this),a=b.attr("id").match(/(\d+)_(\d+)_(\d+)/);if(b.html().match(/-/))var c=" + ",
|
4
|
+
e=!1;else c=" - ",e=!0;b.html(c);if("0"==a[2]){var d=new RegExp("div_fold_"+a[1]+"_[1-9]\\d*_0");$("div").filter(function(){return this.id.match(d)}).each(function(){$(this).children('a[id^="a_fold"]').html(c);$(this).toggle(e)});d=new RegExp("div_fold_"+a[1]+"_\\d+_[1-9]\\d*");$("div").filter(function(){return this.id.match(d)}).each(function(){$(this).children('a[id^="a_fold"]').html(c);$(this).toggle(e)})}else"0"==a[3]&&(d=new RegExp("div_fold_"+a[1]+"_"+a[2]+"_[1-9]\\d*"),$("div").filter(function(){return this.id.match(d)}).each(function(){$(this).children('a[id^="a_fold"]').html(c);
|
5
|
+
$(this).toggle(e)}))})});
|
metadata
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xhtml_report_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Manuel Widmer
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-
|
11
|
+
date: 2015-12-24 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description:
|
13
|
+
description: "The generator can be used to create xhtml files. It comes with some
|
15
14
|
default utility functions.\n== Here is an example usage\n gen1 = XhtmlReportGenerator::Generator.new\n
|
16
15
|
\ gen1.create_layout(\"Title\")\n gen1.heading(\"h1\", {\"class\" => \"bothtoc\"})
|
17
16
|
{\"titel\"}\n gen1.heading(\"h2\") {\"subtitel\"}\n gen1.heading(\"h3\") {\"section\"}\n
|
@@ -26,39 +25,37 @@ executables: []
|
|
26
25
|
extensions: []
|
27
26
|
extra_rdoc_files: []
|
28
27
|
files:
|
28
|
+
- LICENSE
|
29
|
+
- README.md
|
30
|
+
- lib/xhtml_report_generator.rb
|
29
31
|
- lib/xhtml_report_generator/custom.rb
|
30
32
|
- lib/xhtml_report_generator/jquery.js
|
31
33
|
- lib/xhtml_report_generator/print_template.css
|
32
34
|
- lib/xhtml_report_generator/style_template.css
|
33
35
|
- lib/xhtml_report_generator/toc.js
|
34
36
|
- lib/xhtml_report_generator/version.rb
|
35
|
-
- lib/xhtml_report_generator.rb
|
36
|
-
- LICENSE
|
37
|
-
- README.md
|
38
37
|
homepage: https://rubygems.org/gems/xhtml_report_generator
|
39
38
|
licenses:
|
40
39
|
- MIT
|
40
|
+
metadata: {}
|
41
41
|
post_install_message:
|
42
42
|
rdoc_options: []
|
43
43
|
require_paths:
|
44
44
|
- lib
|
45
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
46
|
requirements:
|
48
|
-
- -
|
47
|
+
- - ">="
|
49
48
|
- !ruby/object:Gem::Version
|
50
49
|
version: 1.9.3
|
51
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
51
|
requirements:
|
54
|
-
- -
|
52
|
+
- - ">="
|
55
53
|
- !ruby/object:Gem::Version
|
56
54
|
version: '0'
|
57
55
|
requirements: []
|
58
56
|
rubyforge_project:
|
59
|
-
rubygems_version:
|
57
|
+
rubygems_version: 2.4.5.1
|
60
58
|
signing_key:
|
61
|
-
specification_version:
|
59
|
+
specification_version: 4
|
62
60
|
summary: A simple and quick xhtml report generator
|
63
61
|
test_files: []
|
64
|
-
has_rdoc:
|