spec/dummy/tmp/cache/assets/D37/300/sprockets%2F2d0e503e6a7c7c7fdc9912501b2f6b43 in teabag-0.5.1 vs spec/dummy/tmp/cache/assets/D37/300/sprockets%2F2d0e503e6a7c7c7fdc9912501b2f6b43 in teabag-0.5.2

- old
+ new

@@ -1,72 +1,40 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1354671203.754014: @value"j {I" +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357960473.991932: @value"t{I" class:EFI"ProcessedAsset;FI"logical_path;FI"teabag.js;FI" pathname;FI"F/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag.js;FI"content_type;FI"application/javascript;FI" -mtime;FI"2012-12-04T18:33:22-07:00;FI" length;FiI" digest;F"%d7ab6fd9991d919ae3b1ce1ed7965fb0I" source;FI" -// require_tree ./teabag -window.Teabag = (function() { - - Teabag.defer = false; - Teabag.executed = false; - Teabag.fixturePath = ''; - - Teabag.setup = function() { - if (window.mocha) mocha.setup('bdd'); - }; - - Teabag.execute = function(fixturePath) { - this.fixturePath = fixturePath; - if (!this.defer && !this.executed) { - this.executed = true; - if (window.mocha) { - mocha.run(); - } else { - this.jasmineEnv().execute(); - } +mtime;FI"2013-01-11T20:10:30-07:00;FI" length;Fi I" digest;F"%1fc50f68cc075496d2a3f3effe4d4a6cI" source;FI" window.onload = function() { + var files = $u("#teabag-suite-list .file a"); + var input = $u("#teabag-filter-input")[0]; + input.onkeyup = function() { + for (var i = 0; i < files.length; ++i) { + var score = LiquidMetal.score(files[i].innerHTML, input.value); + if (score > 0) files[i].parentNode.style.display = "block"; + else files[i].parentNode.style.display = "none"; } - this.defer = false; - }; - - Teabag.jasmineEnv = function() { - var jasmineEnv = jasmine.getEnv(); - jasmineEnv.updateInterval = 1000; - - var jsApiReporter = new jasmine.JsApiReporter(); - jasmineEnv.addReporter(jsApiReporter); - - this.addFixturePaths(jasmineEnv); - this.addReporters(jasmineEnv); - - return jasmineEnv; - }; - - Teabag.addReporters = function(jasmineEnv) { - if (navigator.userAgent.match(/PhantomJS/)) { - var trivialReporter = new jasmine.TrivialReporter(); - jasmineEnv.addReporter(trivialReporter); - - var reporter = new jasmine.ConsoleReporter(); - jasmineEnv.addReporter(reporter); - } else { - var reporter = new Teabag.HtmlReporter(); - jasmineEnv.addReporter(reporter); - - jasmineEnv.specFilter = function(spec) { - return reporter.specFilter(spec); - }; - } } +}; - Teabag.addFixturePaths = function(jasmineEnv) { - if (!jasmine.getFixtures) return; - jasmine.getFixtures().fixturesPath = this.fixturePath; - jasmine.getStyleFixtures().fixturesPath = this.fixturePath; - jasmine.getJSONFixtures().fixturesPath = this.fixturePath; - }; +` +/*! + * LiquidMetal, version: 0.1 (2009-02-05) + * + * A mimetic poly-alloy of Quicksilver's scoring algorithm, essentially + * LiquidMetal. + * + * For usage and examples, visit: + * http://github.com/rmm5t/liquidmetal + * + * Licensed under the MIT: + * http://www.opensource.org/licenses/mit-license.php + * + * Copyright (c) 2009, Ryan McGeary (ryanonjavascript -[at]- mcgeary [*dot*] org) + */ +var LiquidMetal=function(){var l=0.0;var m=1.0;var n=0.8;var o=0.9;var p=0.85;return{score:function(a,b){if(b.length==0)return n;if(b.length>a.length)return l;var c=this.buildScoreArray(a,b);var d=0.0;for(var i=0;i<c.length;i++){d+=c[i]}return(d/c.length)},buildScoreArray:function(a,b){var d=new Array(a.length);var e=a.toLowerCase();var f=b.toLowerCase().split("");var g=-1;var h=false;for(var i=0;i<f.length;i++){var c=f[i];var j=e.indexOf(c,g+1);if(j<0)return fillArray(d,l);if(j==0)h=true;if(isNewWord(a,j)){d[j-1]=1;fillArray(d,p,g+1,j-1)}else if(isUpperCase(a,j)){fillArray(d,p,g+1,j)}else{fillArray(d,l,g+1,j)}d[j]=m;g=j}var k=h?o:n;fillArray(d,k,g+1);return d}};function isUpperCase(a,b){var c=a.charAt(b);return("A"<=c&&c<="Z")}function isNewWord(a,b){var c=a.charAt(b-1);return(c==" "||c=="\t")}function fillArray(a,b,c,d){c=Math.max(c||0,0);d=Math.min(d||a.length,a.length);for(var i=c;i<d;i++){a[i]=b}return a}}(); - function Teabag() {} - return Teabag; - -})(); - -Teabag.setup(); -;FI"dependency_digest;F"%6a086b71c9c1c4deb0875c6457e02727I"required_paths;F[I"F/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag.js;FI"dependency_paths;F[{I" path;FI"F/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag.js;FI" -mtime;FI"2012-12-04T18:33:22-07:00;FI" digest;F"%526e9db9af2afdb8898aad9b21c61d23I" _version;F"%6776f581a4329e299531e1d52aa59832 +/*! + * uSelector + * author: Fabio Miranda Costa | github: fabiomcosta | twitter: @fabiomiranda | license: MIT-style license + */ +(function(h,i){var f,c,j,k,m={},e,l,q=/^\s+|\s+$/g,r=!!i.querySelectorAll,g=function(d,b,a){f=a||[];e=b||g.context;if(r)try{n(e.querySelectorAll(d));return f}catch(v){}l=e.ownerDocument||e;d=d.replace(q,"");for(c={};d=d.replace(/([#.:])?([^#.:]*)/,s););d=(b=c.id)&&c.tag||c.classes||c.pseudos||!b&&(c.classes||c.pseudos)?t:o;if(b){if(a=b=l.getElementById(b))if(!(a=l===e))a:{a=b;do if(a===e){a=true;break a}while(a=a.parentNode);a=false}a&&d([b])}else d(e.getElementsByTagName(c.tag||"*"));return f},u=function(d){if(c.tag){var b=d.nodeName.toUpperCase();if(c.tag=="*"){if(b<"@")return false}else if(b!=c.tag)return false}if(c.id&&d.getAttribute("id")!=c.id)return false;if(j=c.classes){var a=" "+d.className+" ";for(b=j.length;b--;)if(a.indexOf(" "+j[b]+" ")<0)return false}if(k=c.pseudos)for(b=k.length;b--;){a=m[k[b]];if(!(a&&a.call(g,d)))return false}return true},s=function(d,b,a){if(b)if(b=="#")c.id=a;else if(b==".")if(c.classes)c.classes.push(a);else c.classes=[a];else{if(b==":")if(c.pseudos)c.pseudos.push(a);else c.pseudos=[a]}else c.tag=a.toUpperCase();return""},p=Array.prototype.slice,n=function(d){f=p.call(d,0)},o=function(d){for(var b=0,a;a=d[b++];)f.push(a)};try{p.call(i.documentElement.childNodes,0)}catch(w){n=o}var t=function(d){for(var b=0,a;a=d[b++];)u(a)&&f.push(a)};g.pseudos=m;g.context=i;h.uSelector=g;h.$u||(h.$u=g)})(this,document); +` +; +;FI"dependency_digest;F"%f37ff6d4e04e270ed8a9d1ea75870588I"required_paths;F[I"F/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag.js;FI"dependency_paths;F[{I" path;FI"F/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag.js;FI" +mtime;FI"2013-01-11T20:10:30-07:00;FI" digest;F"%07d75e8fb52477199ae05deb7fe491c1I" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file