1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-15 10:07:07 +01:00
This commit is contained in:
hacksalot
2016-02-04 15:23:47 -05:00
parent 3c551eb923
commit 661fb91861
2 changed files with 22 additions and 8 deletions

View File

@ -34,6 +34,7 @@ class JRSResume extends AbstractResume
ret
###* Initialize the the JSResume from string. ###
parse: ( stringData, opts ) ->
@imp = @imp ? raw: stringData
@ -117,7 +118,6 @@ class JRSResume extends AbstractResume
stringify: () -> JRSResume.stringify( @ )
@ -157,7 +157,6 @@ class JRSResume extends AbstractResume
###* Add work experience to the sheet. ###
add: ( moniker ) ->
defSheet = JRSResume.default()
@ -203,10 +202,12 @@ class JRSResume extends AbstractResume
ret
duration: (unit) ->
super('work', 'startDate', 'endDate', unit)
###*
Sort dated things on the sheet by start date descending. Assumes that dates
on the sheet have been processed with _parseDates().
@ -233,6 +234,7 @@ class JRSResume extends AbstractResume
else ( a.safeReleaseDate.isAfter(b.safeReleaseDate) && -1 ) || 0
dupe: () ->
rnew = new JRSResume()
rnew.parse this.stringify(), { }
@ -310,6 +312,7 @@ JRSResume.stringify = ( obj ) ->
JSON.stringify obj, replacer, 2
###*
Convert human-friendly dates into formal Moment.js dates for all collections.
We don't want to lose the raw textual date as entered by the user, so we store