added coverage

This commit is contained in:
Hendrik Schneider 2019-10-19 22:19:13 +02:00
parent 596569aa64
commit fd1c8d570e
50 changed files with 5442 additions and 6 deletions

4
.gitignore vendored
View file

@ -1 +1,3 @@
*.gem *.gem
coverage/
spec/

View file

@ -1,5 +1,5 @@
task :run_unit_test do task :run_unit_test do
require_relative "test/test_all.rb" require_relative "spec_helper"
end end
task :default => 'run_unit_test' task :default => 'run_unit_test'

7
coverage/.resultset.json Normal file
View file

@ -0,0 +1,7 @@
{
"RSpec": {
"coverage": {
},
"timestamp": 1571516114
}
}

View file

View file

@ -0,0 +1,799 @@
/* -----------------------------------------------------------------------
Blueprint CSS Framework 0.9
http://blueprintcss.org
* Copyright (c) 2007-Present. See LICENSE for more info.
* See README for instructions on how to use Blueprint.
* For credits and origins, see AUTHORS.
* This is a compressed file. See the sources in the 'src' directory.
----------------------------------------------------------------------- */
/* reset.css */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
body {line-height:1.5;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
table, td, th {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
a img {border:none;}
/* typography.css */
html {font-size:100.01%;}
body {font-size:82%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
h2 {font-size:2em;margin-bottom:0.75em;}
h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
h6 {font-size:1em;font-weight:bold;}
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
p {margin:0 0 1.5em;}
p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
p img.right {float:right;margin:1.5em 0 1.5em 1.5em;}
a:focus, a:hover {color:#000;}
a {color:#009;text-decoration:underline;}
blockquote {margin:1.5em;color:#666;font-style:italic;}
strong {font-weight:bold;}
em, dfn {font-style:italic;}
dfn {font-weight:bold;}
sup, sub {line-height:0;}
abbr, acronym {border-bottom:1px dotted #666;}
address {margin:0 0 1.5em;font-style:italic;}
del {color:#666;}
pre {margin:1.5em 0;white-space:pre;}
pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
li ul, li ol {margin:0;}
ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;}
ul {list-style-type:disc;}
ol {list-style-type:decimal;}
dl {margin:0 0 1.5em 0;}
dl dt {font-weight:bold;}
dd {margin-left:1.5em;}
table {margin-bottom:1.4em;width:100%;}
th {font-weight:bold;}
thead th {background:#c3d9ff;}
th, td, caption {padding:4px 10px 4px 5px;}
tr.even td {background:#efefef;}
tfoot {font-style:italic;}
caption {background:#eee;}
.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
.hide {display:none;}
.quiet {color:#666;}
.loud {color:#000;}
.highlight {background:#ff0;}
.added {background:#060;color:#fff;}
.removed {background:#900;color:#fff;}
.first {margin-left:0;padding-left:0;}
.last {margin-right:0;padding-right:0;}
.top {margin-top:0;padding-top:0;}
.bottom {margin-bottom:0;padding-bottom:0;}
/* forms.css */
label {font-weight:bold;}
fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
legend {font-weight:bold;font-size:1.2em;}
input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;}
input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;}
input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
input.text, input.title {width:300px;padding:5px;}
input.title {font-size:1.5em;}
textarea {width:390px;height:250px;padding:5px;}
input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;}
form.inline {line-height:3;}
form.inline p {margin-bottom:0;}
.error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;}
.error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;}
.notice {background:#FFF6BF;color:#514721;border-color:#FFD324;}
.success {background:#E6EFC2;color:#264409;border-color:#C6D880;}
.error a {color:#8a1f11;}
.notice a {color:#514721;}
.success a {color:#264409;}
.box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;}
hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;}
hr.space {background:#fff;color:#fff;visibility:hidden;}
.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
.clearfix, .container {display:block;}
.clear {clear:both;}
/*
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/
pre code {
}
pre .comment,
pre .template_comment,
pre .diff .header,
pre .javadoc {
color: #998;
font-style: italic
}
pre .keyword,
pre .css .rule .keyword,
pre .winutils,
pre .javascript .title,
pre .lisp .title {
color: #000;
font-weight: bold
}
pre .number,
pre .hexcolor {
color: #458
}
pre .string,
pre .tag .value,
pre .phpdoc,
pre .tex .formula {
color: #d14
}
pre .subst {
color: #712;
}
pre .constant,
pre .title,
pre .id {
color: #900;
font-weight: bold
}
pre .javascript .title,
pre .lisp .title,
pre .subst {
font-weight: normal
}
pre .class .title,
pre .haskell .label,
pre .tex .command {
color: #458;
font-weight: bold
}
pre .tag,
pre .tag .title,
pre .rules .property,
pre .django .tag .keyword {
color: #000080;
font-weight: normal
}
pre .attribute,
pre .variable,
pre .instancevar,
pre .lisp .body {
color: #008080
}
pre .regexp {
color: #009926
}
pre .class {
color: #458;
font-weight: bold
}
pre .symbol,
pre .ruby .symbol .string,
pre .ruby .symbol .keyword,
pre .ruby .symbol .keymethods,
pre .lisp .keyword,
pre .tex .special,
pre .input_number {
color: #990073
}
pre .builtin,
pre .built_in,
pre .lisp .title {
color: #0086b3
}
pre .preprocessor,
pre .pi,
pre .doctype,
pre .shebang,
pre .cdata {
color: #999;
font-weight: bold
}
pre .deletion {
background: #fdd
}
pre .addition {
background: #dfd
}
pre .diff .change {
background: #0086b3
}
pre .chunk {
color: #aaa
}
pre .tex .formula {
opacity: 0.5;
}
/*
* jQuery UI CSS Framework @VERSION
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*/
/* Layout helpers
----------------------------------*/
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-helper-clearfix { display: inline-block; }
/* required comment for clearfix to work in Opera \*/
* html .ui-helper-clearfix { height:1%; }
.ui-helper-clearfix { display:block; }
/* end clearfix */
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*
* jQuery UI CSS Framework @VERSION
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
*/
/* Component containers
----------------------------------*/
.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
.ui-widget .ui-widget { font-size: 1em; }
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
.ui-widget-content a { color: #222222; }
.ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
.ui-widget-header a { color: #222222; }
/* Interaction states
----------------------------------*/
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; }
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; }
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
.ui-widget :active { outline: none; }
/* Interaction Cues
----------------------------------*/
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); }
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); }
/* positioning */
.ui-icon-carat-1-n { background-position: 0 0; }
.ui-icon-carat-1-ne { background-position: -16px 0; }
.ui-icon-carat-1-e { background-position: -32px 0; }
.ui-icon-carat-1-se { background-position: -48px 0; }
.ui-icon-carat-1-s { background-position: -64px 0; }
.ui-icon-carat-1-sw { background-position: -80px 0; }
.ui-icon-carat-1-w { background-position: -96px 0; }
.ui-icon-carat-1-nw { background-position: -112px 0; }
.ui-icon-carat-2-n-s { background-position: -128px 0; }
.ui-icon-carat-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -64px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -64px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-off { background-position: -96px -144px; }
.ui-icon-radio-on { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-start { background-position: -80px -160px; }
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
/* Misc visuals
----------------------------------*/
/* Corner radius */
.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; }
.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
/* Overlays */
.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}
/*
User Style:
Change the following styles to modify the appearance of ColorBox. They are
ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:#000;}
#colorbox{}
#cboxTopLeft{width:14px; height:14px; background:url(colorbox/controls.png) no-repeat 0 0;}
#cboxTopCenter{height:14px; background:url(colorbox/border.png) repeat-x top left;}
#cboxTopRight{width:14px; height:14px; background:url(colorbox/controls.png) no-repeat -36px 0;}
#cboxBottomLeft{width:14px; height:43px; background:url(colorbox/controls.png) no-repeat 0 -32px;}
#cboxBottomCenter{height:43px; background:url(colorbox/border.png) repeat-x bottom left;}
#cboxBottomRight{width:14px; height:43px; background:url(colorbox/controls.png) no-repeat -36px -32px;}
#cboxMiddleLeft{width:14px; background:url(colorbox/controls.png) repeat-y -175px 0;}
#cboxMiddleRight{width:14px; background:url(colorbox/controls.png) repeat-y -211px 0;}
#cboxContent{background:#fff; overflow:visible;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
#cboxLoadedContent{margin-bottom:5px;}
#cboxLoadingOverlay{background:url(colorbox/loading_background.png) no-repeat center center;}
#cboxLoadingGraphic{background:url(colorbox/loading.gif) no-repeat center center;}
#cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
#cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(colorbox/controls.png) no-repeat 0px 0px; width:23px; height:23px; text-indent:-9999px;}
#cboxPrevious{left:0px; background-position: -51px -25px;}
#cboxPrevious:hover{background-position:-51px 0px;}
#cboxNext{left:27px; background-position:-75px -25px;}
#cboxNext:hover{background-position:-75px 0px;}
#cboxClose{right:0; background-position:-100px -25px;}
#cboxClose:hover{background-position:-100px 0px;}
.cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;}
.cboxSlideshow_on #cboxSlideshow:hover{background-position:-150px 0px;}
.cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
.cboxSlideshow_off #cboxSlideshow:hover{background-position:-125px 0px;}
#loading {
position: fixed;
left: 40%;
top: 50%; }
a {
color: #333333;
text-decoration: none; }
a:hover {
color: black;
text-decoration: underline; }
body {
font-family: "Lucida Grande", Helvetica, "Helvetica Neue", Arial, sans-serif;
padding: 12px;
background-color: #333333; }
h1, h2, h3, h4 {
color: #1c2324;
margin: 0;
padding: 0;
margin-bottom: 12px; }
table {
width: 100%; }
#content {
clear: left;
background-color: white;
border: 2px solid #dddddd;
border-top: 8px solid #dddddd;
padding: 18px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-topright: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-top-right-radius: 5px; }
.dataTables_filter, .dataTables_info {
padding: 2px 6px; }
abbr.timeago {
text-decoration: none;
border: none;
font-weight: bold; }
.timestamp {
float: right;
color: #dddddd; }
.group_tabs {
list-style: none;
float: left;
margin: 0;
padding: 0; }
.group_tabs li {
display: inline;
float: left; }
.group_tabs li a {
font-family: Helvetica, Arial, sans-serif;
display: block;
float: left;
text-decoration: none;
padding: 4px 8px;
background-color: #aaaaaa;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#dddddd), to(#aaaaaa));
background: -moz-linear-gradient(#dddddd, #aaaaaa);
background: linear-gradient(#dddddd, #aaaaaa);
text-shadow: #e5e5e5 1px 1px 0px;
border-bottom: none;
color: #333333;
font-weight: bold;
margin-right: 8px;
border-top: 1px solid #efefef;
-webkit-border-top-left-radius: 2px;
-webkit-border-top-right-radius: 2px;
-moz-border-radius-topleft: 2px;
-moz-border-radius-topright: 2px;
border-top-left-radius: 2px;
border-top-right-radius: 2px; }
.group_tabs li a:hover {
background-color: #cccccc;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#eeeeee), to(#aaaaaa));
background: -moz-linear-gradient(#eeeeee, #aaaaaa);
background: linear-gradient(#eeeeee, #aaaaaa); }
.group_tabs li a:active {
padding-top: 5px;
padding-bottom: 3px; }
.group_tabs li.active a {
color: black;
text-shadow: white 1px 1px 0px;
background-color: #dddddd;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(white), to(#dddddd));
background: -moz-linear-gradient(white, #dddddd);
background: linear-gradient(white, #dddddd); }
.file_list {
margin-bottom: 18px; }
a.src_link {
background: url("./magnify.png") no-repeat left 50%;
padding-left: 18px; }
tr, td {
margin: 0;
padding: 0; }
th {
white-space: nowrap; }
th.ui-state-default {
cursor: pointer; }
th span.ui-icon {
float: left; }
td {
padding: 4px 8px; }
td.strong {
font-weight: bold; }
.source_table h3, .source_table h4 {
padding: 0;
margin: 0;
margin-bottom: 4px; }
.source_table .header {
padding: 10px; }
.source_table pre {
margin: 0;
padding: 0;
white-space: normal;
color: black;
font-family: "Monaco", "Inconsolata", "Consolas", monospace; }
.source_table code {
color: black;
font-family: "Monaco", "Inconsolata", "Consolas", monospace; }
.source_table pre {
background-color: #333333; }
.source_table pre ol {
margin: 0px;
padding: 0px;
margin-left: 45px;
font-size: 12px;
color: white; }
.source_table pre li {
margin: 0px;
padding: 2px 6px;
border-left: 5px solid white; }
.source_table pre li code {
white-space: pre;
white-space: pre-wrap; }
.source_table pre .hits {
float: right;
margin-left: 10px;
padding: 2px 4px;
background-color: #444444;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#222222), to(#666666));
background: -moz-linear-gradient(#222222, #666666);
background: linear-gradient(#222222, #666666);
color: white;
font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
font-size: 10px;
font-weight: bold;
text-align: center;
border-radius: 6px; }
#footer {
color: #dddddd;
font-size: 12px;
font-weight: bold;
margin-top: 12px;
text-align: right; }
#footer a {
color: #eeeeee;
text-decoration: underline; }
#footer a:hover {
color: white;
text-decoration: none; }
.green {
color: #009900; }
.red {
color: #990000; }
.yellow {
color: #ddaa00; }
.source_table .covered {
border-color: #009900; }
.source_table .missed {
border-color: #990000; }
.source_table .never {
border-color: black; }
.source_table .skipped {
border-color: #ffcc00; }
.source_table .covered:nth-child(odd) {
background-color: #cdf2cd; }
.source_table .covered:nth-child(even) {
background-color: #dbf2db; }
.source_table .missed:nth-child(odd) {
background-color: #f7c0c0; }
.source_table .missed:nth-child(even) {
background-color: #f7cfcf; }
.source_table .never:nth-child(odd) {
background-color: #efefef; }
.source_table .never:nth-child(even) {
background-color: #f4f4f4; }
.source_table .skipped:nth-child(odd) {
background-color: #fbf0c0; }
.source_table .skipped:nth-child(even) {
background-color: #fbffcf; }

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,009 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,009 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,009 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

72
coverage/index.html Normal file
View file

@ -0,0 +1,72 @@
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Code coverage for Jekyll-analytics</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src='./assets/0.10.2/application.js' type='text/javascript'></script>
<link href='./assets/0.10.2/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" type="image/png" href="./assets/0.10.2/favicon_green.png" />
<link rel="icon" type="image/png" href="./assets/0.10.2/favicon.png" />
</head>
<body>
<div id="loading">
<img src="./assets/0.10.2/loading.gif" alt="loading"/>
</div>
<div id="wrapper" style="display:none;">
<div class="timestamp">Generated <abbr class="timeago" title="2019-10-19T22:15:14+02:00">2019-10-19T22:15:14+02:00</abbr></div>
<ul class="group_tabs"></ul>
<div id="content">
<div class="file_list_container" id="AllFiles">
<h2>
<span class="group_name">All Files</span>
(<span class="covered_percent"><span class="green">100.0%</span></span>
covered at
<span class="covered_strength">
<span class="red">
0.0
</span>
</span> hits/line)
</h2>
<a name="AllFiles"></a>
<div>
<b>0</b> files in total.
<b>0.0</b> relevant lines.
<span class="green"><b>0.0</b> lines covered</span> and
<span class="red"><b>0.0</b> lines missed </span>
</div>
<table class="file_list">
<thead>
<tr>
<th>File</th>
<th>% covered</th>
<th>Lines</th>
<th>Relevant Lines</th>
<th>Lines covered</th>
<th>Lines missed</th>
<th>Avg. Hits / Line</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.17.1
and simplecov-html v0.10.2<br/>
using RSpec
</div>
<div class="source_files">
</div>
</div>
</body>
</html>

View file

@ -1,3 +0,0 @@
class Analytics
end

View file

@ -0,0 +1,5 @@
{
"result": {
"covered_percent": 100.0
}
}

View file

@ -0,0 +1,606 @@
{
"RSpec": {
"coverage": {
"/home/hschneider/workspace/jekyll-analytics/test/test_all.rb": [
1,
1,
1
],
"/home/hschneider/workspace/jekyll-analytics/test/GoogleAnalyticsTest.rb": [
1,
1,
null,
1,
1,
2,
1,
null,
null,
1,
1,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
1,
1,
null,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/lib/analytics/GoogleAnalytics.rb": [
1,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
1,
1,
1,
null,
null,
1,
4,
1,
null,
null,
3,
3,
3,
3,
null,
null,
1,
2,
null,
null,
1,
null,
1,
3,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/test/PiwikTest.rb": [
1,
1,
null,
1,
1,
2,
2,
1,
null,
null,
1,
1,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/lib/analytics/Piwik.rb": [
1,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
1,
null,
1,
null,
4,
1,
null,
null,
3,
1,
null,
null,
6,
null,
null,
null,
1,
1,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/test/mPulseTest.rb": [
1,
1,
null,
1,
1,
2,
1,
null,
null,
1,
1,
1,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
45,
null,
null,
null,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/lib/analytics/MPulse.rb": [
1,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
1,
3,
1,
null,
null,
2,
null,
null,
1,
1,
null,
null
]
},
"timestamp": 1571516249
},
"Unit Tests": {
"coverage": {
"/home/hschneider/workspace/jekyll-analytics/test/test_all.rb": [
1,
1,
1
],
"/home/hschneider/workspace/jekyll-analytics/test/GoogleAnalyticsTest.rb": [
1,
1,
null,
1,
1,
2,
1,
null,
null,
1,
1,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
1,
1,
null,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/lib/analytics/GoogleAnalytics.rb": [
1,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
1,
1,
1,
null,
null,
1,
4,
1,
null,
null,
3,
3,
3,
3,
null,
null,
1,
2,
null,
null,
1,
null,
1,
3,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/test/PiwikTest.rb": [
1,
1,
null,
1,
1,
2,
2,
1,
null,
null,
1,
1,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/lib/analytics/Piwik.rb": [
1,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
null,
1,
null,
1,
null,
4,
1,
null,
null,
3,
1,
null,
null,
6,
null,
null,
null,
1,
1,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/test/mPulseTest.rb": [
1,
1,
null,
1,
1,
2,
1,
null,
null,
1,
1,
1,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
45,
null,
null,
null,
null,
null
],
"/home/hschneider/workspace/jekyll-analytics/lib/analytics/MPulse.rb": [
1,
null,
1,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
1,
null,
1,
3,
1,
null,
null,
2,
null,
null,
1,
1,
null,
null
]
},
"timestamp": 1571516526
}
}

View file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,12 @@
/* Hide controls */
body {
color: #000000;
background-color: #ffffff;
}
/* Hide controls */
div.filters {
display: none;
}

View file

@ -0,0 +1,42 @@
function toggleCode( id ) {
if ( document.getElementById ) {
elem = document.getElementById( id );
} else if ( document.all ) {
elem = eval( "document.all." + id );
} else {
return false;
}
elemStyle = elem.style;
if ( elemStyle.display != "block" ) {
elemStyle.display = "block";
} else {
elemStyle.display = "none";
}
return true;
}
function restripe() {
i = 0;
$('table#report_table tbody tr').each(function(){
if (this.style.display != "none") {
i += 1;
classes = this.className.split(" ");
if ($.inArray("even",classes) != -1) {
classes.splice($.inArray("even",classes),1);
} else if ($.inArray("odd",classes) != -1) {
classes.splice($.inArray("odd",classes),1);
}
if (i % 2 === 0) {
this.className = classes.join(" ") + " odd";
} else {
this.className = classes.join(" ") + " even";
}
}
});
}
// Fix IE's lack of support for indexOf (!)
if (!Array.indexOf) { Array.prototype.indexOf = function(obj){ for(var i=0; i<this.length; i++){ if(this[i]==obj){return i;} } return -1; }}

View file

@ -0,0 +1,270 @@
/* @group General */
body {
font-family: Verdana, Helvetica, Arial, Sans-Serif;
font-size: 12px;
color: #4C4C4C;
background-color: #F4F2ED;
padding: 1em;
}
a:link {
color: #191919;
}
a:visited {
color: #191919;
}
pre, code {
color: #000000;
font-family: "Bitstream Vera Sans Mono","Monaco","Courier New",monospace;
font-size: 95%;
line-height: 1.3em;
margin-top: 0;
margin-bottom: 0;
padding: 0;
word-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
margin: 0em 0em 1em 0em;
color: #666666;
}
h1 {
display: block;
font-size: 2em;
letter-spacing: -1px;
}
h2 {
margin-top: -1em;
}
fieldset {
display: inline;
border: 0px;
padding: 0px;
margin-right: 1em;
}
div.filters {
margin-bottom: 1em;
}
.hidden {
display: none;
}
/* @end */
/* @group Cross-References */
span.cross-ref-title {
font-size: 140%;
}
span.cross-ref a {
text-decoration: none;
}
span.cross-ref {
background-color:#f3f7fa;
border: 1px dashed #333;
margin: 1em;
padding: 0.5em;
overflow: hidden;
}
a.crossref-toggle {
text-decoration: none;
}
/* @end */
/* @group Report Table */
div.report_table_wrapper {
min-width: 900px;
}
table.report {
border-collapse: collapse;
border: 1px solid #666666;
width: 100%;
margin-bottom: 1em;
}
table.report tr {
line-height: 1.75em;
}
table.report th {
background: #666666;
color: #ffffff;
text-align: right;
text-transform: uppercase;
font-size: .8em;
font-weight: bold;
padding: 0em .5em;
border: 1px solid #666666;
}
table.report tfoot tr {
background: #dddddd;
font-weight: bold;
padding: .5em;
border: 1px solid #666666;
}
th.left_align, td.left_align {
text-align: left !important;
}
th.right_align, td.right_align {
text-align: right;
padding-right: 2em !important;
}
table.report th.header:hover {
cursor: pointer;
text-decoration: underline;
}
table.report th.headerSortUp:after{
content: "\25BC";
margin-left: 1em;
}
table.report th.headerSortDown:after {
content: "\25B2";
margin-left: 1em;
}
table.report tr.summary_row {
background: #cccccc;
border: 1px solid #cccccc;
}
table.report tr.summary_row td {
padding-left: .2em !important;
color: #333333;
font-weight: bold;
}
table.report td {
padding: .2em .5em .2em .5em;
}
table.report td a {
text-decoration: none;
}
table.report tbody tr:hover {
background: #cccccc !important;
}
table.report tr.summary_row td {
border-bottom: 1px solid #aaaaaa;
}
table.report tr {
background-color: #eeeeee;
}
table.report tr.odd {
background-color: #dddddd;
}
/* @end */
/* @group Percentage Graphs */
div.percent_graph_legend {
width: 5.5em;
float: left;
margin: .5em 1em .5em 0em;
height: 1em;
line-height: 1em;
}
div.percent_graph {
height: 1em;
border: #333333 1px solid;
empty-cells: show;
padding: 0px;
border-collapse: collapse;
width: 100px !important;
float: left;
margin: .5em 1em .5em 0em;
}
div.percent_graph div {
float: left;
height: 1em;
padding: 0px !important;
}
div.percent_graph div.covered {
background: #649632;
}
div.percent_graph div.uncovered {
background: #a92730;
}
div.percent_graph div.NA {
background: #eaeaea;
}
/* @end */
/* @group Details page */
table.details {
margin-top: 1em;
border-collapse: collapse;
width: 100%;
border: 1px solid #666666;
}
table.details tr {
line-height: 1.75em;
}
table.details td {
padding: .25em;
}
span.inferred, span.inferred1, span.marked, span.marked1, span.uncovered, span.uncovered1 {
display: block;
padding: .25em;
}
tr.inferred td, span.inferred {
background-color: #e0dedb;
}
tr.inferred1 td, span.inferred1 {
background-color: #e0dedb;
}
tr.marked td, span.marked, span.marked1 {
background-color: #bed2be;
}
tr.uncovered td, span.uncovered {
background-color: #ce8b8c;
}
tr.uncovered1 td, span.uncovered1 {
background-color: #ce8b8c;
}
div.key {
border: 1px solid #666666;
margin: 1em 0em;
}
/* @end */

View file

@ -0,0 +1,200 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<title>Jekyll-analytics C0 Coverage Information - SimpleCov - RCov style</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./assets/0.2.3/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="./assets/0.2.3/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - SimpleCov - RCov style</h1>
<noscript><style type="text/css">.if_js { display:none; }</style></noscript>
<div class="filters if_js">
<fieldset>
<label>File Filter:</label>
<select id="file_filter" class="filter">
<option value="all_files">Show All</option>
<option value="analytics">analytics/</option><option value="lib">lib/</option><option value="test">test/</option>
</select>
</fieldset>
<fieldset>
<label>Code Coverage Threshold:</label>
<select id="coverage_filter" class="filter">
<option value="all_coverage">Show All</option>
<option value="10">&lt; 10% Coverage</option><option value="20">&lt; 20% Coverage</option><option value="30">&lt; 30% Coverage</option><option value="40">&lt; 40% Coverage</option><option value="50">&lt; 50% Coverage</option><option value="60">&lt; 60% Coverage</option><option value="70">&lt; 70% Coverage</option><option value="80">&lt; 80% Coverage</option><option value="90">&lt; 90% Coverage</option><option value="100">&lt; 100% Coverage</option>
<option value="110">= 100% Coverage</option>
</select>
</fieldset>
</div>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tfoot>
<tr>
<td class="left_align">TOTAL</td>
<td class='right_align'><tt>283</tt></td>
<td class='right_align'><tt>76</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class='coverage_total'>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tfoot>
<tbody>
<tr class="all_files all_coverage 110 lib analytics even">
<td class="left_align"><a href="lib-analytics-GoogleAnalytics_rb.html">lib/analytics/GoogleAnalytics.rb</a></td>
<td class='right_align'><tt>43</tt></td>
<td class='right_align'><tt>18</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
<tr class="all_files all_coverage 110 lib analytics odd">
<td class="left_align"><a href="lib-analytics-MPulse_rb.html">lib/analytics/MPulse.rb</a></td>
<td class='right_align'><tt>63</tt></td>
<td class='right_align'><tt>9</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
<tr class="all_files all_coverage 110 lib analytics even">
<td class="left_align"><a href="lib-analytics-Piwik_rb.html">lib/analytics/Piwik.rb</a></td>
<td class='right_align'><tt>43</tt></td>
<td class='right_align'><tt>12</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
<tr class="all_files all_coverage 110 test odd">
<td class="left_align"><a href="test-GoogleAnalyticsTest_rb.html">test/GoogleAnalyticsTest.rb</a></td>
<td class='right_align'><tt>34</tt></td>
<td class='right_align'><tt>12</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
<tr class="all_files all_coverage 110 test even">
<td class="left_align"><a href="test-PiwikTest_rb.html">test/PiwikTest.rb</a></td>
<td class='right_align'><tt>31</tt></td>
<td class='right_align'><tt>10</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
<tr class="all_files all_coverage 110 test odd">
<td class="left_align"><a href="test-mPulseTest_rb.html">test/mPulseTest.rb</a></td>
<td class='right_align'><tt>66</tt></td>
<td class='right_align'><tt>12</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
<tr class="all_files all_coverage 110 test even">
<td class="left_align"><a href="test-test_all_rb.html">test/test_all.rb</a></td>
<td class='right_align'><tt>3</tt></td>
<td class='right_align'><tt>3</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<p>Generated on 2019-10-19 22:22:06 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
<script type="text/javascript">
$(document).ready(function(){$("#report_table").tablesorter({widgets: ['zebra'], textExtraction: 'complex'});});
$('.filter').change(function(){
ff = $('#file_filter').val();
cf = $('#coverage_filter').val();
$('table#report_table tbody tr').each(function(i){
if ((this.className.split(" ").indexOf(ff) > -1) && (this.className.split(" ").indexOf(cf) > -1)) {
this.style.display = "";
} else {
this.style.display = "none";
};
restripe();
})
})
</script>
</body>
</html>

View file

@ -0,0 +1,68 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/analytics/Analytics.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>lib/analytics/Analytics.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="lib-analytics-Analytics_rb.html">lib/analytics/Analytics.rb</a></td>
<td class='right_align'><tt>3</tt></td>
<td class='right_align'><tt>2</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>33.33%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:33px"></div>
<div class="uncovered" style="width:67px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>0.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:0px"></div>
<div class="uncovered" style="width:100px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="uncovered">
<td><pre><a name="line2">2</a> class Analytics</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line3">3</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line4">4</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:08:40 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,188 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/analytics/GoogleAnalytics.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>lib/analytics/GoogleAnalytics.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="lib-analytics-GoogleAnalytics_rb.html">lib/analytics/GoogleAnalytics.rb</a></td>
<td class='right_align'><tt>43</tt></td>
<td class='right_align'><tt>18</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="marked">
<td><pre><a name="line2">2</a> class GoogleAnalytics </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line3">3</a> #source: https://developers.google.com/analytics/devguides/collection/analyticsjs/</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line4">4</a> SETUP_CODE = &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line5">5</a> &lt;!-- Google Analytics --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line6">6</a> &lt;script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line7">7</a> (function(i,s,o,g,r,a,m){i[&#39;GoogleAnalyticsObject&#39;]=r;i[r]=i[r]||function(){</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line8">8</a> (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line9">9</a> m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line10">10</a> })(window,document,&#39;script&#39;,&#39;https://www.google-analytics.com/analytics.js&#39;,&#39;ga&#39;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line11">11</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line12">12</a> %s</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line13">13</a> &lt;/script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line14">14</a> &lt;!-- End Google Analytics --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line15">15</a> &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line16">16</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line17">17</a> ID_RE = /^UA-\d+-\d+$/ </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line18">18</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line19">19</a> INITIALIZE_CODE = &quot;ga(&#39;create&#39;, &#39;%s&#39;, &#39;auto&#39;);&quot;</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line20">20</a> PAGEVIEW_CODE = &quot;ga(&#39;send&#39;, &#39;pageview&#39;, { &#39;page&#39;: location.pathname + location.search + location.hash});&quot;</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line21">21</a> ANONYMIZE_IP_CODE = &quot;ga(&#39;set&#39;, &#39;anonymizeIp&#39;, %s);&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line22">22</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line23">23</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line24">24</a> def initialize(config)</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line25">25</a> if !(ID_RE.match(config[&quot;id&quot;]))</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line26">26</a> raise ArgumentError, &#39;Invalid Google analytics key. Id must look like UA-XXXXXX-Y&#39;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line27">27</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line28">28</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line29">29</a> @commands = []</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line30">30</a> @commands.push(INITIALIZE_CODE % config[&quot;id&quot;])</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line31">31</a> @commands.push(PAGEVIEW_CODE)</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line32">32</a> _get_other_commands(config)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line33">33</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line34">34</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line35">35</a> def render()</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line36">36</a> return SETUP_CODE % @commands.join(&quot;\n\t&quot;)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line37">37</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line38">38</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line39">39</a> private</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line40">40</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line41">41</a> def _get_other_commands(config)</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line42">42</a> @commands.push(ANONYMIZE_IP_CODE % config.fetch(:anonymizeIp, false))</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line43">43</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line44">44</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:22:06 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,248 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/analytics/MPulse.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>lib/analytics/MPulse.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="lib-analytics-MPulse_rb.html">lib/analytics/MPulse.rb</a></td>
<td class='right_align'><tt>63</tt></td>
<td class='right_align'><tt>9</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="marked">
<td><pre><a name="line2">2</a> class MPulse </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line3">3</a> #source: https://docs.soasta.com/boomerang/#mpulse-loader-snippet</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line4">4</a> MPULSE_LOADER = &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line5">5</a> &lt;!-- mPulse --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line6">6</a> &lt;script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line7">7</a> (function(API_KEY){</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line8">8</a> if (window.BOOMR &amp;&amp; window.BOOMR.version) { return; }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line9">9</a> var dom, doc, where, iframe = document.createElement(\&quot;iframe\&quot;), win = window;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line10">10</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line11">11</a> function boomerangSaveLoadTime(e) {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line12">12</a> win.BOOMR_onload=(e &amp;&amp; e.timeStamp) || new Date().getTime();</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line13">13</a> }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line14">14</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line15">15</a> if (win.addEventListener) {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line16">16</a> win.addEventListener(\&quot;load\&quot;, boomerangSaveLoadTime, false);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line17">17</a> } else if (win.attachEvent) {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line18">18</a> win.attachEvent(\&quot;onload\&quot;, boomerangSaveLoadTime);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line19">19</a> }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line20">20</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line21">21</a> iframe.src = \&quot;javascript:void(0)\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line22">22</a> iframe.title = \&quot;\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line23">23</a> iframe.role = \&quot;presentation\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line24">24</a> (iframe.frameElement || iframe).style.cssText = \&quot;width:0;height:0;border:0;display:none;\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line25">25</a> where = document.getElementsByTagName(\&quot;script\&quot;)[0];</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line26">26</a> where.parentNode.insertBefore(iframe, where);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line27">27</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line28">28</a> try {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line29">29</a> doc = iframe.contentWindow.document;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line30">30</a> } catch(e) {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line31">31</a> dom = document.domain;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line32">32</a> iframe.src = \&quot;javascript:var d=document.open();d.domain=&#39;\&quot;+dom+\&quot;&#39;;void(0);\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line33">33</a> doc = iframe.contentWindow.document;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line34">34</a> }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line35">35</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line36">36</a> doc.open()._l = function() {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line37">37</a> var js = this.createElement(\&quot;script\&quot;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line38">38</a> if (dom) { this.domain = dom; }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line39">39</a> js.id = \&quot;boomr-if-as\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line40">40</a> js.src = \&quot;https://s.go-mpulse.net/boomerang/\&quot; + API_KEY;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line41">41</a> BOOMR_lstart = new Date().getTime();</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line42">42</a> this.body.appendChild(js);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line43">43</a> };</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line44">44</a> doc.write(&#39;&lt;body onload=\&quot;document._l();\&quot;&gt;&#39;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line45">45</a> doc.close();</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line46">46</a> })(\&quot;%s\&quot;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line47">47</a> &lt;/script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line48">48</a> &lt;!-- End mPulse --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line49">49</a> &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line50">50</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line51">51</a> APIKEY_RE = /^[a-zA-Z2-9]{5}-[a-zA-Z2-9]{5}-[a-zA-Z2-9]{5}-[a-zA-Z2-9]{5}-[a-zA-Z2-9]{5}$/</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line52">52</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line53">53</a> def initialize(config)</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line54">54</a> if !(APIKEY_RE.match(config[&quot;apikey&quot;]))</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line55">55</a> raise ArgumentError, &#39;Invalid mPulse API key. Id must look like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&#39;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line56">56</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line57">57</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line58">58</a> @apikey = config[&quot;apikey&quot;]</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line59">59</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line60">60</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line61">61</a> def render()</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line62">62</a> return MPULSE_LOADER % @apikey</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line63">63</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line64">64</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:22:06 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,206 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/analytics/Matomo.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>lib/analytics/Matomo.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="lib-analytics-Matomo_rb.html">lib/analytics/Matomo.rb</a></td>
<td class='right_align'><tt>49</tt></td>
<td class='right_align'><tt>35</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>28.57%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:29px"></div>
<div class="uncovered" style="width:71px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>0.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:0px"></div>
<div class="uncovered" style="width:100px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="uncovered">
<td><pre><a name="line2">2</a> class Matomo</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line3">3</a> SETUP_CODE = &quot;&quot;&quot;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line4">4</a> &lt;!-- Matomo --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line5">5</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line6">6</a> &lt;!-- Matomo Image Tracker --&gt;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line7">7</a> &lt;img src=\&quot;%{url}?idsite=%{siteId}&amp;amp;rec=1\&quot; style=\&quot;border:0\&quot; alt=\&quot;\&quot; /&gt;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line8">8</a> &lt;!-- End Matomo --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line9">9</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line10">10</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line11">11</a> &lt;script type=\&quot;text/javascript\&quot;&gt;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line12">12</a> var _paq = _paq || [];</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line13">13</a> _paq.push([&#39;trackPageView&#39;]);</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line14">14</a> _paq.push([&#39;enableLinkTracking&#39;]);</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line15">15</a> (function() {</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line16">16</a> var u=&#39;//&#39;+\&quot;%{url}\&quot;;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line17">17</a> _paq.push([&#39;setTrackerUrl&#39;, u+&#39;/piwik.php&#39;]);</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line18">18</a> _paq.push([&#39;setSiteId&#39;, &#39;%{siteId}&#39;]);</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line19">19</a> var d=document, g=d.createElement(&#39;script&#39;), s=d.getElementsByTagName(&#39;script&#39;)[0];</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line20">20</a> g.type=&#39;text/javascript&#39;; g.async=true; g.defer=true; g.src=u+&#39;/piwik.js&#39;; s.parentNode.insertBefore(g,s);</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line21">21</a> })();</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line22">22</a> &lt;/script&gt;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line23">23</a> &lt;!-- End Matomo Code --&gt;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line24">24</a> &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line25">25</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line26">26</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line27">27</a> # domain name (characters separated by a dot), optional port, optional URI path, no slash</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line28">28</a> DOMAINPATH_RE = /^(([^.\/?#@:]+\.)*[^.\/?#@:]+)+(:[0-9]+)?(\/[^\/?#@:]+)*$/</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line29">29</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line30">30</a> # numeric ID</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line31">31</a> SITEID_RE = /^\d+$/</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line32">32</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line33">33</a> def initialize(config)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line34">34</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line35">35</a> if !(DOMAINPATH_RE.match(config[&#39;url&#39;]))</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line36">36</a> raise ArgumentError, &#39;Invalid url. Must be a domain name, optionally followed by an URI path, no trailing slash (e.g. matomo.example.com or my.matomo.server/path)&#39;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line37">37</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line38">38</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line39">39</a> if !(SITEID_RE.match(config[&#39;siteId&#39;]))</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line40">40</a> raise ArgumentError, &#39;Invalid site id. Must be a number.&#39;</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line41">41</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line42">42</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line43">43</a> @config = Hash[config.map{ |k, v| [k.to_sym, v.to_s] }]</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line44">44</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line45">45</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line46">46</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line47">47</a> def render</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line48">48</a> return SETUP_CODE % @config</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line49">49</a> end</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line50">50</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:11:27 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,188 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/analytics/Piwik.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>lib/analytics/Piwik.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="lib-analytics-Piwik_rb.html">lib/analytics/Piwik.rb</a></td>
<td class='right_align'><tt>43</tt></td>
<td class='right_align'><tt>12</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="marked">
<td><pre><a name="line2">2</a> class Piwik</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line3">3</a> SETUP_CODE = &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line4">4</a> &lt;!-- Piwik --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line5">5</a> &lt;script type=\&quot;text/javascript\&quot;&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line6">6</a> var _paq = _paq || [];</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line7">7</a> _paq.push([&#39;trackPageView&#39;]);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line8">8</a> _paq.push([&#39;enableLinkTracking&#39;]);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line9">9</a> (function() {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line10">10</a> var u=&#39;//&#39;+\&quot;%{url}\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line11">11</a> _paq.push([&#39;setTrackerUrl&#39;, u+&#39;/piwik.php&#39;]);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line12">12</a> _paq.push([&#39;setSiteId&#39;, &#39;%{siteId}&#39;]);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line13">13</a> var d=document, g=d.createElement(&#39;script&#39;), s=d.getElementsByTagName(&#39;script&#39;)[0];</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line14">14</a> g.type=&#39;text/javascript&#39;; g.async=true; g.defer=true; g.src=u+&#39;/piwik.js&#39;; s.parentNode.insertBefore(g,s);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line15">15</a> })();</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line16">16</a> &lt;/script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line17">17</a> &lt;!-- End Piwik Code --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line18">18</a> &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line19">19</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line20">20</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line21">21</a> # domain name (characters separated by a dot), optional port, optional URI path, no slash</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line22">22</a> DOMAINPATH_RE = /^(([^.\/?#@:]+\.)*[^.\/?#@:]+)+(:[0-9]+)?(\/[^\/?#@:]+)*$/</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line23">23</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line24">24</a> # numeric ID</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line25">25</a> SITEID_RE = /^\d+$/</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line26">26</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line27">27</a> def initialize(config)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line28">28</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line29">29</a> if !(DOMAINPATH_RE.match(config[&#39;url&#39;]))</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line30">30</a> raise ArgumentError, &#39;Invalid url. Must be a domain name, optionally followed by an URI path, no trailing slash (e.g. piwik.example.com or my.piwik.server/path)&#39;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line31">31</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line32">32</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line33">33</a> if !(SITEID_RE.match(config[&#39;siteId&#39;]))</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line34">34</a> raise ArgumentError, &#39;Invalid site id. Must be a number.&#39;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line35">35</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line36">36</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line37">37</a> @config = Hash[config.map{ |k, v| [k.to_sym, v.to_s] }]</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line38">38</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line39">39</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line40">40</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line41">41</a> def render</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line42">42</a> return SETUP_CODE % @config</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line43">43</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line44">44</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:22:06 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,140 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/jekyll-analytics.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>lib/jekyll-analytics.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="lib-jekyll-analytics_rb.html">lib/jekyll-analytics.rb</a></td>
<td class='right_align'><tt>27</tt></td>
<td class='right_align'><tt>20</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>25.93%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:26px"></div>
<div class="uncovered" style="width:74px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>0.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:0px"></div>
<div class="uncovered" style="width:100px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="uncovered">
<td><pre><a name="line2">2</a> Dir[File.dirname(__FILE__) + &#39;/analytics/*.rb&#39;].each {|file| require file[0..-4] }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line3">3</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line4">4</a> CONFIG_KEY = &quot;jekyll_analytics&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line5">5</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line6">6</a> def inject(site)</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line7">7</a> if ENV[&#39;JEKYLL_ENV&#39;] and site.site.config.has_key? CONFIG_KEY</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line8">8</a> site.site.config[CONFIG_KEY].keys().each{ |a|</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line9">9</a> analyzerClass = Module.const_get(a)</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line10">10</a> config = site.site.config[CONFIG_KEY][a]</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line11">11</a> analytics_object = analyzerClass.new(config)</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line12">12</a> site.output = site.output.gsub(/(?=&lt;\/head&gt;)/i, analytics_object.render())</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line13">13</a> }</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line14">14</a> end</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line15">15</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line16">16</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line17">17</a> Jekyll::Hooks.register :pages, :post_render do |page|</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line18">18</a> inject(page)</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line19">19</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line20">20</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line21">21</a> Jekyll::Hooks.register :posts, :post_render do |post|</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line22">22</a> inject(post)</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line23">23</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line24">24</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line25">25</a> Jekyll::Hooks.register :site, :post_render do |site|</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line26">26</a> #puts site.config</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line27">27</a> #inject(site)</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line28">28</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:11:27 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,161 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>test/GoogleAnalyticsTest.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>test/GoogleAnalyticsTest.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="test-GoogleAnalyticsTest_rb.html">test/GoogleAnalyticsTest.rb</a></td>
<td class='right_align'><tt>34</tt></td>
<td class='right_align'><tt>12</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="marked">
<td><pre><a name="line2">2</a> require_relative &quot;../lib/analytics/GoogleAnalytics.rb&quot;</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line3">3</a> require &quot;test/unit&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line4">4</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line5">5</a> class TestGoogleAnalytics &lt; Test::Unit::TestCase</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line6">6</a> def test_init</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line7">7</a> assert_raise( ArgumentError ) { GoogleAnalytics.new( {&quot;id&quot; =&gt; &quot;123-456&quot;} ) }</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line8">8</a> assert_instance_of(GoogleAnalytics, GoogleAnalytics.new( {&quot;id&quot; =&gt; &quot;UA-123-456&quot;} ))</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line9">9</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line10">10</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line11">11</a> def test_default_tracking_string</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line12">12</a> googleAnalytics = GoogleAnalytics.new( {&quot;id&quot; =&gt; &quot;UA-123-456&quot;} )</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line13">13</a> assert_equal(googleAnalytics.render(), </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line14">14</a> &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line15">15</a> &lt;!-- Google Analytics --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line16">16</a> &lt;script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line17">17</a> (function(i,s,o,g,r,a,m){i[&#39;GoogleAnalyticsObject&#39;]=r;i[r]=i[r]||function(){</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line18">18</a> (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line19">19</a> m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line20">20</a> })(window,document,&#39;script&#39;,&#39;https://www.google-analytics.com/analytics.js&#39;,&#39;ga&#39;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line21">21</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line22">22</a> ga(&#39;create&#39;, &#39;UA-123-456&#39;, &#39;auto&#39;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line23">23</a> \tga(&#39;send&#39;, &#39;pageview&#39;, { &#39;page&#39;: location.pathname + location.search + location.hash});</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line24">24</a> \tga(&#39;set&#39;, &#39;anonymizeIp&#39;, false);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line25">25</a> &lt;/script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line26">26</a> &lt;!-- End Google Analytics --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line27">27</a> &quot;&quot;&quot;)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line28">28</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line29">29</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line30">30</a> def test_anonymize_true</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line31">31</a> googleAnalytics = GoogleAnalytics.new( {&quot;id&quot; =&gt; &quot;UA-123-456&quot;, &quot;anonymizeIp&quot; =&gt; true} )</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line32">32</a> assert_match(/\(&#39;set&#39;, &#39;anonymizeIp&#39;, false\);/, googleAnalytics.render())</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line33">33</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line34">34</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line35">35</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:22:06 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,152 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>test/PiwikTest.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>test/PiwikTest.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="test-PiwikTest_rb.html">test/PiwikTest.rb</a></td>
<td class='right_align'><tt>31</tt></td>
<td class='right_align'><tt>10</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="marked">
<td><pre><a name="line2">2</a> require_relative &quot;../lib/analytics/Piwik.rb&quot;</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line3">3</a> require &quot;test/unit&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line4">4</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line5">5</a> class PiwikTest &lt; Test::Unit::TestCase</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line6">6</a> def test_init</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line7">7</a> assert_raise( ArgumentError ) { Piwik.new( {&quot;url&quot; =&gt; &quot;my.piwik.server/path/&quot;}) }</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line8">8</a> assert_raise( ArgumentError ) { Piwik.new( {&quot;url&quot; =&gt; &quot;my.piwik.server/path&quot;, &quot;siteId&quot; =&gt; &quot;a&quot;}) }</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line9">9</a> assert_instance_of(Piwik, Piwik.new( {&quot;url&quot; =&gt; &quot;my.piwik.server/path&quot;, &quot;siteId&quot; =&gt; &quot;1&quot;}) )</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line10">10</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line11">11</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line12">12</a> def test_default_tracking_string</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line13">13</a> piwikAnalytics = Piwik.new( {&quot;url&quot; =&gt; &quot;my.piwik.server/path&quot;, &quot;siteId&quot; =&gt; &quot;1&quot;})</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line14">14</a> assert_equal(piwikAnalytics.render(), </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line15">15</a> &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line16">16</a> &lt;!-- Piwik --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line17">17</a> &lt;script type=\&quot;text/javascript\&quot;&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line18">18</a> var _paq = _paq || [];</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line19">19</a> _paq.push([&#39;trackPageView&#39;]);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line20">20</a> _paq.push([&#39;enableLinkTracking&#39;]);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line21">21</a> (function() {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line22">22</a> var u=\&#39;//\&#39;+\&quot;my.piwik.server/path\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line23">23</a> _paq.push([&#39;setTrackerUrl&#39;, u+&#39;/piwik.php&#39;]);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line24">24</a> _paq.push([&#39;setSiteId&#39;, &#39;1&#39;]);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line25">25</a> var d=document, g=d.createElement(&#39;script&#39;), s=d.getElementsByTagName(&#39;script&#39;)[0];</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line26">26</a> g.type=&#39;text/javascript&#39;; g.async=true; g.defer=true; g.src=u+&#39;/piwik.js&#39;; s.parentNode.insertBefore(g,s);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line27">27</a> })();</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line28">28</a> &lt;/script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line29">29</a> &lt;!-- End Piwik Code --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line30">30</a> &quot;&quot;&quot;)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line31">31</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line32">32</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:22:06 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,257 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>test/mPulseTest.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>test/mPulseTest.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="test-mPulseTest_rb.html">test/mPulseTest.rb</a></td>
<td class='right_align'><tt>66</tt></td>
<td class='right_align'><tt>12</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="marked">
<td><pre><a name="line2">2</a> require_relative &quot;../lib/analytics/MPulse.rb&quot;</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line3">3</a> require &quot;test/unit&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line4">4</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line5">5</a> class TestMPulse &lt; Test::Unit::TestCase</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line6">6</a> def test_init</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line7">7</a> assert_raise( ArgumentError ) { MPulse.new( {&quot;apikey&quot; =&gt; &quot;XXXXX-YYYYY-ZZZZZ-13456&quot;} ) }</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line8">8</a> assert_instance_of(MPulse, MPulse.new( {&quot;apikey&quot; =&gt; &quot;XXXXX-YYYYY-ZZZZZ-AAAAA-23456&quot;} ))</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line9">9</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line10">10</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line11">11</a> def test_default_tracking_string</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line12">12</a> mpulse = MPulse.new( {&quot;apikey&quot; =&gt; &quot;XXXXX-YYYYY-ZZZZZ-AAAAA-23456&quot;} )</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line13">13</a> @rendered = mpulse.render().split(&quot;\n&quot;)</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line14">14</a> @expected = &quot;&quot;&quot;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line15">15</a> &lt;!-- mPulse --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line16">16</a> &lt;script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line17">17</a> (function(API_KEY){</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line18">18</a> if (window.BOOMR &amp;&amp; window.BOOMR.version) { return; }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line19">19</a> var dom, doc, where, iframe = document.createElement(\&quot;iframe\&quot;), win = window;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line20">20</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line21">21</a> function boomerangSaveLoadTime(e) {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line22">22</a> win.BOOMR_onload=(e &amp;&amp; e.timeStamp) || new Date().getTime();</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line23">23</a> }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line24">24</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line25">25</a> if (win.addEventListener) {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line26">26</a> win.addEventListener(\&quot;load\&quot;, boomerangSaveLoadTime, false);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line27">27</a> } else if (win.attachEvent) {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line28">28</a> win.attachEvent(\&quot;onload\&quot;, boomerangSaveLoadTime);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line29">29</a> }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line30">30</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line31">31</a> iframe.src = \&quot;javascript:void(0)\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line32">32</a> iframe.title = \&quot;\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line33">33</a> iframe.role = \&quot;presentation\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line34">34</a> (iframe.frameElement || iframe).style.cssText = \&quot;width:0;height:0;border:0;display:none;\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line35">35</a> where = document.getElementsByTagName(\&quot;script\&quot;)[0];</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line36">36</a> where.parentNode.insertBefore(iframe, where);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line37">37</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line38">38</a> try {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line39">39</a> doc = iframe.contentWindow.document;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line40">40</a> } catch(e) {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line41">41</a> dom = document.domain;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line42">42</a> iframe.src = \&quot;javascript:var d=document.open();d.domain=&#39;\&quot;+dom+\&quot;&#39;;void(0);\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line43">43</a> doc = iframe.contentWindow.document;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line44">44</a> }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line45">45</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line46">46</a> doc.open()._l = function() {</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line47">47</a> var js = this.createElement(\&quot;script\&quot;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line48">48</a> if (dom) { this.domain = dom; }</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line49">49</a> js.id = \&quot;boomr-if-as\&quot;;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line50">50</a> js.src = \&quot;https://s.go-mpulse.net/boomerang/\&quot; + API_KEY;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line51">51</a> BOOMR_lstart = new Date().getTime();</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line52">52</a> this.body.appendChild(js);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line53">53</a> };</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line54">54</a> doc.write(&#39;&lt;body onload=\&quot;document._l();\&quot;&gt;&#39;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line55">55</a> doc.close();</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line56">56</a> })(\&quot;XXXXX-YYYYY-ZZZZZ-AAAAA-23456\&quot;);</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line57">57</a> &lt;/script&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line58">58</a> &lt;!-- End mPulse --&gt;</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line59">59</a> &quot;&quot;&quot;.split(&quot;\n&quot;)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line60">60</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line61">61</a> @expected.zip(@rendered).each do | exp, act |</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line62">62</a> assert_equal(act, exp)</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line63">63</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line64">64</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line65">65</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line66">66</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line67">67</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:22:06 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

View file

@ -0,0 +1,68 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>test/test_all.rb</title>
<link href="./assets/0.2.3/screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="./assets/0.2.3/print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="./assets/0.2.3/rcov.js"></script>
</head>
<body>
<h1>Jekyll-analytics C0 Coverage Information - Simploco - RCov</h1>
<h2>test/test_all.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="test-test_all_rb.html">test/test_all.rb</a></td>
<td class='right_align'><tt>3</tt></td>
<td class='right_align'><tt>3</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:100px"></div>
<div class="uncovered" style="width:0px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="marked">
<td><pre><a name="line2">2</a> require_relative &quot;GoogleAnalyticsTest&quot;</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line3">3</a> require_relative &quot;PiwikTest&quot;</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line4">4</a> require_relative &quot;mPulseTest&quot;</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2019-10-19 22:22:06 +0200 with <a href="https://github.com/fguillen/simplecov-rcov">SimpleCov-RCov 0.2.3</a></p>
</body>
</html>

7
spec_helper.rb Normal file
View file

@ -0,0 +1,7 @@
#Run unit test and coverage
require 'simplecov'
require 'simplecov-rcov'
SimpleCov.start
require_relative 'test/test_all'
SimpleCov.coverage_dir 'spec/coverage'
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter