1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-25 18:00:11 +00:00

Rename imp() to i() (interim).

This commit is contained in:
hacksalot 2016-01-05 22:02:11 -05:00
parent d69688697c
commit e230d640cb
3 changed files with 9 additions and 7 deletions

View File

@ -212,7 +212,7 @@ Definition of the FRESHResume class.
/** /**
Return internal metadata. Create if it doesn't exist. Return internal metadata. Create if it doesn't exist.
*/ */
FreshResume.prototype.imp = function() { FreshResume.prototype.i = function() {
this.imp = (this.imp || { }); this.imp = (this.imp || { });
return this.imp; return this.imp;
}; };

View File

@ -75,7 +75,7 @@ Definition of the ResumeFactory class.
if( objectify ) { if( objectify ) {
var ResumeClass = require('../core/' + (toFormat || orgFormat) + '-resume'); var ResumeClass = require('../core/' + (toFormat || orgFormat) + '-resume');
rez = new ResumeClass().parseJSON( json ); rez = new ResumeClass().parseJSON( json );
rez.imp().file = src; rez.i().file = src;
} }
return { return {

View File

@ -83,8 +83,8 @@ Implementation of the 'generate' verb for HackMyResume.
var msg = ''; var msg = '';
rez = _.reduceRight( sheets, function( a, b, idx ) { rez = _.reduceRight( sheets, function( a, b, idx ) {
msg += ((idx == sheets.length - 2) ? msg += ((idx == sheets.length - 2) ?
chalk.cyan('Merging ') + chalk.cyan.bold(a.imp().file) : '') + chalk.cyan('Merging ') + chalk.cyan.bold(a.i().file) : '') +
chalk.cyan(' onto ') + chalk.cyan.bold(b.imp().file); chalk.cyan(' onto ') + chalk.cyan.bold(b.i().file);
return extend( true, b, a ); return extend( true, b, a );
}); });
msg && _log(msg); msg && _log(msg);
@ -106,11 +106,12 @@ Implementation of the 'generate' verb for HackMyResume.
if( _opts.tips && (theme.message || theme.render) ) { if( _opts.tips && (theme.message || theme.render) ) {
var WRAP = require('word-wrap'); var WRAP = require('word-wrap');
if( theme.message ) if( theme.message ) {
_log( WRAP( chalk.gray('The ' + themeName + _log( WRAP( chalk.gray('The ' + themeName +
' theme says: "') + chalk.white(theme.message) + chalk.gray('"'), ' theme says: "') + chalk.white(theme.message) + chalk.gray('"'),
{ width: _opts.wrap, indent: '' } )); { width: _opts.wrap, indent: '' } ));
else }
else {
_log( WRAP( chalk.gray('The ' + themeName + _log( WRAP( chalk.gray('The ' + themeName +
' theme says: "') + chalk.white('For best results view JSON Resume ' + ' theme says: "') + chalk.white('For best results view JSON Resume ' +
'themes over a local or remote HTTP connection. For example:'), 'themes over a local or remote HTTP connection. For example:'),
@ -123,9 +124,10 @@ Implementation of the 'generate' verb for HackMyResume.
_log(''); _log('');
_log(chalk.white('For more information, see the README."'), _log(chalk.white('For more information, see the README."'),
{ width: _opts.wrap, indent: '' } ); { width: _opts.wrap, indent: '' } );
}
} }
// Don't send the client back empty-handed // Don't send the client back empty-handed
return { sheet: rez, targets: targets, processed: targets }; return { sheet: rez, targets: targets, processed: targets };
} }