o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1337093725.6100988: @value"Á {I" class:EFI"ProcessedAsset;FI"logical_path;F"%ems/lib/batman/docs/percolate.jsI" pathname;F"q/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/lib/batman/docs/percolate.jsI"content_type;FI"application/javascript;FI" mtime;FI"2012-05-14T17:32:22+01:00;FI" length;FiXI" digest;F"%94005a5d979ad57831a2ecf9c667d03aI" source;FI"X(function() { var coffee, exportHelpers, fs, glob, jqueryPath, oldErrorHandler, path, percolate, qqunit, testDir, __hasProp = {}.hasOwnProperty, __slice = [].slice; glob = require('glob'); path = require('path'); fs = require('fs'); coffee = require('coffee-script'); qqunit = require('qqunit'); oldErrorHandler = window.onerror; delete window.onerror; percolate = require('percolate'); testDir = path.resolve(__dirname, '..', 'tests'); jqueryPath = path.join(testDir, 'lib', 'jquery.js'); exportHelpers = function(object) { var k, v, _results; _results = []; for (k in object) { if (!__hasProp.call(object, k)) continue; v = object[k]; _results.push(global[k] = v); } return _results; }; qqunit.Environment.jsdom.jQueryify(window, jqueryPath, function(window, jQuery) { var docs; try { global.jQuery = jQuery; exportHelpers(require(path.join(testDir, 'batman', 'test_helper'))); global.Batman = require(path.join('..', 'lib', 'dist', 'batman.node')); exportHelpers(require(path.join(testDir, 'batman', 'model', 'model_helper'))); TestStorageAdapter.autoCreate = false; docs = glob.sync("" + __dirname + "/**/*.percolate").map(function(doc) { return path.resolve(process.cwd(), doc); }); console.log("Running Batman doc suite."); if (process.argv[2] === '--test-only') { return percolate.test.apply(percolate, [__dirname].concat(__slice.call(docs), [function(error, stats) { return process.exit(stats.failed); }])); } else { return percolate.generate.apply(percolate, [__dirname].concat(__slice.call(docs), [function(error, stats, output) { if (error) { throw error; } if (!(stats.failed > 0)) { fs.writeFileSync(path.join(__dirname, 'batman.html'), output); console.log("Docs written."); } return process.exit(stats.failed); }])); } } catch (e) { console.error(e.stack); return process.exit(1); } }); }).call(this); ;FI"dependency_digest;F"%99e7dd446fbd5e2f97de28f1fa4fa8c7I"required_paths;F["q/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/lib/batman/docs/percolate.jsI"dependency_paths;F[{I" path;F"q/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/lib/batman/docs/percolate.jsI" mtime;FI"2012-05-14T17:32:22+01:00;FI" digest;F"%94005a5d979ad57831a2ecf9c667d03aI" _version;F"%9f3b95dd7ea3030dc35985c0a8020862