1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-22 00:10:15 +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',
objectify: true,
inner: {
"private": opts["private"]
"private": opts["private"] === true
}
}, this);
if (opts.assert && this.hasError()) {

View File

@ -33,7 +33,9 @@ _analyze = ( sources, dst, opts ) ->
nlzrs = _loadInspectors()
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()
if r.fluenterror