ninjs 0.10.2 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +64 -0
- data/Rakefile +4 -1
- data/VERSION +1 -1
- data/bin/ninjs +14 -5
- data/lib/ninjs.rb +0 -3
- data/lib/ninjs/command.rb +67 -110
- data/lib/ninjs/configuration.rb +33 -39
- data/lib/ninjs/project.rb +14 -31
- data/ninjs.conf +7 -0
- data/ninjs.gemspec +63 -5
- data/repository/jquery/1.5.js +16 -0
- data/repository/jquery/latest.js +1 -1
- data/repository/jquery/mobile/1.0a3.js +123 -0
- data/repository/jquery/mobile/1.0a3/assets/css/jquery.mobile.css +1652 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/ajax-loader.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-check-off.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-check-on.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-radio-off.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/form-radio-on.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icon-search-black.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-18-black.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-18-white.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-36-black.png +0 -0
- data/repository/jquery/mobile/1.0a3/assets/images/jquerymobile/icons-36-white.png +0 -0
- data/repository/jquery/mobile/latest.js +1 -0
- data/spec/fixtures/global.js +7 -0
- data/spec/fixtures/global.module.js +7 -0
- data/spec/fixtures/myapplication.js +576 -0
- data/spec/fixtures/nin.js +573 -0
- data/spec/fixtures/ninjs.conf +6 -0
- data/spec/fixtures/test.elements.js +4 -0
- data/spec/fixtures/test.js +15 -0
- data/spec/fixtures/test.model.js +3 -0
- data/spec/fixtures/test.module.js +10 -0
- data/spec/fixtures/updated.myapplication.js +27 -0
- data/spec/fixtures/utilities.js +162 -0
- data/spec/ninjs_spec.rb +257 -0
- data/spec/spec_helper.rb +2 -1
- data/tmp/ff9e83aa019b712b90200b8d1b8fa0c7e14576af.json +1 -0
- data/tmp/metric_fu/_data/20110305.yml +1548 -0
- data/tmp/metric_fu/output/bluff-min.js +1 -0
- data/tmp/metric_fu/output/churn.html +692 -0
- data/tmp/metric_fu/output/excanvas.js +35 -0
- data/tmp/metric_fu/output/flay.html +566 -0
- data/tmp/metric_fu/output/flay.js +11 -0
- data/tmp/metric_fu/output/flog.html +2392 -0
- data/tmp/metric_fu/output/flog.js +12 -0
- data/tmp/metric_fu/output/hotspots.html +3607 -0
- data/tmp/metric_fu/output/index.html +572 -0
- data/tmp/metric_fu/output/js-class.js +1 -0
- data/tmp/metric_fu/output/lib_ninjs.rb.html +49 -0
- data/tmp/metric_fu/output/lib_ninjs_command.rb.html +137 -0
- data/tmp/metric_fu/output/lib_ninjs_configuration.rb.html +107 -0
- data/tmp/metric_fu/output/lib_ninjs_dependencies.rb.html +34 -0
- data/tmp/metric_fu/output/lib_ninjs_helpers.rb.html +34 -0
- data/tmp/metric_fu/output/lib_ninjs_manifest.rb.html +27 -0
- data/tmp/metric_fu/output/lib_ninjs_project.rb.html +236 -0
- data/tmp/metric_fu/output/rails_best_practices.js +11 -0
- data/tmp/metric_fu/output/rcov.html +566 -0
- data/tmp/metric_fu/output/rcov.js +11 -0
- data/tmp/metric_fu/output/reek.html +1294 -0
- data/tmp/metric_fu/output/reek.js +20 -0
- data/tmp/metric_fu/output/roodi.html +599 -0
- data/tmp/metric_fu/output/roodi.js +11 -0
- data/tmp/metric_fu/report.yml +1548 -0
- data/tmp/metric_fu/scratch/rcov/rcov.txt +1 -0
- metadata +94 -27
- data/spec/test_spec.rb +0 -5
@@ -0,0 +1,35 @@
|
|
1
|
+
// Copyright 2006 Google Inc.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
document.createElement("canvas").getContext||(function(){var s=Math,j=s.round,F=s.sin,G=s.cos,V=s.abs,W=s.sqrt,k=10,v=k/2;function X(){return this.context_||(this.context_=new H(this))}var L=Array.prototype.slice;function Y(b,a){var c=L.call(arguments,2);return function(){return b.apply(a,c.concat(L.call(arguments)))}}var M={init:function(b){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var a=b||document;a.createElement("canvas");a.attachEvent("onreadystatechange",Y(this.init_,this,a))}},init_:function(b){b.namespaces.g_vml_||
|
15
|
+
b.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");b.namespaces.g_o_||b.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML");if(!b.styleSheets.ex_canvas_){var a=b.createStyleSheet();a.owningElement.id="ex_canvas_";a.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_o_\\:*{behavior:url(#default#VML)}"}var c=b.getElementsByTagName("canvas"),d=0;for(;d<c.length;d++)this.initElement(c[d])},
|
16
|
+
initElement:function(b){if(!b.getContext){b.getContext=X;b.innerHTML="";b.attachEvent("onpropertychange",Z);b.attachEvent("onresize",$);var a=b.attributes;if(a.width&&a.width.specified)b.style.width=a.width.nodeValue+"px";else b.width=b.clientWidth;if(a.height&&a.height.specified)b.style.height=a.height.nodeValue+"px";else b.height=b.clientHeight}return b}};function Z(b){var a=b.srcElement;switch(b.propertyName){case "width":a.style.width=a.attributes.width.nodeValue+"px";a.getContext().clearRect();
|
17
|
+
break;case "height":a.style.height=a.attributes.height.nodeValue+"px";a.getContext().clearRect();break}}function $(b){var a=b.srcElement;if(a.firstChild){a.firstChild.style.width=a.clientWidth+"px";a.firstChild.style.height=a.clientHeight+"px"}}M.init();var N=[],B=0;for(;B<16;B++){var C=0;for(;C<16;C++)N[B*16+C]=B.toString(16)+C.toString(16)}function I(){return[[1,0,0],[0,1,0],[0,0,1]]}function y(b,a){var c=I(),d=0;for(;d<3;d++){var f=0;for(;f<3;f++){var h=0,g=0;for(;g<3;g++)h+=b[d][g]*a[g][f];c[d][f]=
|
18
|
+
h}}return c}function O(b,a){a.fillStyle=b.fillStyle;a.lineCap=b.lineCap;a.lineJoin=b.lineJoin;a.lineWidth=b.lineWidth;a.miterLimit=b.miterLimit;a.shadowBlur=b.shadowBlur;a.shadowColor=b.shadowColor;a.shadowOffsetX=b.shadowOffsetX;a.shadowOffsetY=b.shadowOffsetY;a.strokeStyle=b.strokeStyle;a.globalAlpha=b.globalAlpha;a.arcScaleX_=b.arcScaleX_;a.arcScaleY_=b.arcScaleY_;a.lineScale_=b.lineScale_}function P(b){var a,c=1;b=String(b);if(b.substring(0,3)=="rgb"){var d=b.indexOf("(",3),f=b.indexOf(")",d+
|
19
|
+
1),h=b.substring(d+1,f).split(",");a="#";var g=0;for(;g<3;g++)a+=N[Number(h[g])];if(h.length==4&&b.substr(3,1)=="a")c=h[3]}else a=b;return{color:a,alpha:c}}function aa(b){switch(b){case "butt":return"flat";case "round":return"round";case "square":default:return"square"}}function H(b){this.m_=I();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=k*1;this.globalAlpha=1;this.canvas=b;
|
20
|
+
var a=b.ownerDocument.createElement("div");a.style.width=b.clientWidth+"px";a.style.height=b.clientHeight+"px";a.style.overflow="hidden";a.style.position="absolute";b.appendChild(a);this.element_=a;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}var i=H.prototype;i.clearRect=function(){this.element_.innerHTML=""};i.beginPath=function(){this.currentPath_=[]};i.moveTo=function(b,a){var c=this.getCoords_(b,a);this.currentPath_.push({type:"moveTo",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};
|
21
|
+
i.lineTo=function(b,a){var c=this.getCoords_(b,a);this.currentPath_.push({type:"lineTo",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};i.bezierCurveTo=function(b,a,c,d,f,h){var g=this.getCoords_(f,h),l=this.getCoords_(b,a),e=this.getCoords_(c,d);Q(this,l,e,g)};function Q(b,a,c,d){b.currentPath_.push({type:"bezierCurveTo",cp1x:a.x,cp1y:a.y,cp2x:c.x,cp2y:c.y,x:d.x,y:d.y});b.currentX_=d.x;b.currentY_=d.y}i.quadraticCurveTo=function(b,a,c,d){var f=this.getCoords_(b,a),h=this.getCoords_(c,d),g={x:this.currentX_+
|
22
|
+
0.6666666666666666*(f.x-this.currentX_),y:this.currentY_+0.6666666666666666*(f.y-this.currentY_)};Q(this,g,{x:g.x+(h.x-this.currentX_)/3,y:g.y+(h.y-this.currentY_)/3},h)};i.arc=function(b,a,c,d,f,h){c*=k;var g=h?"at":"wa",l=b+G(d)*c-v,e=a+F(d)*c-v,m=b+G(f)*c-v,r=a+F(f)*c-v;if(l==m&&!h)l+=0.125;var n=this.getCoords_(b,a),o=this.getCoords_(l,e),q=this.getCoords_(m,r);this.currentPath_.push({type:g,x:n.x,y:n.y,radius:c,xStart:o.x,yStart:o.y,xEnd:q.x,yEnd:q.y})};i.rect=function(b,a,c,d){this.moveTo(b,
|
23
|
+
a);this.lineTo(b+c,a);this.lineTo(b+c,a+d);this.lineTo(b,a+d);this.closePath()};i.strokeRect=function(b,a,c,d){var f=this.currentPath_;this.beginPath();this.moveTo(b,a);this.lineTo(b+c,a);this.lineTo(b+c,a+d);this.lineTo(b,a+d);this.closePath();this.stroke();this.currentPath_=f};i.fillRect=function(b,a,c,d){var f=this.currentPath_;this.beginPath();this.moveTo(b,a);this.lineTo(b+c,a);this.lineTo(b+c,a+d);this.lineTo(b,a+d);this.closePath();this.fill();this.currentPath_=f};i.createLinearGradient=function(b,
|
24
|
+
a,c,d){var f=new D("gradient");f.x0_=b;f.y0_=a;f.x1_=c;f.y1_=d;return f};i.createRadialGradient=function(b,a,c,d,f,h){var g=new D("gradientradial");g.x0_=b;g.y0_=a;g.r0_=c;g.x1_=d;g.y1_=f;g.r1_=h;return g};i.drawImage=function(b){var a,c,d,f,h,g,l,e,m=b.runtimeStyle.width,r=b.runtimeStyle.height;b.runtimeStyle.width="auto";b.runtimeStyle.height="auto";var n=b.width,o=b.height;b.runtimeStyle.width=m;b.runtimeStyle.height=r;if(arguments.length==3){a=arguments[1];c=arguments[2];h=g=0;l=d=n;e=f=o}else if(arguments.length==
|
25
|
+
5){a=arguments[1];c=arguments[2];d=arguments[3];f=arguments[4];h=g=0;l=n;e=o}else if(arguments.length==9){h=arguments[1];g=arguments[2];l=arguments[3];e=arguments[4];a=arguments[5];c=arguments[6];d=arguments[7];f=arguments[8]}else throw Error("Invalid number of arguments");var q=this.getCoords_(a,c),t=[];t.push(" <g_vml_:group",' coordsize="',k*10,",",k*10,'"',' coordorigin="0,0"',' style="width:',10,"px;height:",10,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]){var E=[];E.push("M11=",
|
26
|
+
this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",j(q.x/k),",","Dy=",j(q.y/k),"");var p=q,z=this.getCoords_(a+d,c),w=this.getCoords_(a,c+f),x=this.getCoords_(a+d,c+f);p.x=s.max(p.x,z.x,w.x,x.x);p.y=s.max(p.y,z.y,w.y,x.y);t.push("padding:0 ",j(p.x/k),"px ",j(p.y/k),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",E.join(""),", sizingmethod='clip');")}else t.push("top:",j(q.y/k),"px;left:",j(q.x/k),"px;");t.push(' ">','<g_vml_:image src="',b.src,
|
27
|
+
'"',' style="width:',k*d,"px;"," height:",k*f,'px;"',' cropleft="',h/n,'"',' croptop="',g/o,'"',' cropright="',(n-h-l)/n,'"',' cropbottom="',(o-g-e)/o,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",t.join(""))};i.stroke=function(b){var a=[],c=P(b?this.fillStyle:this.strokeStyle),d=c.color,f=c.alpha*this.globalAlpha;a.push("<g_vml_:shape",' filled="',!!b,'"',' style="position:absolute;width:',10,"px;height:",10,'px;"',' coordorigin="0 0" coordsize="',k*10," ",k*10,'"',' stroked="',
|
28
|
+
!b,'"',' path="');var h={x:null,y:null},g={x:null,y:null},l=0;for(;l<this.currentPath_.length;l++){var e=this.currentPath_[l];switch(e.type){case "moveTo":a.push(" m ",j(e.x),",",j(e.y));break;case "lineTo":a.push(" l ",j(e.x),",",j(e.y));break;case "close":a.push(" x ");e=null;break;case "bezierCurveTo":a.push(" c ",j(e.cp1x),",",j(e.cp1y),",",j(e.cp2x),",",j(e.cp2y),",",j(e.x),",",j(e.y));break;case "at":case "wa":a.push(" ",e.type," ",j(e.x-this.arcScaleX_*e.radius),",",j(e.y-this.arcScaleY_*e.radius),
|
29
|
+
" ",j(e.x+this.arcScaleX_*e.radius),",",j(e.y+this.arcScaleY_*e.radius)," ",j(e.xStart),",",j(e.yStart)," ",j(e.xEnd),",",j(e.yEnd));break}if(e){if(h.x==null||e.x<h.x)h.x=e.x;if(g.x==null||e.x>g.x)g.x=e.x;if(h.y==null||e.y<h.y)h.y=e.y;if(g.y==null||e.y>g.y)g.y=e.y}}a.push(' ">');if(b)if(typeof this.fillStyle=="object"){var m=this.fillStyle,r=0,n={x:0,y:0},o=0,q=1;if(m.type_=="gradient"){var t=m.x1_/this.arcScaleX_,E=m.y1_/this.arcScaleY_,p=this.getCoords_(m.x0_/this.arcScaleX_,m.y0_/this.arcScaleY_),
|
30
|
+
z=this.getCoords_(t,E);r=Math.atan2(z.x-p.x,z.y-p.y)*180/Math.PI;if(r<0)r+=360;if(r<1.0E-6)r=0}else{var p=this.getCoords_(m.x0_,m.y0_),w=g.x-h.x,x=g.y-h.y;n={x:(p.x-h.x)/w,y:(p.y-h.y)/x};w/=this.arcScaleX_*k;x/=this.arcScaleY_*k;var R=s.max(w,x);o=2*m.r0_/R;q=2*m.r1_/R-o}var u=m.colors_;u.sort(function(ba,ca){return ba.offset-ca.offset});var J=u.length,da=u[0].color,ea=u[J-1].color,fa=u[0].alpha*this.globalAlpha,ga=u[J-1].alpha*this.globalAlpha,S=[],l=0;for(;l<J;l++){var T=u[l];S.push(T.offset*q+
|
31
|
+
o+" "+T.color)}a.push('<g_vml_:fill type="',m.type_,'"',' method="none" focus="100%"',' color="',da,'"',' color2="',ea,'"',' colors="',S.join(","),'"',' opacity="',ga,'"',' g_o_:opacity2="',fa,'"',' angle="',r,'"',' focusposition="',n.x,",",n.y,'" />')}else a.push('<g_vml_:fill color="',d,'" opacity="',f,'" />');else{var K=this.lineScale_*this.lineWidth;if(K<1)f*=K;a.push("<g_vml_:stroke",' opacity="',f,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',aa(this.lineCap),
|
32
|
+
'"',' weight="',K,'px"',' color="',d,'" />')}a.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",a.join(""))};i.fill=function(){this.stroke(true)};i.closePath=function(){this.currentPath_.push({type:"close"})};i.getCoords_=function(b,a){var c=this.m_;return{x:k*(b*c[0][0]+a*c[1][0]+c[2][0])-v,y:k*(b*c[0][1]+a*c[1][1]+c[2][1])-v}};i.save=function(){var b={};O(this,b);this.aStack_.push(b);this.mStack_.push(this.m_);this.m_=y(I(),this.m_)};i.restore=function(){O(this.aStack_.pop(),
|
33
|
+
this);this.m_=this.mStack_.pop()};function ha(b){var a=0;for(;a<3;a++){var c=0;for(;c<2;c++)if(!isFinite(b[a][c])||isNaN(b[a][c]))return false}return true}function A(b,a,c){if(!!ha(a)){b.m_=a;if(c)b.lineScale_=W(V(a[0][0]*a[1][1]-a[0][1]*a[1][0]))}}i.translate=function(b,a){A(this,y([[1,0,0],[0,1,0],[b,a,1]],this.m_),false)};i.rotate=function(b){var a=G(b),c=F(b);A(this,y([[a,c,0],[-c,a,0],[0,0,1]],this.m_),false)};i.scale=function(b,a){this.arcScaleX_*=b;this.arcScaleY_*=a;A(this,y([[b,0,0],[0,a,
|
34
|
+
0],[0,0,1]],this.m_),true)};i.transform=function(b,a,c,d,f,h){A(this,y([[b,a,0],[c,d,0],[f,h,1]],this.m_),true)};i.setTransform=function(b,a,c,d,f,h){A(this,[[b,a,0],[c,d,0],[f,h,1]],true)};i.clip=function(){};i.arcTo=function(){};i.createPattern=function(){return new U};function D(b){this.type_=b;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}D.prototype.addColorStop=function(b,a){a=P(a);this.colors_.push({offset:b,color:a.color,alpha:a.alpha})};function U(){}G_vmlCanvasManager=
|
35
|
+
M;CanvasRenderingContext2D=H;CanvasGradient=D;CanvasPattern=U})();
|
@@ -0,0 +1,566 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
3
|
+
<head>
|
4
|
+
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
|
5
|
+
<meta content='en' http-equiv='Content-Language' />
|
6
|
+
<title>metrics</title>
|
7
|
+
<style>
|
8
|
+
/*
|
9
|
+
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
10
|
+
Code licensed under the BSD License:
|
11
|
+
http://developer.yahoo.net/yui/license.txt
|
12
|
+
version: 2.5.2
|
13
|
+
*/
|
14
|
+
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
|
15
|
+
|
16
|
+
/* --------------------------------------------------------------
|
17
|
+
|
18
|
+
buttons.css
|
19
|
+
* Gives you some great CSS-only buttons.
|
20
|
+
|
21
|
+
Created by Kevin Hale [particletree.com]
|
22
|
+
* particletree.com/features/rediscovering-the-button-element
|
23
|
+
|
24
|
+
See Readme.txt in this folder for instructions.
|
25
|
+
|
26
|
+
-------------------------------------------------------------- */
|
27
|
+
|
28
|
+
button {
|
29
|
+
display:block;
|
30
|
+
float:left;
|
31
|
+
margin:0 0.583em 0.667em 0;
|
32
|
+
padding:5px 10px 5px 7px; /* Links */
|
33
|
+
|
34
|
+
border:1px solid #dedede;
|
35
|
+
border-top:1px solid #eee;
|
36
|
+
border-left:1px solid #eee;
|
37
|
+
|
38
|
+
background-color:#f5f5f5;
|
39
|
+
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
|
40
|
+
font-size:100%;
|
41
|
+
line-height:130%;
|
42
|
+
text-decoration:none;
|
43
|
+
font-weight:bold;
|
44
|
+
color:#565656;
|
45
|
+
cursor:pointer;
|
46
|
+
}
|
47
|
+
button {
|
48
|
+
width:auto;
|
49
|
+
overflow:visible;
|
50
|
+
padding:4px 10px 3px 7px; /* IE6 */
|
51
|
+
}
|
52
|
+
button[type] {
|
53
|
+
padding:4px 10px 4px 7px; /* Firefox */
|
54
|
+
line-height:17px; /* Safari */
|
55
|
+
}
|
56
|
+
*:first-child+html button[type] {
|
57
|
+
padding:4px 10px 3px 7px; /* IE7 */
|
58
|
+
}
|
59
|
+
button img {
|
60
|
+
margin:0 3px -3px 0 !important;
|
61
|
+
padding:0;
|
62
|
+
border:none;
|
63
|
+
width:16px;
|
64
|
+
height:16px;
|
65
|
+
float:none;
|
66
|
+
}
|
67
|
+
|
68
|
+
|
69
|
+
/* Button colors
|
70
|
+
-------------------------------------------------------------- */
|
71
|
+
|
72
|
+
/* Standard */
|
73
|
+
button:hover {
|
74
|
+
background-color:#dff4ff;
|
75
|
+
border:1px solid #c2e1ef;
|
76
|
+
color:#336699;
|
77
|
+
}
|
78
|
+
|
79
|
+
/* Positive */
|
80
|
+
body .positive {
|
81
|
+
color:#529214;
|
82
|
+
}
|
83
|
+
button.positive:hover {
|
84
|
+
background-color:#E6EFC2;
|
85
|
+
border:1px solid #C6D880;
|
86
|
+
color:#529214;
|
87
|
+
}
|
88
|
+
|
89
|
+
/* Negative */
|
90
|
+
body .negative {
|
91
|
+
color:#d12f19;
|
92
|
+
}
|
93
|
+
button.negative:hover {
|
94
|
+
background:#fbe3e4;
|
95
|
+
border:1px solid #fbc2c4;
|
96
|
+
color:#d12f19;
|
97
|
+
}
|
98
|
+
|
99
|
+
html {
|
100
|
+
background-color: #e0e0e0; }
|
101
|
+
|
102
|
+
body {
|
103
|
+
font-size: 100%;
|
104
|
+
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
|
105
|
+
color: #333333; }
|
106
|
+
|
107
|
+
a {
|
108
|
+
color: #ed1556;
|
109
|
+
text-decoration: none; }
|
110
|
+
a:hover {
|
111
|
+
color: #ffffff;
|
112
|
+
background-color: #ed1556; }
|
113
|
+
|
114
|
+
#header, #content, #footer {
|
115
|
+
margin: 0 auto;
|
116
|
+
background: #eeeeee;
|
117
|
+
padding: 0 2em;
|
118
|
+
z-index: 0;
|
119
|
+
position: relative;
|
120
|
+
font-size: 1em; }
|
121
|
+
|
122
|
+
#header {
|
123
|
+
background: #ffffff; }
|
124
|
+
#header h1 {
|
125
|
+
font-weight: bold;
|
126
|
+
font-size: 1.5em; }
|
127
|
+
#header address.watermark {
|
128
|
+
position: absolute;
|
129
|
+
font-weight: bold;
|
130
|
+
right: 3em;
|
131
|
+
top: 0;
|
132
|
+
font-size: .75em;
|
133
|
+
color: #cccccc; }
|
134
|
+
#header address.watermark a {
|
135
|
+
color: #cccccc;
|
136
|
+
font-weight: bold;
|
137
|
+
font-size: 2em; }
|
138
|
+
#header address.watermark a:hover {
|
139
|
+
background: transparent;
|
140
|
+
color: #aaaaaa; }
|
141
|
+
|
142
|
+
#content {
|
143
|
+
padding-top: 1em;
|
144
|
+
padding-bottom: 2em; }
|
145
|
+
#content strong {
|
146
|
+
font-weight: bold; }
|
147
|
+
#content em {
|
148
|
+
font-style: italic; }
|
149
|
+
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
|
150
|
+
color: #4e4e4e; }
|
151
|
+
#content h1 {
|
152
|
+
font-size: 2em;
|
153
|
+
font-weight: bold;
|
154
|
+
margin-bottom: .75em;
|
155
|
+
padding: .25em 0;
|
156
|
+
line-height: 1.2;
|
157
|
+
border-bottom: 1px solid #c0c0c0; }
|
158
|
+
#content h2 {
|
159
|
+
font-weight: bold;
|
160
|
+
font-size: 1.5em;
|
161
|
+
margin: 1em 0 .2em; }
|
162
|
+
#content h3 {
|
163
|
+
font-weight: bold;
|
164
|
+
font-size: 1.25em;
|
165
|
+
margin: .25em 0; }
|
166
|
+
#content h4, #content h5, #content h6 {
|
167
|
+
font-weight: bold;
|
168
|
+
margin-top: .5em; }
|
169
|
+
#content code, #content pre, #content textarea, #content input {
|
170
|
+
font-family: Monaco, Deja Vu Sans Mono, Inconsolata, Consolas, monospace; }
|
171
|
+
#content form p {
|
172
|
+
margin-top: 1em;
|
173
|
+
position: relative; }
|
174
|
+
#content form p.checkbox label {
|
175
|
+
margin-top: 0 !important; }
|
176
|
+
#content form input.text, #content form textarea {
|
177
|
+
width: 30em;
|
178
|
+
padding: .2em .4em;
|
179
|
+
color: #4e4e4e; }
|
180
|
+
#content form input.text {
|
181
|
+
height: 1.4em; }
|
182
|
+
#content form label {
|
183
|
+
float: left;
|
184
|
+
display: block;
|
185
|
+
margin-top: .5em;
|
186
|
+
width: 8em;
|
187
|
+
margin-right: .75em; }
|
188
|
+
#content form .with_errors label {
|
189
|
+
background: red;
|
190
|
+
color: white;
|
191
|
+
position: relative;
|
192
|
+
top: -.7em; }
|
193
|
+
#content form .with_errors.required label {
|
194
|
+
position: static;
|
195
|
+
margin-right: .25em;
|
196
|
+
padding: 0 .2em; }
|
197
|
+
#content form .with_errors input, #content form .with_errors textarea {
|
198
|
+
border: 2px solid #f22;
|
199
|
+
background: #fee;
|
200
|
+
color: #222222; }
|
201
|
+
#content form .required label {
|
202
|
+
float: none;
|
203
|
+
display: block;
|
204
|
+
width: auto;
|
205
|
+
position: relative;
|
206
|
+
font-weight: bold;
|
207
|
+
margin-top: 1em;
|
208
|
+
text-indent: -.65em; }
|
209
|
+
#content form .required label:before {
|
210
|
+
content: "* ";
|
211
|
+
color: #ed1556; }
|
212
|
+
#content form .required input.text {
|
213
|
+
width: 25.6em;
|
214
|
+
font-size: 24px;
|
215
|
+
font-weight: bold; }
|
216
|
+
#content form .normal {
|
217
|
+
margin-top: 2em; }
|
218
|
+
#content form h2.notifier label {
|
219
|
+
float: none;
|
220
|
+
width: auto;
|
221
|
+
margin-right: 0; }
|
222
|
+
#content form h2.notifier label .warning {
|
223
|
+
font-size: .5em;
|
224
|
+
font-weight: normal;
|
225
|
+
color: #999999; }
|
226
|
+
#content form fieldset {
|
227
|
+
padding-bottom: 1em;
|
228
|
+
margin-left: 1.35em;
|
229
|
+
border-bottom: 1px solid #c0c0c0;
|
230
|
+
margin-bottom: 1em; }
|
231
|
+
#content form fieldset h3 {
|
232
|
+
margin-top: 1em;
|
233
|
+
margin-bottom: 0; }
|
234
|
+
#content form fieldset p.normal {
|
235
|
+
margin-top: 1em; }
|
236
|
+
#content form fieldset p label {
|
237
|
+
width: 6.7em; }
|
238
|
+
#content form p.submit {
|
239
|
+
margin-top: 2em; }
|
240
|
+
#content form p.submit:after {
|
241
|
+
display: block;
|
242
|
+
clear: both;
|
243
|
+
float: none;
|
244
|
+
content: ".";
|
245
|
+
text-indent: -9999em;
|
246
|
+
text-align: left; }
|
247
|
+
#content form p.submit.destroy button, #content form p.submit.manual-build button {
|
248
|
+
float: none;
|
249
|
+
display: inline; }
|
250
|
+
#content form p.submit.manual-build button {
|
251
|
+
margin-right: 0; }
|
252
|
+
#content #build form, #content #last_build form {
|
253
|
+
font-size: .75em; }
|
254
|
+
#content #build form p.submit, #content #last_build form p.submit {
|
255
|
+
margin: 0;
|
256
|
+
padding: 0;
|
257
|
+
position: absolute;
|
258
|
+
right: .5em;
|
259
|
+
top: 1.25em; }
|
260
|
+
#content .blank_slate p, #content .error p {
|
261
|
+
position: relative;
|
262
|
+
top: .3em; }
|
263
|
+
#content .blank_slate h1, #content .error h1 {
|
264
|
+
border-width: 0;
|
265
|
+
margin: 0;
|
266
|
+
padding: 0; }
|
267
|
+
#content .blank_slate h1 button, #content .error h1 button {
|
268
|
+
float: none;
|
269
|
+
border: 0 none;
|
270
|
+
background: transparent;
|
271
|
+
display: inline;
|
272
|
+
color: #ed1556;
|
273
|
+
padding: 0.25em 0;
|
274
|
+
margin: 0; }
|
275
|
+
#content .blank_slate h1 button:hover, #content .error h1 button:hover {
|
276
|
+
background: #ed1556;
|
277
|
+
color: #ffffff; }
|
278
|
+
#content .error dt {
|
279
|
+
margin-top: 1.4em;
|
280
|
+
margin-bottom: .3em;
|
281
|
+
font-size: 1.75em;
|
282
|
+
font-family: Georgia, Times New Roman, serif; }
|
283
|
+
#content .error dd {
|
284
|
+
line-height: 1.4; }
|
285
|
+
#content .error .backtrace {
|
286
|
+
margin: 1em 0;
|
287
|
+
overflow: scroll;
|
288
|
+
height: 30em;
|
289
|
+
border: 1px solid #c0c0c0;
|
290
|
+
line-height: 1.6; }
|
291
|
+
#content #projects {
|
292
|
+
margin: 1em 0 2em;
|
293
|
+
border-top: 1px solid #c0c0c0; }
|
294
|
+
#content #projects li {
|
295
|
+
position: relative;
|
296
|
+
border-bottom: 1px solid #c0c0c0; }
|
297
|
+
#content #projects li.odd {
|
298
|
+
background: #e6e6e6; }
|
299
|
+
#content #projects li.building {
|
300
|
+
background: transparent url(/spinner.gif) no-repeat scroll right; }
|
301
|
+
#content #projects li a {
|
302
|
+
font-size: 2em;
|
303
|
+
padding: .25em;
|
304
|
+
line-height: 1.2;
|
305
|
+
font-weight: bold;
|
306
|
+
display: block; }
|
307
|
+
#content #projects li a.success {
|
308
|
+
color: #337022; }
|
309
|
+
#content #projects li a.failed {
|
310
|
+
color: #ff1100; }
|
311
|
+
#content #projects li .meta {
|
312
|
+
position: absolute;
|
313
|
+
right: .6em;
|
314
|
+
top: 1.5em;
|
315
|
+
font-size: 0.8em;
|
316
|
+
color: #999999;
|
317
|
+
text-align: right; }
|
318
|
+
#content #projects li.building .meta {
|
319
|
+
right: 1.6em; }
|
320
|
+
#content #projects li.success .meta {
|
321
|
+
color: #337022; }
|
322
|
+
#content #projects li.failed .meta {
|
323
|
+
color: #ff1100; }
|
324
|
+
#content #previous_builds li a {
|
325
|
+
display: block;
|
326
|
+
padding: .25em;
|
327
|
+
margin-bottom: .25em;
|
328
|
+
border-width: 1px;
|
329
|
+
border-style: solid; }
|
330
|
+
#content #previous_builds li a strong {
|
331
|
+
font-size: 1.3em; }
|
332
|
+
#content #previous_builds li a .attribution {
|
333
|
+
font-size: .9em; }
|
334
|
+
#content #projects li.success a, #content #previous_builds li.success a {
|
335
|
+
background-color: #bbf8aa;
|
336
|
+
border-color: #99d688;
|
337
|
+
color: #337022; }
|
338
|
+
#content #projects li.success a .attribution, #content #previous_builds li.success a .attribution {
|
339
|
+
color: #77b466; }
|
340
|
+
#content #projects li.success a:hover, #content #previous_builds li.success a:hover {
|
341
|
+
background-color: #ddffcc; }
|
342
|
+
#content #projects li.failed a, #content #previous_builds li.failed a {
|
343
|
+
background-color: #ffbbaa;
|
344
|
+
border-color: #dd9988;
|
345
|
+
color: #ff1100; }
|
346
|
+
#content #projects li.failed a .attribution, #content #previous_builds li.failed a .attribution {
|
347
|
+
color: #bb7766; }
|
348
|
+
#content #projects li.failed a:hover, #content #previous_builds li.failed a:hover {
|
349
|
+
background-color: #ffddcc; }
|
350
|
+
#content #build, #content #last_build {
|
351
|
+
position: relative; }
|
352
|
+
#content #build h1, #content #build blockquote, #content #last_build h1, #content #last_build blockquote {
|
353
|
+
border-width: 0 1px;
|
354
|
+
border-style: solid; }
|
355
|
+
#content #build h1, #content #last_build h1 {
|
356
|
+
border-top-width: 1px; }
|
357
|
+
#content #build blockquote, #content #last_build blockquote {
|
358
|
+
bottom-bottom-width: 1px;
|
359
|
+
line-height: 1.4; }
|
360
|
+
#content #build.success h1, #content #build.success blockquote, #content #last_build.success h1, #content #last_build.success blockquote {
|
361
|
+
background-color: #bbf8aa;
|
362
|
+
border-color: #99d688 #ccffbb #ccffbb #99d688; }
|
363
|
+
#content #build.success h1, #content #last_build.success h1 {
|
364
|
+
color: #337022; }
|
365
|
+
#content #build.success .meta, #content #last_build.success .meta {
|
366
|
+
color: #77b466; }
|
367
|
+
#content #build.failed h1, #content #build.failed blockquote, #content #last_build.failed h1, #content #last_build.failed blockquote {
|
368
|
+
background-color: #ffbbaa;
|
369
|
+
border-color: #dd9988 #ffccbb #ffccbb #dd9988; }
|
370
|
+
#content #build.failed h1, #content #last_build.failed h1 {
|
371
|
+
color: #ff1100; }
|
372
|
+
#content #build.failed .meta, #content #last_build.failed .meta {
|
373
|
+
color: #bb7766; }
|
374
|
+
#content #build h1, #content #last_build h1 {
|
375
|
+
margin-top: .5em;
|
376
|
+
margin-bottom: 0;
|
377
|
+
padding: .25em;
|
378
|
+
color: #337022; }
|
379
|
+
#content #build blockquote, #content #last_build blockquote {
|
380
|
+
padding: .75em;
|
381
|
+
margin-bottom: 2em; }
|
382
|
+
#content #build blockquote .meta, #content #last_build blockquote .meta {
|
383
|
+
margin-top: 1em;
|
384
|
+
display: block;
|
385
|
+
font-size: .9em; }
|
386
|
+
#content #build pre.output, #content #last_build pre.output {
|
387
|
+
background: #111;
|
388
|
+
color: #fff;
|
389
|
+
padding: .5em;
|
390
|
+
overflow: auto;
|
391
|
+
max-height: 50em;
|
392
|
+
font-size: .825em; }
|
393
|
+
#content #build pre.output .color30, #content #last_build pre.output .color30 {
|
394
|
+
color: #333; }
|
395
|
+
#content #build pre.output .color31, #content #last_build pre.output .color31 {
|
396
|
+
color: #e33; }
|
397
|
+
#content #build pre.output .color32, #content #last_build pre.output .color32 {
|
398
|
+
color: #3e3; }
|
399
|
+
#content #build pre.output .color33, #content #last_build pre.output .color33 {
|
400
|
+
color: #ee3; }
|
401
|
+
#content #build pre.output .color34, #content #last_build pre.output .color34 {
|
402
|
+
color: #33e; }
|
403
|
+
#content #build pre.output .color35, #content #last_build pre.output .color35 {
|
404
|
+
color: #e3e; }
|
405
|
+
#content #build pre.output .color36, #content #last_build pre.output .color36 {
|
406
|
+
color: #3ee; }
|
407
|
+
#content #build pre.output .color37, #content #last_build pre.output .color37 {
|
408
|
+
color: #fff; }
|
409
|
+
#content #push_path {
|
410
|
+
display: block;
|
411
|
+
margin-top: 1em;
|
412
|
+
margin-left: 2em; }
|
413
|
+
|
414
|
+
a.success {
|
415
|
+
color: #bbf8aa; }
|
416
|
+
a.success:hover {
|
417
|
+
background-color: #bbf8aa;
|
418
|
+
color: white; }
|
419
|
+
a.failed {
|
420
|
+
color: #ffbbaa; }
|
421
|
+
a.failed:hover {
|
422
|
+
background-color: #ffbbaa;
|
423
|
+
color: white; }
|
424
|
+
|
425
|
+
#footer {
|
426
|
+
padding: 1.5em 2.5em;
|
427
|
+
border-top: 1px solid #ccc;
|
428
|
+
font-size: .8em;
|
429
|
+
color: #666;
|
430
|
+
text-align: right; }
|
431
|
+
#footer strong {
|
432
|
+
font-weight: bold; }
|
433
|
+
|
434
|
+
table {
|
435
|
+
margin-top: 20px;
|
436
|
+
border-collapse: collapse;
|
437
|
+
border: 1px solid #666;
|
438
|
+
background: #fff;
|
439
|
+
margin-bottom: 20px;
|
440
|
+
}
|
441
|
+
|
442
|
+
table tr.light {
|
443
|
+
background: #fff;
|
444
|
+
}
|
445
|
+
|
446
|
+
table tr.dark {
|
447
|
+
background: #f9f9f9;
|
448
|
+
}
|
449
|
+
|
450
|
+
table tr:hover {
|
451
|
+
background: #FFFFC0;
|
452
|
+
}
|
453
|
+
|
454
|
+
table td, table th {
|
455
|
+
padding: 4px;
|
456
|
+
font-size: 11px;
|
457
|
+
}
|
458
|
+
table th {
|
459
|
+
text-align: center;
|
460
|
+
color: #337022;
|
461
|
+
background: #DDFFCC;
|
462
|
+
font-weight: bold;
|
463
|
+
border: #99D688 1px solid;
|
464
|
+
}
|
465
|
+
|
466
|
+
table td {
|
467
|
+
border: #d0d0d0 1px solid;
|
468
|
+
}
|
469
|
+
|
470
|
+
table td.score {
|
471
|
+
text-align: right;
|
472
|
+
}
|
473
|
+
|
474
|
+
.warning {
|
475
|
+
background: yellow;
|
476
|
+
}
|
477
|
+
.rcov_code td {
|
478
|
+
border-bottom: 1px solid #ddd ;
|
479
|
+
padding: 0;
|
480
|
+
margin: 0;
|
481
|
+
}
|
482
|
+
.rcov_code tr {
|
483
|
+
border: 0px;
|
484
|
+
padding:0px;
|
485
|
+
margin: 0px;
|
486
|
+
}
|
487
|
+
.rcov_code pre {
|
488
|
+
border: 0px;
|
489
|
+
padding: 0px;
|
490
|
+
margin: 0px;
|
491
|
+
}
|
492
|
+
.rcov_run {}
|
493
|
+
.rcov_not_run {
|
494
|
+
background-color: #d88;
|
495
|
+
}
|
496
|
+
.rcov_run a, .rcov_not_run a {
|
497
|
+
text-decoration: none;
|
498
|
+
}
|
499
|
+
.rcov_run a {
|
500
|
+
color: #333;
|
501
|
+
}
|
502
|
+
.rcov_not_run a {
|
503
|
+
color: #000;
|
504
|
+
}
|
505
|
+
.rcov_overflow {
|
506
|
+
overflow: auto;
|
507
|
+
font-size: 50%;
|
508
|
+
}
|
509
|
+
|
510
|
+
.bluff-tooltip {
|
511
|
+
background: #fff;
|
512
|
+
border: 1px solid #d1edf5;
|
513
|
+
padding: 8px 8px 6px;
|
514
|
+
}
|
515
|
+
.bluff-tooltip .color {
|
516
|
+
display: block;
|
517
|
+
height: 4px;
|
518
|
+
width: 30px;
|
519
|
+
margin: 0 0 4px;
|
520
|
+
overflow: hidden;
|
521
|
+
}
|
522
|
+
.bluff-tooltip .data {
|
523
|
+
font-weight: bold;
|
524
|
+
}
|
525
|
+
|
526
|
+
</style>
|
527
|
+
<link REL="SHORTCUT ICON" HREF="/favicon.ico">
|
528
|
+
<script language="javascript" src="js-class.js" type="text/javascript"></script>
|
529
|
+
<script language="javascript" src="bluff-min.js" type="text/javascript"></script>
|
530
|
+
<script language="javascript" src="excanvas.js" type="text/javascript"></script>
|
531
|
+
</head>
|
532
|
+
<body>
|
533
|
+
<div id='header'>
|
534
|
+
<h1><a href="/">metrics</a> | <a href="index.html">ninjs</a></h1>
|
535
|
+
<address class='watermark'>
|
536
|
+
built with
|
537
|
+
<a href='http://metric-fu.rubyforge.org/'>metric-fu</a>
|
538
|
+
</address>
|
539
|
+
</div>
|
540
|
+
<div id='content'>
|
541
|
+
<h3>Flay Results</h3>
|
542
|
+
|
543
|
+
<p><a href='http://ruby.sadi.st/Flay.html'>Flay</a> analyzes ruby code for structural similarities.</p>
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
<canvas id="graph"></canvas>
|
548
|
+
<script language="javascript" src="flay.js?1299355612" type="text/javascript"></script>
|
549
|
+
|
550
|
+
|
551
|
+
<h4>Total Score (lower is better): 0</h4>
|
552
|
+
<h5>Scores less than 100 are not shown or part of the total</h5>
|
553
|
+
|
554
|
+
<table>
|
555
|
+
<tr>
|
556
|
+
<th>Files</th>
|
557
|
+
<th>Matches</th>
|
558
|
+
</tr>
|
559
|
+
|
560
|
+
|
561
|
+
</table>
|
562
|
+
<p>Generated on 2011-03-05 14:06:52 -0600</p>
|
563
|
+
|
564
|
+
</div>
|
565
|
+
</body>
|
566
|
+
</html>
|