From 57af3010afb7184c84737a911e6146944cc70684 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Sat, 16 Jan 2016 15:55:21 -0500 Subject: [PATCH] Introduce JSON Resume test resumes. --- LICENSE.md | 2 +- README.md | 7 +- index.js | 27 +++- package.json | 4 +- src/{empty.fresh.json => fresh/empty.json} | 0 .../jane-fullstacker.json} | 0 .../johnny-trouble.broken.json} | 0 .../johnny-trouble.json} | 0 .../jane-fullstacker-override.fresh.json | 0 .../starter-resume.json} | 0 src/jrs/empty.json | 77 +++++++++++ src/jrs/john-doe.json | 93 +++++++++++++ src/jrs/richard-hendriks.json | 130 ++++++++++++++++++ 13 files changed, 332 insertions(+), 8 deletions(-) rename src/{empty.fresh.json => fresh/empty.json} (100%) rename src/{jane-fullstacker.fresh.json => fresh/jane-fullstacker.json} (100%) rename src/{johnny-trouble.broken.fresh.json => fresh/johnny-trouble.broken.json} (100%) rename src/{johnny-trouble.fresh.json => fresh/johnny-trouble.json} (100%) rename src/{ => fresh}/override/jane-fullstacker-override.fresh.json (100%) rename src/{starter-resume.fresh.json => fresh/starter-resume.json} (100%) create mode 100644 src/jrs/empty.json create mode 100644 src/jrs/john-doe.json create mode 100644 src/jrs/richard-hendriks.json diff --git a/LICENSE.md b/LICENSE.md index 2194070..4cba086 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,7 +1,7 @@ The MIT License =============== -Copyright (c) 2016 Sir Hacksalot (https://github.com/hacksalot) +Copyright (c) 2016 hacksalot (https://github.com/hacksalot) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index bb1dd55..d2fef5a 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,19 @@ fresh-test-resumes ================== -Test résumés and CVs in [FRESH][f] format. For testing purposes. +Test résumés and CVs in [FRESH][f] format and JSON Resume formats. For testing +purposes. - [**empty.fresh.json**][e]: An empty FRESH résumé. + - [**jane-fullstacker.fresh.json**][jq]: Jane Q. Fullstacker's valid FRESH résumé (a normal resume). + - [**johnny-trouble.fresh.json**][jt]: Johnny Trouble's valid FRESH résumé (a resume full of garbage characters). + - [**johnny-trouble.broken.json**][jtb]: Broken version of Johnny Trouble's résumé (a resume with numerous JSON syntax errors.) + - [**starter-resume.fresh.json**][s]: A starter résumé with sample data. ## License diff --git a/index.js b/index.js index f6abbae..d560098 100644 --- a/index.js +++ b/index.js @@ -6,11 +6,30 @@ Mount individual resumes onto the module object for convenience. (function(){ + var FS = require('fs'); + var PATH = require('path'); + module.exports = { - empty: require('./src/empty.fresh.json'), - jane: require('./src/jane-fullstacker.fresh.json'), - johnny: require('./src/johnny-trouble.fresh.json'), - johnnyBroken: require('./src/johnny-trouble.broken.fresh.json') + + fresh: { + empty: require('./src/fresh/empty.json'), + jane: require('./src/fresh/jane-fullstacker.json'), + johnny: require('./src/fresh/johnny-trouble.json'), + starter: require('./src/fresh/starter-resume.json'), + // Can't mount a broken resume (invalid JSON) + //johnnyBroken: require('./src/johnny-trouble.broken.json') + johnnyBroken: FS.readFileSync( + PATH.join( __dirname, '/src/fresh/johnny-trouble.broken.json'), + 'utf8' + ) + }, + + jrs: { + empty: require('./src/jrs/empty.json'), + johndoe: require('./src/jrs/john-doe.json'), + richard: require('./src/jrs/richard-hendriks') + } + }; }()); diff --git a/package.json b/package.json index c870f29..2666f1e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fresh-test-resumes", - "version": "0.4.0", - "description": "Test résumés and CVs in FRESH format.", + "version": "0.5.0", + "description": "Test résumés and CVs in FRESH and JSON Resume format.", "repository": { "type": "git", "url": "https://github.com/fluentdesk/fresh-test-resumes.git" diff --git a/src/empty.fresh.json b/src/fresh/empty.json similarity index 100% rename from src/empty.fresh.json rename to src/fresh/empty.json diff --git a/src/jane-fullstacker.fresh.json b/src/fresh/jane-fullstacker.json similarity index 100% rename from src/jane-fullstacker.fresh.json rename to src/fresh/jane-fullstacker.json diff --git a/src/johnny-trouble.broken.fresh.json b/src/fresh/johnny-trouble.broken.json similarity index 100% rename from src/johnny-trouble.broken.fresh.json rename to src/fresh/johnny-trouble.broken.json diff --git a/src/johnny-trouble.fresh.json b/src/fresh/johnny-trouble.json similarity index 100% rename from src/johnny-trouble.fresh.json rename to src/fresh/johnny-trouble.json diff --git a/src/override/jane-fullstacker-override.fresh.json b/src/fresh/override/jane-fullstacker-override.fresh.json similarity index 100% rename from src/override/jane-fullstacker-override.fresh.json rename to src/fresh/override/jane-fullstacker-override.fresh.json diff --git a/src/starter-resume.fresh.json b/src/fresh/starter-resume.json similarity index 100% rename from src/starter-resume.fresh.json rename to src/fresh/starter-resume.json diff --git a/src/jrs/empty.json b/src/jrs/empty.json new file mode 100644 index 0000000..bedfe00 --- /dev/null +++ b/src/jrs/empty.json @@ -0,0 +1,77 @@ +{ + "basics": { + "name": "", + "label": "", + "picture": "", + "email": "", + "phone": "", + "degree": "", + "website": "", + "summary": "", + "location": { + "address": "", + "postalCode": "", + "city": "", + "countryCode": "", + "region": "" + }, + "profiles": [{ + "network": "", + "username": "", + "url": "" + }] + }, + + "work": [{ + "company": "", + "position": "", + "website": "", + "startDate": "", + "endDate": "", + "summary": "", + "highlights": [ + "" + ] + }], + + "awards": [{ + "title": "", + "date": "", + "awarder": "", + "summary": "" + }], + + "education": [{ + "institution": "", + "area": "", + "studyType": "", + "startDate": "", + "endDate": "", + "gpa": "", + "courses": [ "" ] + }], + + "publications": [{ + "name": "", + "publisher": "", + "releaseDate": "", + "website": "", + "summary": "" + }], + + "volunteer": [{ + "organization": "", + "position": "", + "website": "", + "startDate": "", + "endDate": "", + "summary": "", + "highlights": [ "" ] + }], + + "skills": [{ + "name": "", + "level": "", + "keywords": [""] + }] +} diff --git a/src/jrs/john-doe.json b/src/jrs/john-doe.json new file mode 100644 index 0000000..b2b53e0 --- /dev/null +++ b/src/jrs/john-doe.json @@ -0,0 +1,93 @@ +{ + "basics": { + "name": "John Doe", + "label": "Programmer", + "picture": "", + "email": "john@gmail.com", + "phone": "(912) 555-4321", + "website": "http://johndoe.com", + "summary": "A summary of John Doe...", + "location": { + "address": "2712 Broadway St", + "postalCode": "CA 94115", + "city": "San Francisco", + "countryCode": "US", + "region": "California" + }, + "profiles": [{ + "network": "Twitter", + "username": "john", + "url": "http://twitter.com/john" + }] + }, + "work": [{ + "company": "Company", + "position": "President", + "website": "http://company.com", + "startDate": "2013-01-01", + "endDate": "2014-01-01", + "summary": "Description...", + "highlights": [ + "Started the company" + ] + }], + "volunteer": [{ + "organization": "Organization", + "position": "Volunteer", + "website": "http://organization.com/", + "startDate": "2012-01-01", + "endDate": "2013-01-01", + "summary": "Description...", + "highlights": [ + "Awarded 'Volunteer of the Month'" + ] + }], + "education": [{ + "institution": "University", + "area": "Software Development", + "studyType": "Bachelor", + "startDate": "2011-01-01", + "endDate": "2013-01-01", + "gpa": "4.0", + "courses": [ + "DB1101 - Basic SQL" + ] + }], + "awards": [{ + "title": "Award", + "date": "2014-11-01", + "awarder": "Company", + "summary": "There is no spoon." + }], + "publications": [{ + "name": "Publication", + "publisher": "Company", + "releaseDate": "2014-10-01", + "website": "http://publication.com", + "summary": "Description..." + }], + "skills": [{ + "name": "Web Development", + "level": "Master", + "keywords": [ + "HTML", + "CSS", + "Javascript" + ] + }], + "languages": [{ + "language": "English", + "fluency": "Native speaker" + }], + "interests": [{ + "name": "Wildlife", + "keywords": [ + "Ferrets", + "Unicorns" + ] + }], + "references": [{ + "name": "Jane Doe", + "reference": "Reference..." + }] +} diff --git a/src/jrs/richard-hendriks.json b/src/jrs/richard-hendriks.json new file mode 100644 index 0000000..0716d12 --- /dev/null +++ b/src/jrs/richard-hendriks.json @@ -0,0 +1,130 @@ +{ + "basics": { + "name": "Richard Hendriks", + "label": "Programmer", + "picture": "", + "email": "richard.hendriks@mail.com", + "phone": "(912) 555-4321", + "website": "http://richardhendricks.com", + "summary": "Richard hails from Tulsa. He has earned degrees from the University of Oklahoma and Stanford. (Go Sooners and Cardinals!) Before starting Pied Piper, he worked for Hooli as a part time software developer. While his work focuses on applied information theory, mostly optimizing lossless compression schema of both the length-limited and adaptive variants, his non-work interests range widely, everything from quantum computing to chaos theory. He could tell you about it, but THAT would NOT be a “length-limited” conversation!", + "location": { + "address": "2712 Broadway St", + "postalCode": "CA 94115", + "city": "San Francisco", + "countryCode": "US", + "region": "California" + }, + "profiles": [ + { + "network": "Twitter", + "username": "neutralthoughts", + "url": "" + }, + { + "network": "SoundCloud", + "username": "dandymusicnl", + "url": "https://soundcloud.com/dandymusicnl" + } + ] + }, + "work": [ + { + "company": "Pied Piper", + "position": "CEO/President", + "website": "http://piedpiper.com", + "startDate": "2013-12-01", + "endDate": "2014-12-01", + "summary": "Pied Piper is a multi-platform technology based on a proprietary universal compression algorithm that has consistently fielded high Weisman Scores™ that are not merely competitive, but approach the theoretical limit of lossless compression.", + "highlights": [ + "Build an algorithm for artist to detect if their music was violating copy right infringement laws", + "Successfully won Techcrunch Disrupt", + "Optimized an algorithm that holds the current world record for Weisman Scores" + ] + } + ], + "volunteer": [ + { + "organization": "CoderDojo", + "position": "Teacher", + "website": "http://coderdojo.com/", + "startDate": "2012-01-01", + "endDate": "2013-01-01", + "summary": "Global movement of free coding clubs for young people.", + "highlights": [ + "Awarded 'Teacher of the Month'" + ] + } + ], + "education": [ + { + "institution": "University of Oklahoma", + "area": "Information Technology", + "studyType": "Bachelor", + "startDate": "2011-06-01", + "endDate": "2014-01-01", + "gpa": "4.0", + "courses": [ + "DB1101 - Basic SQL", + "CS2011 - Java Introduction" + ] + } + ], + "awards": [ + { + "title": "Digital Compression Pioneer Award", + "date": "2014-11-01", + "awarder": "Techcrunch", + "summary": "There is no spoon." + } + ], + "publications": [ + { + "name": "Video compression for 3d media", + "publisher": "Hooli", + "releaseDate": "2014-10-01", + "website": "http://en.wikipedia.org/wiki/Silicon_Valley_(TV_series)", + "summary": "Innovative middle-out compression algorithm that changes the way we store data." + } + ], + "skills": [ + { + "name": "Web Development", + "level": "Master", + "keywords": [ + "HTML", + "CSS", + "Javascript" + ] + }, + { + "name": "Compression", + "level": "Master", + "keywords": [ + "Mpeg", + "MP4", + "GIF" + ] + } + ], + "languages": [ + { + "language": "English", + "fluency": "Native speaker" + } + ], + "interests": [ + { + "name": "Wildlife", + "keywords": [ + "Ferrets", + "Unicorns" + ] + } + ], + "references": [ + { + "name": "Erlich Bachman", + "reference": "It is my pleasure to recommend Richard, his performance working as a consultant for Main St. Company proved that he will be a valuable addition to any company." + } + ] +}