Skip to content

Commit

Permalink
Bumps version to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Firkin committed Dec 12, 2016
1 parent 6a65441 commit 13ff447
Show file tree
Hide file tree
Showing 20 changed files with 3,179 additions and 1 deletion.
584 changes: 584 additions & 0 deletions cover/coverage_html.js

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions cover/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@



<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Coverage report</title>
<link rel="stylesheet" href="style.css" type="text/css">

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.debounce.min.js"></script>
<script type="text/javascript" src="jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="jquery.hotkeys.js"></script>
<script type="text/javascript" src="coverage_html.js"></script>
<script type="text/javascript">
jQuery(document).ready(coverage.index_ready);
</script>
</head>
<body class="indexfile">

<div id="header">
<div class="content">
<h1>Coverage report:
<span class="pc_cov">86%</span>
</h1>

<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />

<form id="filter_container">
<input id="filter" type="text" value="" placeholder="filter..." />
</form>
</div>
</div>

<div class="help_panel">
<img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
<p class="legend">Hot-keys on this page</p>
<div>
<p class="keyhelp">
<span class="key">n</span>
<span class="key">s</span>
<span class="key">m</span>
<span class="key">x</span>

<span class="key">c</span> &nbsp; change column sorting
</p>
</div>
</div>

<div id="index">
<table class="index">
<thead>

<tr class="tablehead" title="Click to sort">
<th class="name left headerSortDown shortkey_n">Module</th>
<th class="shortkey_s">statements</th>
<th class="shortkey_m">missing</th>
<th class="shortkey_x">excluded</th>

<th class="right shortkey_c">coverage</th>
</tr>
</thead>

<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td>358</td>
<td>49</td>
<td>0</td>

<td class="right" data-ratio="309 358">86%</td>
</tr>
</tfoot>
<tbody>

<tr class="file">
<td class="name left"><a href="slap_py.html">slap.py</a></td>
<td>0</td>
<td>0</td>
<td>0</td>

<td class="right" data-ratio="0 0">100%</td>
</tr>

<tr class="file">
<td class="name left"><a href="slap_api_py.html">slap\api.py</a></td>
<td>84</td>
<td>8</td>
<td>0</td>

<td class="right" data-ratio="76 84">90%</td>
</tr>

<tr class="file">
<td class="name left"><a href="slap_cli_py.html">slap\cli.py</a></td>
<td>50</td>
<td>41</td>
<td>0</td>

<td class="right" data-ratio="9 50">18%</td>
</tr>

<tr class="file">
<td class="name left"><a href="slap_config_py.html">slap\config.py</a></td>
<td>64</td>
<td>0</td>
<td>0</td>

<td class="right" data-ratio="64 64">100%</td>
</tr>

<tr class="file">
<td class="name left"><a href="slap_esri_py.html">slap\esri.py</a></td>
<td>55</td>
<td>0</td>
<td>0</td>

<td class="right" data-ratio="55 55">100%</td>
</tr>

<tr class="file">
<td class="name left"><a href="slap_git_py.html">slap\git.py</a></td>
<td>6</td>
<td>0</td>
<td>0</td>

<td class="right" data-ratio="6 6">100%</td>
</tr>

<tr class="file">
<td class="name left"><a href="slap_publisher_py.html">slap\publisher.py</a></td>
<td>99</td>
<td>0</td>
<td>0</td>

<td class="right" data-ratio="99 99">100%</td>
</tr>

</tbody>
</table>

<p id="no_rows">
No items found using the specified filter.
</p>
</div>

<div id="footer">
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io">coverage.py v4.2</a>,
created at 2016-12-12 00:43
</p>
</div>
</div>

</body>
</html>
9 changes: 9 additions & 0 deletions cover/jquery.debounce.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* jQuery throttle / debounce - v1.1 - 3/7/2010
* http://benalman.com/projects/jquery-throttle-debounce-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
99 changes: 99 additions & 0 deletions cover/jquery.hotkeys.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* jQuery Hotkeys Plugin
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Based upon the plugin by Tzury Bar Yochay:
* http://github.com/tzuryby/hotkeys
*
* Original idea by:
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
*/

(function(jQuery){

jQuery.hotkeys = {
version: "0.8",

specialKeys: {
8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",
20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",
37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del",
96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7",
104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/",
112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8",
120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 191: "/", 224: "meta"
},

shiftNums: {
"`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&",
"8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<",
".": ">", "/": "?", "\\": "|"
}
};

function keyHandler( handleObj ) {
// Only care when a possible input has been specified
if ( typeof handleObj.data !== "string" ) {
return;
}

var origHandler = handleObj.handler,
keys = handleObj.data.toLowerCase().split(" ");

handleObj.handler = function( event ) {
// Don't fire in text-accepting inputs that we didn't directly bind to
if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||
event.target.type === "text") ) {
return;
}

// Keypress represents characters, not special keys
var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ],
character = String.fromCharCode( event.which ).toLowerCase(),
key, modif = "", possible = {};

// check combinations (alt|ctrl|shift+anything)
if ( event.altKey && special !== "alt" ) {
modif += "alt+";
}

if ( event.ctrlKey && special !== "ctrl" ) {
modif += "ctrl+";
}

// TODO: Need to make sure this works consistently across platforms
if ( event.metaKey && !event.ctrlKey && special !== "meta" ) {
modif += "meta+";
}

if ( event.shiftKey && special !== "shift" ) {
modif += "shift+";
}

if ( special ) {
possible[ modif + special ] = true;

} else {
possible[ modif + character ] = true;
possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true;

// "$" can be triggered as "Shift+4" or "Shift+$" or just "$"
if ( modif === "shift+" ) {
possible[ jQuery.hotkeys.shiftNums[ character ] ] = true;
}
}

for ( var i = 0, l = keys.length; i < l; i++ ) {
if ( possible[ keys[i] ] ) {
return origHandler.apply( this, arguments );
}
}
};
}

jQuery.each([ "keydown", "keyup", "keypress" ], function() {
jQuery.event.special[ this ] = { add: keyHandler };
});

})( jQuery );
53 changes: 53 additions & 0 deletions cover/jquery.isonscreen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/* Copyright (c) 2010
* @author Laurence Wheway
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* @version 1.2.0
*/
(function($) {
jQuery.extend({
isOnScreen: function(box, container) {
//ensure numbers come in as intgers (not strings) and remove 'px' is it's there
for(var i in box){box[i] = parseFloat(box[i])};
for(var i in container){container[i] = parseFloat(container[i])};

if(!container){
container = {
left: $(window).scrollLeft(),
top: $(window).scrollTop(),
width: $(window).width(),
height: $(window).height()
}
}

if( box.left+box.width-container.left > 0 &&
box.left < container.width+container.left &&
box.top+box.height-container.top > 0 &&
box.top < container.height+container.top
) return true;
return false;
}
})


jQuery.fn.isOnScreen = function (container) {
for(var i in container){container[i] = parseFloat(container[i])};

if(!container){
container = {
left: $(window).scrollLeft(),
top: $(window).scrollTop(),
width: $(window).width(),
height: $(window).height()
}
}

if( $(this).offset().left+$(this).width()-container.left > 0 &&
$(this).offset().left < container.width+container.left &&
$(this).offset().top+$(this).height()-container.top > 0 &&
$(this).offset().top < container.height+container.top
) return true;
return false;
}
})(jQuery);
4 changes: 4 additions & 0 deletions cover/jquery.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 13ff447

Please sign in to comment.