Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

missed the changelog

  • Loading branch information...
commit 36ff1867888e18cd457d9d36ad0dd134456620fa 1 parent cd5cff7
@MSNexploder authored
View
2  CHANGELOG.md
@@ -1,4 +1,4 @@
-## 0.2.0 (unreleased)
+## 0.2.0 (4th December, 2011)
* client side support
View
22 Cakefile
@@ -185,19 +185,19 @@ task "publish", "Publish new version (Git, NPM, site)", ->
# scratch, don't want generated files we no longer use, etc.
clean (err) ->
onerror err
- exec "git push", (err) ->
+ build (err) ->
onerror err
- fs.readFile "package.json", "utf8", (err, package) ->
- package = JSON.parse(package)
-
- # Publish documentation, need these first to generate man pages,
- # inclusion on NPM package.
- generateDocs (err) ->
- onerror err
-
- log "Publishing to NPM ...", green
- build (err) ->
+ exec "git push", (err) ->
+ onerror err
+ fs.readFile "package.json", "utf8", (err, package) ->
+ package = JSON.parse(package)
+
+ # Publish documentation, need these first to generate man pages,
+ # inclusion on NPM package.
+ generateDocs (err) ->
onerror err
+
+ log "Publishing to NPM ...", green
exec "npm publish", (err, stdout, stderr) ->
log stdout, green
onerror err
View
2  client/inflect.js
@@ -320,7 +320,7 @@ 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.1.5\",\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.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}"}
});
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.1.5",\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(),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")
Please sign in to comment.
Something went wrong with that request. Please try again.