1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-15 10:07:07 +01:00

Clean up handling of "meta".

This commit is contained in:
devlinjd
2015-11-20 09:28:55 -05:00
parent ad6d2c75ca
commit 9cde39703e
6 changed files with 44 additions and 33 deletions

View File

@ -35,7 +35,7 @@ FRESH to JSON Resume conversion routiens.
//other: [none]
},
meta: jrs.meta,
meta: meta2FRESH( jrs.meta ),
// disposition: {
// travel: 25,
@ -249,6 +249,13 @@ FRESH to JSON Resume conversion routiens.
};
function meta2FRESH( obj ) {
obj = obj || { };
obj.format = obj.format || "FRESH@0.1.0";
obj.version = obj.version || "0.1.0";
return obj;
}
function skillsToFRESH( skills ) {
return {