Skip to content

Commit

Permalink
Move to inflection npm
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Apr 7, 2013
1 parent 080dd0e commit 7471425
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 238 deletions.
11 changes: 8 additions & 3 deletions lib/utils.js
Expand Up @@ -2,7 +2,7 @@ var undef, sys = require('util'),
path = require('path'),
fs = require('fs'),
vm = require('vm'),
inflection = require('../vendor/inflection.js');
i8n = require('inflection');

exports.html_tag_params = function(params, override) {
var maybe_params = '';
Expand Down Expand Up @@ -53,8 +53,13 @@ exports.underscore = function(camelCaseStr) {
return str.toLowerCase();
};

exports.singularize = inflection.singularize;
exports.pluralize = inflection.pluralize;
exports.singularize = function singularize(str, singular) {
return i8n.singularize(str, singular);
};

exports.pluralize = function pluralize(str, plural) {
return i8n.pluralize(str, plural)
};

// Stylize a string
function stylize(str, style) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -39,7 +39,7 @@
"jade-ext": ">= 0.0.5",
"railway-routes": ">= 0.0.6",
"kontroller": ">= 0.0.9",
"seedjs": "*"
"inflection": "~1.2.5"
},
"repository": {
"type": "git",
Expand Down
234 changes: 0 additions & 234 deletions vendor/inflection.js

This file was deleted.

0 comments on commit 7471425

Please sign in to comment.