o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1354847332.078741: @value"t {I" class:EFI"ProcessedAsset;FI"logical_path;FI".teabag/reporters/jasmine/json-reporter.js;FI" pathname;FI"j/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/reporters/jasmine/json-reporter.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-12-06T19:28:50-07:00;FI" length;FiI" digest;F"%419e186aa66287308f27f43d5402cb25I" source;FI"(function() { Teabag.Reporters.JSONReporter = (function() { var fails, total; fails = []; total = 0; function JSONReporter() { this.start = Date.now(); } JSONReporter.prototype.reportSpecResults = function(spec) { var status; total += 1; if (spec.results().passed()) { status = 'pass'; } else { this.trackFailure(spec); status = 'fail'; } return this.log({ type: 'spec', status: status, description: spec.description, suite: spec.suite.getFullName() }); }; JSONReporter.prototype.reportRunnerResults = function() { this.log({ type: 'results', total: total, failures: fails, elapsed: Date.now() - this.start }); return Teabag.finished = true; }; JSONReporter.prototype.specFilter = function(spec) { var p, param, paramMap, params, _i, _len; paramMap = {}; params = window.location.search.substring(1).split('&'); for (_i = 0, _len = params.length; _i < _len; _i++) { param = params[_i]; p = param.split('='); paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]); } if (!paramMap['spec']) { return true; } return spec.getFullName().indexOf(paramMap.spec) === 0; }; JSONReporter.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(fails.push({ spec: spec.getFullName(), description: item.toString(), trace: item.trace.stack })); } return _results; }; JSONReporter.prototype.log = function(object) { if (object == null) { object = {}; } object['_teabag'] = true; return console.log(JSON.stringify(object)); }; return JSONReporter; })(); }).call(this); ;TI"dependency_digest;F"%8b1a2d369331ca1e20c80d7d49020d42I"required_paths;F[I"j/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/reporters/jasmine/json-reporter.coffee;FI"dependency_paths;F[{I" path;FI"j/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/reporters/jasmine/json-reporter.coffee;FI" mtime;FI"2012-12-06T19:28:50-07:00;FI" digest;F"%4c2029d1b295f08dae3993b70bbe4db7I" _version;F"%6776f581a4329e299531e1d52aa59832