o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1355084604.156106: @value"&{I" class:EFI"BundledAsset;FI"logical_path;FI"teabag/teabag-base.js;FI" pathname;FI"V/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/teabag-base.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-12-09T13:17:14-07:00;FI" length;FiJ I" digest;F"%dc0a59fa0947c6789fb8b6f1de59c28fI" source;FI"J (function() { Teabag.ConsoleReporterBase = (function() { function ConsoleReporterBase() { this.fails = []; this.total = 0; this.start = Date.now(); } ConsoleReporterBase.prototype.reportSpecResults = function(spec) { var status; if (spec.results().passed()) { status = "pass"; } else if (spec.results.skipped) { status = "skipped"; } else { this.trackFailure(spec); status = "fail"; } this.total += 1; return this.log({ type: "spec", status: status, description: spec.description, suite: spec.suite.getFullName() }); }; ConsoleReporterBase.prototype.reportRunnerResults = function() { this.log({ type: "results", total: this.total, failures: this.fails, elapsed: ((Date.now() - this.start) / 1000).toFixed(5) }); return Teabag.finished = true; }; ConsoleReporterBase.prototype.trackFailure = function(spec) { var item, _i, _len, _ref, _results; _ref = spec.results().getItems(); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { item = _ref[_i]; _results.push(this.fails.push({ spec: spec.getFullName(), description: item.toString(), link: "?grep=" + (encodeURIComponent(spec.getFullName())), trace: item.trace.stack || item.trace.toString() })); } return _results; }; ConsoleReporterBase.prototype.log = function(obj) { if (obj == null) { obj = {}; } obj["_teabag"] = true; return console.log(JSON.stringify(obj)); }; return ConsoleReporterBase; })(); Teabag.View = (function() { function View() { this.build(); } View.prototype.build = function(className) { return this.el = this.createEl("li", className); }; View.prototype.appendTo = function(el) { return el.appendChild(this.el); }; View.prototype.append = function(el) { return this.el.appendChild(el); }; View.prototype.createEl = function(type, className) { var el; if (className == null) { className = ""; } el = document.createElement(type); el.className = className; return el; }; View.prototype.findEl = function(id) { var _base; this.elements || (this.elements = []); return (_base = this.elements)[id] || (_base[id] = document.getElementById("teabag-" + id)); }; View.prototype.setText = function(id, value) { var el; el = this.findEl(id); return el.innerText = value; }; View.prototype.setHtml = function(id, value, add) { var el; if (add == null) { add = false; } el = this.findEl(id); if (add) { return el.innerHTML += value; } else { return el.innerHTML = value; } }; View.prototype.setClass = function(id, value) { var el; el = this.findEl(id); return el.className = value; }; return View; })(); }).call(this); ;FI"required_assets_digest;F"%b6d3f8281571bea2ad126248444bca2fI" _version;F"%6776f581a4329e299531e1d52aa59832