1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-22 08:20:11 +00:00

The ANALYZE command now excludes private fields by default for consistency.

This commit is contained in:
Daniele Rapagnani 2016-02-14 21:53:10 +01:00
parent 664eea752f
commit fe46d15031
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,7 @@ Implementation of the 'analyze' verb for HackMyResume.
format: 'FRESH', format: 'FRESH',
objectify: true, objectify: true,
inner: { inner: {
"private": opts["private"] "private": opts["private"] === true
} }
}, this); }, this);
if (opts.assert && this.hasError()) { if (opts.assert && this.hasError()) {

View File

@ -33,7 +33,9 @@ _analyze = ( sources, dst, opts ) ->
nlzrs = _loadInspectors() nlzrs = _loadInspectors()
results = _.map sources, (src) -> results = _.map sources, (src) ->
r = ResumeFactory.loadOne src, format: 'FRESH', objectify: true, inner: { private: opts.private }, @ r = ResumeFactory.loadOne src, format: 'FRESH', objectify: true, inner: {
private: opts.private is true
}, @
return { } if opts.assert and @hasError() return { } if opts.assert and @hasError()
if r.fluenterror if r.fluenterror