Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated dependencies

  • Loading branch information...
commit 3480ab4edeee53b11b2b24e41988b7992d85e572 1 parent ca5f223
@MSNexploder authored
View
1  Cakefile
@@ -94,6 +94,7 @@ runTests = (callback) ->
process.stdout.write stdout
process.stderr.write stderr
callback err if callback
+
task "test", "Run all tests", ->
runTests (err) ->
process.stdout.on "drain", -> process.exit -1 if err
View
64 client/inflect.js
@@ -26,7 +26,8 @@ require.resolve = (function () {
if (require._core[x]) return x;
var path = require.modules.path();
- var y = cwd || '.';
+ cwd = path.resolve('/', cwd);
+ var y = cwd || '/';
if (x.match(/^(?:\.\.?\/|\/)/)) {
var m = loadAsFileSync(path.resolve(y, x))
@@ -115,7 +116,11 @@ require.alias = function (from, to) {
}
var basedir = path.dirname(res);
- var keys = Object_keys(require.modules);
+ var keys = (Object.keys || function (obj) {
+ var res = [];
+ for (var key in obj) res.push(key)
+ return res;
+ })(require.modules);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
@@ -160,17 +165,34 @@ require.define = function (filename, fn) {
};
};
-var Object_keys = Object.keys || function (obj) {
- var res = [];
- for (var key in obj) res.push(key)
- return res;
-};
-
if (typeof process === 'undefined') process = {};
-if (!process.nextTick) process.nextTick = function (fn) {
- setTimeout(fn, 0);
-};
+if (!process.nextTick) process.nextTick = (function () {
+ var queue = [];
+ var canPost = typeof window !== 'undefined'
+ && window.postMessage && window.addEventListener
+ ;
+
+ if (canPost) {
+ window.addEventListener('message', function (ev) {
+ if (ev.source === window && ev.data === 'browserify-tick') {
+ ev.stopPropagation();
+ if (queue.length > 0) {
+ var fn = queue.shift();
+ fn();
+ }
+ }
+ }, true);
+ }
+
+ return function (fn) {
+ if (canPost) {
+ queue.push(fn);
+ window.postMessage('browserify-tick', '*');
+ }
+ else setTimeout(fn, 0);
+ };
+})();
if (!process.title) process.title = 'browser';
@@ -182,7 +204,7 @@ if (!process.binding) process.binding = function (name) {
if (!process.cwd) process.cwd = function () { return '.' };
require.define("path", function (require, module, exports, __dirname, __filename) {
- function filter (xs, fn) {
+function filter (xs, fn) {
var res = [];
for (var i = 0; i < xs.length; i++) {
if (fn(xs[i], i, xs)) res.push(xs[i]);
@@ -320,12 +342,12 @@ exports.extname = function(path) {
});
require.define("/node_modules/files", function (require, module, exports, __dirname, __filename) {
- module.exports = {"package.json":"{\n \"name\": \"inflect\",\n \"description\": \"A port of the Rails / ActiveSupport inflector to JavaScript.\",\n \"keywords\": [\"inflect\", \"activerecord\", \"rails\", \"activesupport\", \"string\"],\n \"version\": \"0.2.0\",\n \"author\": \"Stefan Huber <MSNexploder@gmail.com>\",\n \"homepage\": \"http://msnexploder.github.com/inflect/\",\n \"main\": \"lib/inflect\",\n \"files\": [\n \"Cakefile\",\n \"CHANGELOG.md\",\n \"doc\",\n \"lib\",\n \"LICENSE\",\n \"README.md\",\n \"spec\",\n \"src\"\n ],\n \"scripts\": {\n \"test\": \"cake test\"\n },\n \"directories\": {\n \"doc\":\"./doc\",\n \"lib\":\"./lib\"\n },\n \"engines\": {\n \"node\": \">= 0.4.x <= 0.6.x\"\n },\n \"devDependencies\": {\n \"coffee-script\": \">= 1.1.2 < 2.0.0\",\n \"docco\": \">= 0.3.0 < 0.4.0\",\n \"vows\": \">= 0.6.0 < 0.7.0\",\n \"browserify\": \">= 1.8.1 < 1.9.0\",\n \"fileify\": \">= 0.3.1 < 0.4.0\",\n \"uglify-js\": \">= 1.1.1 < 1.2.0\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/MSNexploder/inflect.git\"\n },\n \"bugs\": { \"url\": \"https://github.com/MSNexploder/inflect/issues\" },\n \"licenses\": [\n { \"type\": \"MIT\",\n \"url\": \"https://github.com/MSNexploder/inflect/raw/master/LICENSE\"\n }\n ]\n}"}
+module.exports = {"package.json":"{\n \"name\": \"inflect\",\n \"description\": \"A port of the Rails / ActiveSupport inflector to JavaScript.\",\n \"keywords\": [\"inflect\", \"activerecord\", \"rails\", \"activesupport\", \"string\"],\n \"version\": \"0.2.0\",\n \"author\": \"Stefan Huber <MSNexploder@gmail.com>\",\n \"homepage\": \"http://msnexploder.github.com/inflect/\",\n \"main\": \"lib/inflect\",\n \"files\": [\n \"Cakefile\",\n \"CHANGELOG.md\",\n \"doc\",\n \"lib\",\n \"LICENSE\",\n \"README.md\",\n \"spec\",\n \"src\"\n ],\n \"scripts\": {\n \"test\": \"cake test\"\n },\n \"directories\": {\n \"doc\":\"./doc\",\n \"lib\":\"./lib\"\n },\n \"engines\": {\n \"node\": \">= 0.4 <= 0.6\"\n },\n \"devDependencies\": {\n \"coffee-script\": \">= 1.2.0 < 2.0.0\",\n \"docco\": \">= 0.3.0 < 0.4.0\",\n \"vows\": \">= 0.6.2 < 0.7.0\",\n \"browserify\": \">= 1.10.4 < 1.11.0\",\n \"fileify\": \">= 0.3.1 < 0.4.0\",\n \"uglify-js\": \">= 1.2.6 < 1.3.0\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/MSNexploder/inflect.git\"\n },\n \"bugs\": { \"url\": \"https://github.com/MSNexploder/inflect/issues\" },\n \"licenses\": [\n { \"type\": \"MIT\",\n \"url\": \"https://github.com/MSNexploder/inflect/raw/master/LICENSE\"\n }\n ]\n}"}
});
require.define("/inflect/index.coffee", function (require, module, exports, __dirname, __filename) {
- (function() {
+(function() {
var Inflections, inflections, methods, number_extensions, string_extensions, version;
version = require('./version');
@@ -387,7 +409,7 @@ require.define("/inflect/index.coffee", function (require, module, exports, __di
});
require.define("/inflect/version.coffee", function (require, module, exports, __dirname, __filename) {
- (function() {
+(function() {
var data, path;
path = require('path');
@@ -407,12 +429,12 @@ require.define("/inflect/version.coffee", function (require, module, exports, __
});
require.define("fs", function (require, module, exports, __dirname, __filename) {
- // nothing to see here... no file methods for the browser
+// nothing to see here... no file methods for the browser
});
require.define("/inflect/inflections.coffee", function (require, module, exports, __dirname, __filename) {
- (function() {
+(function() {
var Inflections;
var __slice = Array.prototype.slice;
@@ -506,7 +528,7 @@ require.define("/inflect/inflections.coffee", function (require, module, exports
});
require.define("/inflect/methods.coffee", function (require, module, exports, __dirname, __filename) {
- (function() {
+(function() {
var camelize, capitalize, dasherize, humanize, inflections, ordinalize, parameterize, pluralize, singularize, titleize, underscore;
inflections = require('../inflect').inflections;
@@ -669,7 +691,7 @@ require.define("/inflect/methods.coffee", function (require, module, exports, __
});
require.define("/inflect/string_extensions.coffee", function (require, module, exports, __dirname, __filename) {
- (function() {
+(function() {
var enableStringExtensions, inflect;
inflect = require('../inflect');
@@ -713,7 +735,7 @@ require.define("/inflect/string_extensions.coffee", function (require, module, e
});
require.define("/inflect/number_extensions.coffee", function (require, module, exports, __dirname, __filename) {
- (function() {
+(function() {
var enableNumberExtensions, inflect;
inflect = require('../inflect');
@@ -731,7 +753,7 @@ require.define("/inflect/number_extensions.coffee", function (require, module, e
});
require.define("/inflect/default_inflections.coffee", function (require, module, exports, __dirname, __filename) {
- (function() {
+(function() {
var inflect;
inflect = require('../inflect');
View
2  client/inflect.min.js
@@ -1 +1 @@
-var require=function(a,b){var c=require.resolve(a,b||"/"),d=require.modules[c];if(!d)throw new Error("Failed to resolve module "+a+", tried "+c);var e=d._cached?d._cached:d();return e};require.paths=[],require.modules={},require.extensions=[".js",".coffee"],require._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},require.resolve=function(){return function(a,b){function g(a){if(require.modules[a])return a;for(var b=0;b<require.extensions.length;b++){var c=require.extensions[b];if(require.modules[a+c])return a+c}}function h(a){a=a.replace(/\/+$/,"");var b=a+"/package.json";if(require.modules[b]){var d=require.modules[b](),e=d.browserify;if(typeof e=="object"&&e.main){var f=g(c.resolve(a,e.main));if(f)return f}else if(typeof e=="string"){var f=g(c.resolve(a,e));if(f)return f}else if(d.main){var f=g(c.resolve(a,d.main));if(f)return f}}return g(a+"/index")}function i(a,b){var c=j(b);for(var d=0;d<c.length;d++){var e=c[d],f=g(e+"/"+a);if(f)return f;var i=h(e+"/"+a);if(i)return i}var f=g(a);if(f)return f}function j(a){var b;a==="/"?b=[""]:b=c.normalize(a).split("/");var d=[];for(var e=b.length-1;e>=0;e--){if(b[e]==="node_modules")continue;var f=b.slice(0,e+1).join("/")+"/node_modules";d.push(f)}return d}b||(b="/");if(require._core[a])return a;var c=require.modules.path(),d=b||".";if(a.match(/^(?:\.\.?\/|\/)/)){var e=g(c.resolve(d,a))||h(c.resolve(d,a));if(e)return e}var f=i(a,d);if(f)return f;throw new Error("Cannot find module '"+a+"'")}}(),require.alias=function(a,b){var c=require.modules.path(),d=null;try{d=require.resolve(a+"/package.json","/")}catch(e){d=require.resolve(a,"/")}var f=c.dirname(d),g=Object_keys(require.modules);for(var h=0;h<g.length;h++){var i=g[h];if(i.slice(0,f.length+1)===f+"/"){var j=i.slice(f.length);require.modules[b+j]=require.modules[f+j]}else i===f&&(require.modules[b]=require.modules[f])}},require.define=function(a,b){var c=require._core[a]?"":require.modules.path().dirname(a),d=function(a){return require(a,c)};d.resolve=function(a){return require.resolve(a,c)},d.modules=require.modules,d.define=require.define;var e={exports:{}};require.modules[a]=function(){return require.modules[a]._cached=e.exports,b.call(e.exports,d,e,e.exports,c,a),require.modules[a]._cached=e.exports,e.exports}};var Object_keys=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};typeof process=="undefined"&&(process={}),process.nextTick||(process.nextTick=function(a){setTimeout(a,0)}),process.title||(process.title="browser"),process.binding||(process.binding=function(a){if(a==="evals")return require("vm");throw new Error("No such module")}),process.cwd||(process.cwd=function(){return"."}),require.define("path",function(a,b,c,d,e){function f(a,b){var c=[];for(var d=0;d<a.length;d++)b(a[d],d,a)&&c.push(a[d]);return c}function g(a,b){var c=0;for(var d=a.length;d>=0;d--){var e=a[d];e=="."?a.splice(d,1):e===".."?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}var h=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;c.resolve=function(){var a="",b=!1;for(var c=arguments.length;c>=-1&&!b;c--){var d=c>=0?arguments[c]:process.cwd();if(typeof d!="string"||!d)continue;a=d+"/"+a,b=d.charAt(0)==="/"}return a=g(f(a.split("/"),function(a){return!!a}),!b).join("/"),(b?"/":"")+a||"."},c.normalize=function(a){var b=a.charAt(0)==="/",c=a.slice(-1)==="/";return a=g(f(a.split("/"),function(a){return!!a}),!b).join("/"),!a&&!b&&(a="."),a&&c&&(a+="/"),(b?"/":"")+a},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(f(a,function(a,b){return a&&typeof a=="string"}).join("/"))},c.dirname=function(a){var b=h.exec(a)[1]||"",c=!1;return b?b.length===1||c&&b.length<=3&&b.charAt(1)===":"?b:b.substring(0,b.length-1):"."},c.basename=function(a,b){var c=h.exec(a)[2]||"";return b&&c.substr(-1*b.length)===b&&(c=c.substr(0,c.length-b.length)),c},c.extname=function(a){return h.exec(a)[3]||""}}),require.define("/node_modules/files",function(a,b,c,d,e){b.exports={"package.json":'{\n "name": "inflect",\n "description": "A port of the Rails / ActiveSupport inflector to JavaScript.",\n "keywords": ["inflect", "activerecord", "rails", "activesupport", "string"],\n "version": "0.2.0",\n "author": "Stefan Huber <MSNexploder@gmail.com>",\n "homepage": "http://msnexploder.github.com/inflect/",\n "main": "lib/inflect",\n "files": [\n "Cakefile",\n "CHANGELOG.md",\n "doc",\n "lib",\n "LICENSE",\n "README.md",\n "spec",\n "src"\n ],\n "scripts": {\n "test": "cake test"\n },\n "directories": {\n "doc":"./doc",\n "lib":"./lib"\n },\n "engines": {\n "node": ">= 0.4.x <= 0.6.x"\n },\n "devDependencies": {\n "coffee-script": ">= 1.1.2 < 2.0.0",\n "docco": ">= 0.3.0 < 0.4.0",\n "vows": ">= 0.6.0 < 0.7.0",\n "browserify": ">= 1.8.1 < 1.9.0",\n "fileify": ">= 0.3.1 < 0.4.0",\n "uglify-js": ">= 1.1.1 < 1.2.0"\n },\n "repository": {\n "type": "git",\n "url": "https://github.com/MSNexploder/inflect.git"\n },\n "bugs": { "url": "https://github.com/MSNexploder/inflect/issues" },\n "licenses": [\n { "type": "MIT",\n "url": "https://github.com/MSNexploder/inflect/raw/master/LICENSE"\n }\n ]\n}'}}),require.define("/inflect/index.coffee",function(a,b,c,d,e){((function(){var b,d,e,f,g,h;h=a("./version"),c.package=h.package,c.version=h.version,b=a("./inflections").Inflections,d=function(a){return a!=null&&a.call(this,b.instance()),b.instance()},c.Inflections=b,c.inflections=d,e=a("./methods"),c.camelize=e.camelize,c.underscore=e.underscore,c.dasherize=e.dasherize,c.titleize=e.titleize,c.capitalize=e.capitalize,c.pluralize=e.pluralize,c.singularize=e.singularize,c.humanize=e.humanize,c.ordinalize=e.ordinalize,c.parameterize=e.parameterize,g=a("./string_extensions"),f=a("./number_extensions"),c.enableStringExtensions=g.enableStringExtensions,c.enableNumberExtensions=f.enableNumberExtensions,c.enableExtensions=function(){return g.enableStringExtensions(),f.enableNumberExtensions()},a("./default_inflections")})).call(this)}),require.define("/inflect/version.coffee",function(a,b,c,d,e){((function(){var b,e;e=a("path"),process.title==="browser"?b=a("files")["package.json"]:b=a("fs").readFileSync(e.join(d,"/../../package.json")),c.package=JSON.parse(b),c.version=c.package.version})).call(this)}),require.define("fs",function(a,b,c,d,e){}),require.define("/inflect/inflections.coffee",function(a,b,c,d,e){((function(){var a,b=Array.prototype.slice;a=function(){function a(){this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]}return a.instance=function(){return this.__instance__||(this.__instance__=new this)},a.prototype.plural=function(a,b){var c;return typeof a=="string"&&(c=this.uncountables.indexOf(a))!==-1&&this.uncountables.splice(c,1),(c=this.uncountables.indexOf(b))!==-1&&this.uncountables.splice(c,1),this.plurals.unshift([a,b])},a.prototype.singular=function(a,b){var c;return typeof a=="string"&&(c=this.uncountables.indexOf(a))!==-1&&this.uncountables.splice(c,1),(c=this.uncountables.indexOf(b))!==-1&&this.uncountables.splice(c,1),this.singulars.unshift([a,b])},a.prototype.irregular=function(a,b){var c;return(c=this.uncountables.indexOf(a))!==-1&&this.uncountables.splice(c,1),(c=this.uncountables.indexOf(b))!==-1&&this.uncountables.splice(c,1),a[0].toUpperCase()===b[0].toUpperCase()?(this.plural(new RegExp("("+a[0]+")"+a.slice(1)+"$","i"),"$1"+b.slice(1)),this.plural(new RegExp("("+b[0]+")"+b.slice(1)+"$","i"),"$1"+b.slice(1)),this.singular(new RegExp("("+b[0]+")"+b.slice(1)+"$","i"),"$1"+a.slice(1))):(this.plural(new RegExp(""+a[0].toUpperCase()+a.slice(1)+"$"),b[0].toUpperCase()+b.slice(1)),this.plural(new RegExp(""+a[0].toLowerCase()+a.slice(1)+"$"),b[0].toLowerCase()+b.slice(1)),this.plural(new RegExp(""+b[0].toUpperCase()+b.slice(1)+"$"),b[0].toUpperCase()+b.slice(1)),this.plural(new RegExp(""+b[0].toLowerCase()+b.slice(1)+"$"),b[0].toLowerCase()+b.slice(1)),this.singular(new RegExp(""+b[0].toUpperCase()+b.slice(1)+"$"),a[0].toUpperCase()+a.slice(1)),this.singular(new RegExp(""+b[0].toLowerCase()+b.slice(1)+"$"),a[0].toLowerCase()+a.slice(1)))},a.prototype.uncountable=function(){var a;return a=1<=arguments.length?b.call(arguments,0):[],this.uncountables=this.uncountables.concat(a)},a.prototype.human=function(a,b){return this.humans.unshift([a,b])},a.prototype.clear=function(a){return a==null&&(a="all"),a==="all"?(this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]):this[a]=[]},a}(),c.Inflections=a})).call(this)}),require.define("/inflect/methods.coffee",function(a,b,c,d,e){((function(){var b,d,e,f,g,h,i,j,k,l,m;g=a("../inflect").inflections,b=function(a,b){var c;return b==null&&(b=!0),c=a.replace(/_./g,function(a){return a.slice(1).toUpperCase()}),b?a[0].toUpperCase()+c.slice(1):a[0].toLowerCase()+c.slice(1)},m=function(a){var b;return b=a.toString(),b=b.replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2"),b=b.replace(/([a-z\d])([A-Z])/g,"$1_$2"),b=b.replace(/-/g,"_"),b=b.toLowerCase(),b},e=function(a){return a.replace(/_/g,"-")},l=function(a){return f(m(a)).replace(/\b('?[a-z])/g,function(a){return d(a)})},d=function(a){return(a[0]||"").toUpperCase()+(a.slice(1)||"").toLowerCase()},j=function(a){var b,c,d,e,f,h,i;d=a.toString();if(a.length===0||g().uncountables.indexOf(d.toLowerCase())!==-1)return d;i=g().plurals;for(f=0,h=i.length;f<h;f++){b=i[f],e=b[0],c=b[1];if(d.search(e)!==-1){d=d.replace(e,c);break}}return d},k=function(a){var b,c,d,e,f,h,i,j,k,l,m,n;d=a.toString(),h=!1,m=g().uncountables;for(i=0,k=m.length;i<k;i++){b=m[i];if(d.search(new RegExp("\\b"+b+"$","i"))!==-1){h=!0;break}}if(a.length===0||h)return d;n=g().singulars;for(j=0,l=n.length;j<l;j++){f=n[j],e=f[0],c=f[1];if(d.search(e)!==-1){d=d.replace(e,c);break}}return d},f=function(a){var b,c,e,f,h,i,j;e=a.toString(),j=g().humans;for(h=0,i=j.length;h<i;h++){b=j[h],f=b[0],c=b[1];if(e.search(f)!==-1){e=e.replace(f,c);break}}return d(e.replace(/_id$/,"").replace(/_/g," "))},h=function(a){var b;b=parseInt(a,10);if([11,12,13].indexOf(b%100)!==-1)return""+a+"th";switch(b%10){case 1:return""+a+"st";case 2:return""+a+"nd";case 3:return""+a+"rd";default:return""+a+"th"}},i=function(a,b){var c;return b==null&&(b="-"),c=a.toString(),c=c.replace(/[^a-z0-9\-_]+/gi,b),b!=null&&(c=c.replace(new RegExp(""+b+"{2,}","g"),b),c=c.replace(new RegExp("^"+b+"|"+b+"$","gi"),"")),c.toLowerCase()},c.camelize=b,c.underscore=m,c.dasherize=e,c.titleize=l,c.capitalize=d,c.pluralize=j,c.singularize=k,c.humanize=f,c.ordinalize=h,c.parameterize=i})).call(this)}),require.define("/inflect/string_extensions.coffee",function(a,b,c,d,e){((function(){var b,d;d=a("../inflect"),b=function(){return String.prototype.pluralize=function(){return d.pluralize(this)},String.prototype.singularize=function(){return d.singularize(this)},String.prototype.camelize=function(a){return a==null&&(a=!0),d.camelize(this,a)},String.prototype.capitalize=function(){return d.capitalize(this)},String.prototype.titleize=function(){return d.titleize(this)},String.prototype.underscore=function(){return d.underscore(this)},String.prototype.dasherize=function(){return d.dasherize(this)},String.prototype.parameterize=function(a){return a==null&&(a="-"),d.parameterize(this,a)},String.prototype.humanize=function(){return d.humanize(this)}},c.enableStringExtensions=b})).call(this)}),require.define("/inflect/number_extensions.coffee",function(a,b,c,d,e){((function(){var b,d;d=a("../inflect"),b=function(){return Number.prototype.ordinalize=function(){return d.ordinalize(this)}},c.enableNumberExtensions=b})).call(this)}),require.define("/inflect/default_inflections.coffee",function(a,b,c,d,e){((function(){var b;b=a("../inflect"),b.inflections(function(a){return a.plural(/$/,"s"),a.plural(/s$/i,"s"),a.plural(/(ax|test)is$/i,"$1es"),a.plural(/(octop|vir)us$/i,"$1i"),a.plural(/(octop|vir)i$/i,"$1i"),a.plural(/(alias|status)$/i,"$1es"),a.plural(/(bu)s$/i,"$1ses"),a.plural(/(buffal|tomat)o$/i,"$1oes"),a.plural(/([ti])um$/i,"$1a"),a.plural(/([ti])a$/i,"$1a"),a.plural(/sis$/i,"ses"),a.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves"),a.plural(/(hive)$/i,"$1s"),a.plural(/([^aeiouy]|qu)y$/i,"$1ies"),a.plural(/(x|ch|ss|sh)$/i,"$1es"),a.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"),a.plural(/([m|l])ouse$/i,"$1ice"),a.plural(/([m|l])ice$/i,"$1ice"),a.plural(/^(ox)$/i,"$1en"),a.plural(/^(oxen)$/i,"$1"),a.plural(/(quiz)$/i,"$1zes"),a.singular(/s$/i,""),a.singular(/(n)ews$/i,"$1ews"),a.singular(/([ti])a$/i,"$1um"),a.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i,"$1$2sis"),a.singular(/(^analy)ses$/i,"$1sis"),a.singular(/([^f])ves$/i,"$1fe"),a.singular(/(hive)s$/i,"$1"),a.singular(/(tive)s$/i,"$1"),a.singular(/([lr])ves$/i,"$1f"),a.singular(/([^aeiouy]|qu)ies$/i,"$1y"),a.singular(/(s)eries$/i,"$1eries"),a.singular(/(m)ovies$/i,"$1ovie"),a.singular(/(x|ch|ss|sh)es$/i,"$1"),a.singular(/([m|l])ice$/i,"$1ouse"),a.singular(/(bus)es$/i,"$1"),a.singular(/(o)es$/i,"$1"),a.singular(/(shoe)s$/i,"$1"),a.singular(/(cris|ax|test)es$/i,"$1is"),a.singular(/(octop|vir)i$/i,"$1us"),a.singular(/(alias|status)es$/i,"$1"),a.singular(/^(ox)en/i,"$1"),a.singular(/(vert|ind)ices$/i,"$1ex"),a.singular(/(matr)ices$/i,"$1ix"),a.singular(/(quiz)zes$/i,"$1"),a.singular(/(database)s$/i,"$1"),a.irregular("person","people"),a.irregular("man","men"),a.irregular("child","children"),a.irregular("move","moves"),a.irregular("she","they"),a.irregular("he","they"),a.irregular("myself","ourselves"),a.irregular("yourself","ourselves"),a.irregular("himself","themselves"),a.irregular("herself","themselves"),a.irregular("themself","themselves"),a.irregular("mine","ours"),a.irregular("hers","theirs"),a.irregular("his","theirs"),a.irregular("its","theirs"),a.irregular("theirs","theirs"),a.irregular("sex","sexes"),a.irregular("cow","kine"),a.irregular("zombie","zombies"),a.uncountable("advice","energy","excretion","digestion","cooperation","health","justice","jeans"),a.uncountable("labour","machinery","equipment","information","pollution","sewage","paper","money"),a.uncountable("species","series","rain","rice","fish","sheep","moose","deer","bison","proceedings"),a.uncountable("shears","pincers","breeches","hijinks","clippers","chassis","innings","elk"),a.uncountable("rhinoceros","swine","you","news")})})).call(this)}),require.define("/index.coffee",function(a,b,c,d,e){b.exports=a("./inflect")}),require("/index.coffee"),window.inflect=require("./inflect")
+var require=function(a,b){var c=require.resolve(a,b||"/"),d=require.modules[c];if(!d)throw new Error("Failed to resolve module "+a+", tried "+c);var e=d._cached?d._cached:d();return e};require.paths=[],require.modules={},require.extensions=[".js",".coffee"],require._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},require.resolve=function(){return function(a,b){function g(a){if(require.modules[a])return a;for(var b=0;b<require.extensions.length;b++){var c=require.extensions[b];if(require.modules[a+c])return a+c}}function h(a){a=a.replace(/\/+$/,"");var b=a+"/package.json";if(require.modules[b]){var d=require.modules[b](),e=d.browserify;if(typeof e=="object"&&e.main){var f=g(c.resolve(a,e.main));if(f)return f}else if(typeof e=="string"){var f=g(c.resolve(a,e));if(f)return f}else if(d.main){var f=g(c.resolve(a,d.main));if(f)return f}}return g(a+"/index")}function i(a,b){var c=j(b);for(var d=0;d<c.length;d++){var e=c[d],f=g(e+"/"+a);if(f)return f;var i=h(e+"/"+a);if(i)return i}var f=g(a);if(f)return f}function j(a){var b;a==="/"?b=[""]:b=c.normalize(a).split("/");var d=[];for(var e=b.length-1;e>=0;e--){if(b[e]==="node_modules")continue;var f=b.slice(0,e+1).join("/")+"/node_modules";d.push(f)}return d}b||(b="/");if(require._core[a])return a;var c=require.modules.path();b=c.resolve("/",b);var d=b||"/";if(a.match(/^(?:\.\.?\/|\/)/)){var e=g(c.resolve(d,a))||h(c.resolve(d,a));if(e)return e}var f=i(a,d);if(f)return f;throw new Error("Cannot find module '"+a+"'")}}(),require.alias=function(a,b){var c=require.modules.path(),d=null;try{d=require.resolve(a+"/package.json","/")}catch(e){d=require.resolve(a,"/")}var f=c.dirname(d),g=(Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b})(require.modules);for(var h=0;h<g.length;h++){var i=g[h];if(i.slice(0,f.length+1)===f+"/"){var j=i.slice(f.length);require.modules[b+j]=require.modules[f+j]}else i===f&&(require.modules[b]=require.modules[f])}},require.define=function(a,b){var c=require._core[a]?"":require.modules.path().dirname(a),d=function(a){return require(a,c)};d.resolve=function(a){return require.resolve(a,c)},d.modules=require.modules,d.define=require.define;var e={exports:{}};require.modules[a]=function(){return require.modules[a]._cached=e.exports,b.call(e.exports,d,e,e.exports,c,a),require.modules[a]._cached=e.exports,e.exports}},typeof process=="undefined"&&(process={}),process.nextTick||(process.nextTick=function(){var a=[],b=typeof window!="undefined"&&window.postMessage&&window.addEventListener;return b&&window.addEventListener("message",function(b){if(b.source===window&&b.data==="browserify-tick"){b.stopPropagation();if(a.length>0){var c=a.shift();c()}}},!0),function(c){b?(a.push(c),window.postMessage("browserify-tick","*")):setTimeout(c,0)}}()),process.title||(process.title="browser"),process.binding||(process.binding=function(a){if(a==="evals")return require("vm");throw new Error("No such module")}),process.cwd||(process.cwd=function(){return"."}),require.define("path",function(a,b,c,d,e){function f(a,b){var c=[];for(var d=0;d<a.length;d++)b(a[d],d,a)&&c.push(a[d]);return c}function g(a,b){var c=0;for(var d=a.length;d>=0;d--){var e=a[d];e=="."?a.splice(d,1):e===".."?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}var h=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;c.resolve=function(){var a="",b=!1;for(var c=arguments.length;c>=-1&&!b;c--){var d=c>=0?arguments[c]:process.cwd();if(typeof d!="string"||!d)continue;a=d+"/"+a,b=d.charAt(0)==="/"}return a=g(f(a.split("/"),function(a){return!!a}),!b).join("/"),(b?"/":"")+a||"."},c.normalize=function(a){var b=a.charAt(0)==="/",c=a.slice(-1)==="/";return a=g(f(a.split("/"),function(a){return!!a}),!b).join("/"),!a&&!b&&(a="."),a&&c&&(a+="/"),(b?"/":"")+a},c.join=function(){var a=Array.prototype.slice.call(arguments,0);return c.normalize(f(a,function(a,b){return a&&typeof a=="string"}).join("/"))},c.dirname=function(a){var b=h.exec(a)[1]||"",c=!1;return b?b.length===1||c&&b.length<=3&&b.charAt(1)===":"?b:b.substring(0,b.length-1):"."},c.basename=function(a,b){var c=h.exec(a)[2]||"";return b&&c.substr(-1*b.length)===b&&(c=c.substr(0,c.length-b.length)),c},c.extname=function(a){return h.exec(a)[3]||""}}),require.define("/node_modules/files",function(a,b,c,d,e){b.exports={"package.json":'{\n "name": "inflect",\n "description": "A port of the Rails / ActiveSupport inflector to JavaScript.",\n "keywords": ["inflect", "activerecord", "rails", "activesupport", "string"],\n "version": "0.2.0",\n "author": "Stefan Huber <MSNexploder@gmail.com>",\n "homepage": "http://msnexploder.github.com/inflect/",\n "main": "lib/inflect",\n "files": [\n "Cakefile",\n "CHANGELOG.md",\n "doc",\n "lib",\n "LICENSE",\n "README.md",\n "spec",\n "src"\n ],\n "scripts": {\n "test": "cake test"\n },\n "directories": {\n "doc":"./doc",\n "lib":"./lib"\n },\n "engines": {\n "node": ">= 0.4 <= 0.6"\n },\n "devDependencies": {\n "coffee-script": ">= 1.2.0 < 2.0.0",\n "docco": ">= 0.3.0 < 0.4.0",\n "vows": ">= 0.6.2 < 0.7.0",\n "browserify": ">= 1.10.4 < 1.11.0",\n "fileify": ">= 0.3.1 < 0.4.0",\n "uglify-js": ">= 1.2.6 < 1.3.0"\n },\n "repository": {\n "type": "git",\n "url": "https://github.com/MSNexploder/inflect.git"\n },\n "bugs": { "url": "https://github.com/MSNexploder/inflect/issues" },\n "licenses": [\n { "type": "MIT",\n "url": "https://github.com/MSNexploder/inflect/raw/master/LICENSE"\n }\n ]\n}'}}),require.define("/inflect/index.coffee",function(a,b,c,d,e){(function(){var b,d,e,f,g,h;h=a("./version"),c.package=h.package,c.version=h.version,b=a("./inflections").Inflections,d=function(a){return a!=null&&a.call(this,b.instance()),b.instance()},c.Inflections=b,c.inflections=d,e=a("./methods"),c.camelize=e.camelize,c.underscore=e.underscore,c.dasherize=e.dasherize,c.titleize=e.titleize,c.capitalize=e.capitalize,c.pluralize=e.pluralize,c.singularize=e.singularize,c.humanize=e.humanize,c.ordinalize=e.ordinalize,c.parameterize=e.parameterize,g=a("./string_extensions"),f=a("./number_extensions"),c.enableStringExtensions=g.enableStringExtensions,c.enableNumberExtensions=f.enableNumberExtensions,c.enableExtensions=function(){return g.enableStringExtensions(),f.enableNumberExtensions()},a("./default_inflections")}).call(this)}),require.define("/inflect/version.coffee",function(a,b,c,d,e){(function(){var b,e;e=a("path"),process.title==="browser"?b=a("files")["package.json"]:b=a("fs").readFileSync(e.join(d,"/../../package.json")),c.package=JSON.parse(b),c.version=c.package.version}).call(this)}),require.define("fs",function(a,b,c,d,e){}),require.define("/inflect/inflections.coffee",function(a,b,c,d,e){(function(){var a,b=Array.prototype.slice;a=function(){function a(){this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]}return a.instance=function(){return this.__instance__||(this.__instance__=new this)},a.prototype.plural=function(a,b){var c;return typeof a=="string"&&(c=this.uncountables.indexOf(a))!==-1&&this.uncountables.splice(c,1),(c=this.uncountables.indexOf(b))!==-1&&this.uncountables.splice(c,1),this.plurals.unshift([a,b])},a.prototype.singular=function(a,b){var c;return typeof a=="string"&&(c=this.uncountables.indexOf(a))!==-1&&this.uncountables.splice(c,1),(c=this.uncountables.indexOf(b))!==-1&&this.uncountables.splice(c,1),this.singulars.unshift([a,b])},a.prototype.irregular=function(a,b){var c;return(c=this.uncountables.indexOf(a))!==-1&&this.uncountables.splice(c,1),(c=this.uncountables.indexOf(b))!==-1&&this.uncountables.splice(c,1),a[0].toUpperCase()===b[0].toUpperCase()?(this.plural(new RegExp("("+a[0]+")"+a.slice(1)+"$","i"),"$1"+b.slice(1)),this.plural(new RegExp("("+b[0]+")"+b.slice(1)+"$","i"),"$1"+b.slice(1)),this.singular(new RegExp("("+b[0]+")"+b.slice(1)+"$","i"),"$1"+a.slice(1))):(this.plural(new RegExp(""+a[0].toUpperCase()+a.slice(1)+"$"),b[0].toUpperCase()+b.slice(1)),this.plural(new RegExp(""+a[0].toLowerCase()+a.slice(1)+"$"),b[0].toLowerCase()+b.slice(1)),this.plural(new RegExp(""+b[0].toUpperCase()+b.slice(1)+"$"),b[0].toUpperCase()+b.slice(1)),this.plural(new RegExp(""+b[0].toLowerCase()+b.slice(1)+"$"),b[0].toLowerCase()+b.slice(1)),this.singular(new RegExp(""+b[0].toUpperCase()+b.slice(1)+"$"),a[0].toUpperCase()+a.slice(1)),this.singular(new RegExp(""+b[0].toLowerCase()+b.slice(1)+"$"),a[0].toLowerCase()+a.slice(1)))},a.prototype.uncountable=function(){var a;return a=1<=arguments.length?b.call(arguments,0):[],this.uncountables=this.uncountables.concat(a)},a.prototype.human=function(a,b){return this.humans.unshift([a,b])},a.prototype.clear=function(a){return a==null&&(a="all"),a==="all"?(this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]):this[a]=[]},a}(),c.Inflections=a}).call(this)}),require.define("/inflect/methods.coffee",function(a,b,c,d,e){(function(){var b,d,e,f,g,h,i,j,k,l,m;g=a("../inflect").inflections,b=function(a,b){var c;return b==null&&(b=!0),c=a.replace(/_./g,function(a){return a.slice(1).toUpperCase()}),b?a[0].toUpperCase()+c.slice(1):a[0].toLowerCase()+c.slice(1)},m=function(a){var b;return b=a.toString(),b=b.replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2"),b=b.replace(/([a-z\d])([A-Z])/g,"$1_$2"),b=b.replace(/-/g,"_"),b=b.toLowerCase(),b},e=function(a){return a.replace(/_/g,"-")},l=function(a){return f(m(a)).replace(/\b('?[a-z])/g,function(a){return d(a)})},d=function(a){return(a[0]||"").toUpperCase()+(a.slice(1)||"").toLowerCase()},j=function(a){var b,c,d,e,f,h,i;d=a.toString();if(a.length===0||g().uncountables.indexOf(d.toLowerCase())!==-1)return d;i=g().plurals;for(f=0,h=i.length;f<h;f++){b=i[f],e=b[0],c=b[1];if(d.search(e)!==-1){d=d.replace(e,c);break}}return d},k=function(a){var b,c,d,e,f,h,i,j,k,l,m,n;d=a.toString(),h=!1,m=g().uncountables;for(i=0,k=m.length;i<k;i++){b=m[i];if(d.search(new RegExp("\\b"+b+"$","i"))!==-1){h=!0;break}}if(a.length===0||h)return d;n=g().singulars;for(j=0,l=n.length;j<l;j++){f=n[j],e=f[0],c=f[1];if(d.search(e)!==-1){d=d.replace(e,c);break}}return d},f=function(a){var b,c,e,f,h,i,j;e=a.toString(),j=g().humans;for(h=0,i=j.length;h<i;h++){b=j[h],f=b[0],c=b[1];if(e.search(f)!==-1){e=e.replace(f,c);break}}return d(e.replace(/_id$/,"").replace(/_/g," "))},h=function(a){var b;b=parseInt(a,10);if([11,12,13].indexOf(b%100)!==-1)return""+a+"th";switch(b%10){case 1:return""+a+"st";case 2:return""+a+"nd";case 3:return""+a+"rd";default:return""+a+"th"}},i=function(a,b){var c;return b==null&&(b="-"),c=a.toString(),c=c.replace(/[^a-z0-9\-_]+/gi,b),b!=null&&(c=c.replace(new RegExp(""+b+"{2,}","g"),b),c=c.replace(new RegExp("^"+b+"|"+b+"$","gi"),"")),c.toLowerCase()},c.camelize=b,c.underscore=m,c.dasherize=e,c.titleize=l,c.capitalize=d,c.pluralize=j,c.singularize=k,c.humanize=f,c.ordinalize=h,c.parameterize=i}).call(this)}),require.define("/inflect/string_extensions.coffee",function(a,b,c,d,e){(function(){var b,d;d=a("../inflect"),b=function(){return String.prototype.pluralize=function(){return d.pluralize(this)},String.prototype.singularize=function(){return d.singularize(this)},String.prototype.camelize=function(a){return a==null&&(a=!0),d.camelize(this,a)},String.prototype.capitalize=function(){return d.capitalize(this)},String.prototype.titleize=function(){return d.titleize(this)},String.prototype.underscore=function(){return d.underscore(this)},String.prototype.dasherize=function(){return d.dasherize(this)},String.prototype.parameterize=function(a){return a==null&&(a="-"),d.parameterize(this,a)},String.prototype.humanize=function(){return d.humanize(this)}},c.enableStringExtensions=b}).call(this)}),require.define("/inflect/number_extensions.coffee",function(a,b,c,d,e){(function(){var b,d;d=a("../inflect"),b=function(){return Number.prototype.ordinalize=function(){return d.ordinalize(this)}},c.enableNumberExtensions=b}).call(this)}),require.define("/inflect/default_inflections.coffee",function(a,b,c,d,e){(function(){var b;b=a("../inflect"),b.inflections(function(a){return a.plural(/$/,"s"),a.plural(/s$/i,"s"),a.plural(/(ax|test)is$/i,"$1es"),a.plural(/(octop|vir)us$/i,"$1i"),a.plural(/(octop|vir)i$/i,"$1i"),a.plural(/(alias|status)$/i,"$1es"),a.plural(/(bu)s$/i,"$1ses"),a.plural(/(buffal|tomat)o$/i,"$1oes"),a.plural(/([ti])um$/i,"$1a"),a.plural(/([ti])a$/i,"$1a"),a.plural(/sis$/i,"ses"),a.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves"),a.plural(/(hive)$/i,"$1s"),a.plural(/([^aeiouy]|qu)y$/i,"$1ies"),a.plural(/(x|ch|ss|sh)$/i,"$1es"),a.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"),a.plural(/([m|l])ouse$/i,"$1ice"),a.plural(/([m|l])ice$/i,"$1ice"),a.plural(/^(ox)$/i,"$1en"),a.plural(/^(oxen)$/i,"$1"),a.plural(/(quiz)$/i,"$1zes"),a.singular(/s$/i,""),a.singular(/(n)ews$/i,"$1ews"),a.singular(/([ti])a$/i,"$1um"),a.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i,"$1$2sis"),a.singular(/(^analy)ses$/i,"$1sis"),a.singular(/([^f])ves$/i,"$1fe"),a.singular(/(hive)s$/i,"$1"),a.singular(/(tive)s$/i,"$1"),a.singular(/([lr])ves$/i,"$1f"),a.singular(/([^aeiouy]|qu)ies$/i,"$1y"),a.singular(/(s)eries$/i,"$1eries"),a.singular(/(m)ovies$/i,"$1ovie"),a.singular(/(x|ch|ss|sh)es$/i,"$1"),a.singular(/([m|l])ice$/i,"$1ouse"),a.singular(/(bus)es$/i,"$1"),a.singular(/(o)es$/i,"$1"),a.singular(/(shoe)s$/i,"$1"),a.singular(/(cris|ax|test)es$/i,"$1is"),a.singular(/(octop|vir)i$/i,"$1us"),a.singular(/(alias|status)es$/i,"$1"),a.singular(/^(ox)en/i,"$1"),a.singular(/(vert|ind)ices$/i,"$1ex"),a.singular(/(matr)ices$/i,"$1ix"),a.singular(/(quiz)zes$/i,"$1"),a.singular(/(database)s$/i,"$1"),a.irregular("person","people"),a.irregular("man","men"),a.irregular("child","children"),a.irregular("move","moves"),a.irregular("she","they"),a.irregular("he","they"),a.irregular("myself","ourselves"),a.irregular("yourself","ourselves"),a.irregular("himself","themselves"),a.irregular("herself","themselves"),a.irregular("themself","themselves"),a.irregular("mine","ours"),a.irregular("hers","theirs"),a.irregular("his","theirs"),a.irregular("its","theirs"),a.irregular("theirs","theirs"),a.irregular("sex","sexes"),a.irregular("cow","kine"),a.irregular("zombie","zombies"),a.uncountable("advice","energy","excretion","digestion","cooperation","health","justice","jeans"),a.uncountable("labour","machinery","equipment","information","pollution","sewage","paper","money"),a.uncountable("species","series","rain","rice","fish","sheep","moose","deer","bison","proceedings"),a.uncountable("shears","pincers","breeches","hijinks","clippers","chassis","innings","elk"),a.uncountable("rhinoceros","swine","you","news")})}).call(this)}),require.define("/index.coffee",function(a,b,c,d,e){b.exports=a("./inflect")}),require("/index.coffee"),window.inflect=require("./inflect")
View
10 package.json
@@ -24,15 +24,15 @@
"lib":"./lib"
},
"engines": {
- "node": ">= 0.4.x <= 0.6.x"
+ "node": ">= 0.4 <= 0.6"
},
"devDependencies": {
- "coffee-script": ">= 1.1.2 < 2.0.0",
+ "coffee-script": ">= 1.2.0 < 2.0.0",
"docco": ">= 0.3.0 < 0.4.0",
- "vows": ">= 0.6.0 < 0.7.0",
- "browserify": ">= 1.8.1 < 1.9.0",
+ "vows": ">= 0.6.2 < 0.7.0",
+ "browserify": ">= 1.10.4 < 1.11.0",
"fileify": ">= 0.3.1 < 0.4.0",
- "uglify-js": ">= 1.1.1 < 1.2.0"
+ "uglify-js": ">= 1.2.6 < 1.3.0"
},
"repository": {
"type": "git",
Please sign in to comment.
Something went wrong with that request. Please try again.