From e230d640cb875e49f1f7a9544944fbac8b6ad16e Mon Sep 17 00:00:00 2001 From: hacksalot Date: Tue, 5 Jan 2016 22:02:11 -0500 Subject: [PATCH] Rename imp() to i() (interim). --- src/core/fresh-resume.js | 2 +- src/core/resume-factory.js | 2 +- src/verbs/generate.js | 12 +++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/core/fresh-resume.js b/src/core/fresh-resume.js index edf50e5..9135f99 100644 --- a/src/core/fresh-resume.js +++ b/src/core/fresh-resume.js @@ -212,7 +212,7 @@ Definition of the FRESHResume class. /** Return internal metadata. Create if it doesn't exist. */ - FreshResume.prototype.imp = function() { + FreshResume.prototype.i = function() { this.imp = (this.imp || { }); return this.imp; }; diff --git a/src/core/resume-factory.js b/src/core/resume-factory.js index e9351b3..68ef3a7 100644 --- a/src/core/resume-factory.js +++ b/src/core/resume-factory.js @@ -75,7 +75,7 @@ Definition of the ResumeFactory class. if( objectify ) { var ResumeClass = require('../core/' + (toFormat || orgFormat) + '-resume'); rez = new ResumeClass().parseJSON( json ); - rez.imp().file = src; + rez.i().file = src; } return { diff --git a/src/verbs/generate.js b/src/verbs/generate.js index ac0bba6..bd061ef 100644 --- a/src/verbs/generate.js +++ b/src/verbs/generate.js @@ -83,8 +83,8 @@ Implementation of the 'generate' verb for HackMyResume. var msg = ''; rez = _.reduceRight( sheets, function( a, b, idx ) { msg += ((idx == sheets.length - 2) ? - chalk.cyan('Merging ') + chalk.cyan.bold(a.imp().file) : '') + - chalk.cyan(' onto ') + chalk.cyan.bold(b.imp().file); + chalk.cyan('Merging ') + chalk.cyan.bold(a.i().file) : '') + + chalk.cyan(' onto ') + chalk.cyan.bold(b.i().file); return extend( true, b, a ); }); msg && _log(msg); @@ -106,11 +106,12 @@ Implementation of the 'generate' verb for HackMyResume. if( _opts.tips && (theme.message || theme.render) ) { var WRAP = require('word-wrap'); - if( theme.message ) + if( theme.message ) { _log( WRAP( chalk.gray('The ' + themeName + ' theme says: "') + chalk.white(theme.message) + chalk.gray('"'), { width: _opts.wrap, indent: '' } )); - else + } + else { _log( WRAP( chalk.gray('The ' + themeName + ' theme says: "') + chalk.white('For best results view JSON Resume ' + 'themes over a local or remote HTTP connection. For example:'), @@ -123,9 +124,10 @@ Implementation of the 'generate' verb for HackMyResume. _log(''); _log(chalk.white('For more information, see the README."'), { width: _opts.wrap, indent: '' } ); - + } } + // Don't send the client back empty-handed return { sheet: rez, targets: targets, processed: targets }; }