From 133c26f34260688193c2211408f43e76c8d9f2b4 Mon Sep 17 00:00:00 2001 From: Benjamin Lupton Date: Sun, 15 Jul 2012 13:46:46 +1000 Subject: [PATCH] Removed out dirs from the git repo. Added static env config for clean urls (in which it will be disabled). --- out/ruby.plugin.js | 56 ---------------------------------------------- out/ruby.tester.js | 21 ----------------- 2 files changed, 77 deletions(-) delete mode 100644 out/ruby.plugin.js delete mode 100644 out/ruby.tester.js diff --git a/out/ruby.plugin.js b/out/ruby.plugin.js deleted file mode 100644 index ba8b503..0000000 --- a/out/ruby.plugin.js +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by CoffeeScript 1.3.3 -(function() { - var __hasProp = {}.hasOwnProperty, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; - - module.exports = function(BasePlugin) { - var RubyPlugin; - return RubyPlugin = (function(_super) { - - __extends(RubyPlugin, _super); - - function RubyPlugin() { - return RubyPlugin.__super__.constructor.apply(this, arguments); - } - - RubyPlugin.prototype.name = 'ruby'; - - RubyPlugin.prototype.priority = 700; - - RubyPlugin.prototype.render = function(opts, next) { - var content, data, errors, exec, file, inExtension, outExtension, result, ruby, source, spawn, templateData, _ref; - inExtension = opts.inExtension, outExtension = opts.outExtension, templateData = opts.templateData, content = opts.content, file = opts.file; - if (inExtension === 'rb' || inExtension === 'ruby' || inExtension === 'erb') { - _ref = require('child_process'), spawn = _ref.spawn, exec = _ref.exec; - data = JSON.stringify(file.getMeta().toJSON()); - source = "content = <<-EOF\n" + (templateData.content || '') + "\nEOF\ndocument = Hash.new()\nrequire 'rubygems' unless defined? Gem\nrequire 'json'\ndocument = JSON.parse <<-EOF\n" + data + "\nEOF\n"; - source += inExtension === 'erb' ? "require 'erb'\ntemplate = ERB.new <<-EOF\n" + content + "\nEOF\nputs template.result(binding)" : content; - result = ''; - errors = ''; - ruby = spawn('ruby'); - ruby.stdout.on('data', function(data) { - return result += data.toString(); - }); - ruby.stderr.on('data', function(data) { - return errors += data.toString(); - }); - ruby.on('exit', function() { - if (errors) { - return next(new Error(errors)); - } - opts.content = result; - return next(); - }); - ruby.stdin.write(source); - return ruby.stdin.end(); - } else { - return next(); - } - }; - - return RubyPlugin; - - })(BasePlugin); - }; - -}).call(this); diff --git a/out/ruby.tester.js b/out/ruby.tester.js deleted file mode 100644 index a4f9151..0000000 --- a/out/ruby.tester.js +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by CoffeeScript 1.3.3 -(function() { - var __hasProp = {}.hasOwnProperty, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; - - module.exports = function(testers) { - var MyTester; - return MyTester = (function(_super) { - - __extends(MyTester, _super); - - function MyTester() { - return MyTester.__super__.constructor.apply(this, arguments); - } - - return MyTester; - - })(testers.RendererTester); - }; - -}).call(this);