Skip to content
Browse files

Upgrade to humanize-plus 1.4.2

  • Loading branch information...
1 parent ee69b40 commit 0c97d1b7b0ed3d0d4203304c25292667417284fe @kevinsawicki committed Jul 21, 2013
Showing with 5 additions and 5 deletions.
  1. +1 −1 package.json
  2. +2 −2 src/flips-cli.coffee
  3. +2 −2 src/names.coffee
View
2 package.json
@@ -51,7 +51,7 @@
"ftp": "~0.3.1",
"async": "~0.2.8",
"request": "~2.21.0",
- "humanize-plus": "~1.1.0",
+ "humanize-plus": "~1.4.2",
"underscore": "~1.4.4",
"season": "~0.9.0",
"mkdirp": "~0.3.5"
View
4 src/flips-cli.coffee
@@ -2,7 +2,7 @@ fs = require 'fs'
path = require 'path'
optimist = require 'optimist'
async = require 'async'
-humanize = require 'humanize-plus'
+{intComma} = require 'humanize-plus'
{Names, Connection, Transactions, FormFour} = require './filings'
parseOptions = (args=[]) ->
@@ -27,7 +27,7 @@ fetchTransaction = ({connection, transaction}, callback) ->
day = "0#{day}" if day.length is 1
date = "#{month}/#{day}/#{date.getFullYear()}"
owner = form.getOwner()
- console.log date, "$#{humanize.intcomma(Math.floor(profit))} #{Names.normalize(owner.name)} #{owner.title}"
+ console.log date, "$#{intComma(Math.floor(profit))} #{Names.normalize(owner.name)} #{owner.title}"
callback()
module.exports =
View
4 src/names.coffee
@@ -1,4 +1,4 @@
-humanize = require 'humanize-plus'
+{capitalizeAll} = require 'humanize-plus'
module.exports =
normalize: (name='') ->
@@ -7,4 +7,4 @@ module.exports =
segments.push(segments.shift())
for segment, index in segments
segments[index] = "#{segment}." if segment.length is 1
- humanize.titlecase(segments.join(' '))
+ capitalizeAll(segments.join(' '))

0 comments on commit 0c97d1b

Please sign in to comment.
Something went wrong with that request. Please try again.