json_resume 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +55 -8
- data/lib/json_resume/formatter.rb +1 -0
- data/lib/json_resume/version.rb +1 -1
- data/templates/default_tex.mustache +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a1173a0303dc190f3269138e43668f1a7d4ba80
|
4
|
+
data.tar.gz: dc227399cf697504bec342733fbe19b5c905f3c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21377dfa585ba9ae91f425c34fc38567b364760eefd7e0cb7ad005b2685b7feeda495682bebe9816f781fdf0e1d39228be16c5c4fcb721dcd72edc7570bf0b5f
|
7
|
+
data.tar.gz: 2bfd25dc904a6c54daabc75b44e48fe8ab058560160048b0aeff67e42c1314feebc880091e8560d0dfed7c83576b9c97a62a74579fd09b262dff5029d41b570d
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# JsonResume
|
2
2
|
|
3
|
-
JsonResume
|
3
|
+
JsonResume creates pretty versions of resume from a single JSON input file. Output formats are specifically customized to modern resume templates. Also, there are a ton of customizations to the templates possible, to make your own version of resume created easily and super quickly.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -12,48 +12,95 @@ JsonResume helps in creating different versions of resume from a single JSON inp
|
|
12
12
|
|
13
13
|
$ json_resume sample
|
14
14
|
|
15
|
-
A sample `prateek_cv.json`
|
15
|
+
A [sample](https://github.com/prat0318/json_resume/blob/master/examples/prateek_cv.json) `prateek_cv.json` is generated in the current working directory(cwd).
|
16
16
|
|
17
|
-
Modify it as per
|
17
|
+
Modify it as per the needs, and remove or keep rest of the fields empty.
|
18
18
|
|
19
19
|
### Conversion
|
20
20
|
|
21
|
+
* Syntax
|
22
|
+
|
23
|
+
```
|
24
|
+
json_resume convert [--template=/path/to/custom/template] [--out=html|html_pdf|tex|tex_pdf|md] <json_input>
|
25
|
+
|
26
|
+
<json_input> can be /path/to/json OR "{'json':'string'}" OR http://raw.json
|
27
|
+
```
|
28
|
+
|
21
29
|
* Default (HTML) version
|
22
30
|
|
23
31
|
```
|
24
32
|
$ json_resume convert prateek_cv.json
|
25
33
|
```
|
26
34
|
|
27
|
-
A directory `resume/` will be generated in cwd, which can be put hosted on /var/www or on github pages.
|
35
|
+
A directory `resume/` will be generated in cwd, which can be put hosted on /var/www or on github pages. ([Sample](http://prat0318.github.io/index1.html))
|
36
|
+
|
37
|
+
|
38
|
+
* HTML\* version
|
39
|
+
|
40
|
+
`html` version without glyphicons can be generated by giving `glyphicons` as `false` : ([Sample](http://prat0318.github.io/index2.html))
|
41
|
+
|
42
|
+
```
|
43
|
+
"settings": {
|
44
|
+
"glyphicons" : false
|
45
|
+
},
|
46
|
+
```
|
28
47
|
|
29
|
-
* PDF version from HTML
|
48
|
+
* PDF version from HTML ([Sample](http://prat0318.github.io/public/resume.pdf))
|
30
49
|
|
31
50
|
```
|
32
51
|
$ json_resume convert --out=html_pdf prateek_cv.json
|
33
52
|
```
|
34
53
|
|
35
|
-
* LaTeX version
|
54
|
+
* LaTeX version ([Sample](https://www.writelatex.com/read/zkkbznbkfkgq))
|
36
55
|
|
37
56
|
```
|
38
57
|
$ json_resume convert --out=tex prateek_cv.json
|
39
58
|
```
|
40
59
|
|
41
|
-
* PDF version from LaTeX
|
60
|
+
* PDF version from LaTeX ([Sample](https://www.writelatex.com/read/zkkbznbkfkgq))
|
42
61
|
|
43
62
|
```
|
44
63
|
$ json_resume convert --out=tex_pdf prateek_cv.json
|
45
64
|
```
|
46
65
|
|
47
|
-
* Markdown version
|
66
|
+
* Markdown version ([Sample](https://gist.github.com/prat0318/9c6e36fdcfd6a854f1f9))
|
48
67
|
|
49
68
|
```
|
50
69
|
$ json_resume convert --out=md prateek_cv.json
|
51
70
|
```
|
52
71
|
|
72
|
+
## Markup Language
|
73
|
+
|
74
|
+
JSON is parsed as per the `markdown` standards. This implies all this works-
|
75
|
+
- \*\* **bold** \*\*,
|
76
|
+
- \_ _italics_ \_,
|
77
|
+
- script<sup><sup>sup</sup><sup/>,
|
78
|
+
- script<sub><sub>sub</sub><sub/>,
|
79
|
+
- \[[href](#)\]\(#\),
|
80
|
+
- <<[http://github.com](http://github.com)>>
|
81
|
+
|
82
|
+
## FAQs
|
83
|
+
|
84
|
+
* I get the following error during `convert` :
|
85
|
+
|
86
|
+
```
|
87
|
+
Error:
|
88
|
+
Generating the html type...
|
89
|
+
/Users/myMac/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `encode': "\xE2" on US-ASCII (Encoding::InvalidByteSequenceError)
|
90
|
+
from /Users/abhiramk/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `initialize'
|
91
|
+
from /Users/abhiramk/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:155:in `new'
|
92
|
+
```
|
93
|
+
|
94
|
+
Looks like locale problem. Add the following to the environment : `export LC_CTYPE=en_US.UTF-8` ( Thanks to [@viswamitra](https://github.com/viswamitra) )
|
95
|
+
|
53
96
|
## Customization
|
54
97
|
|
98
|
+
Output is creating using mustache templates. They are located in `templates/`. These can be modified and given as `--template=/path/to/template` to `convert`. For example, the tex template was customized to produced [this new format](https://www.writelatex.com/read/tktqrbmhnyqp).
|
99
|
+
|
55
100
|
## Contributing
|
56
101
|
|
102
|
+
Many awesome formats can be created by writing new mustache templates. We :heart: **Pull Requests**.
|
103
|
+
|
57
104
|
1. Fork it
|
58
105
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
59
106
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
@@ -22,6 +22,7 @@ module JsonResume
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def add_linkedin_github_url
|
25
|
+
@hash["raw_website"] = @hash["bio_data"]["website"].sub(/^https?:\/\//,'') if @hash["bio_data"] && @hash["bio_data"]["website"]
|
25
26
|
@hash["linkedin_url"] = "http://linkedin.com/in/" + @hash["linkedin_id"] if @hash["linkedin_id"]
|
26
27
|
@hash["github_url"] = "http://github.com/" + @hash["github_id"] if @hash["github_id"]
|
27
28
|
end
|
data/lib/json_resume/version.rb
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
\title{\small <%#stars%><%#items%><%name%><%^last%> $\star$ <%/last%><%/items%><%/stars%>}
|
13
13
|
<%#phone%>\phone{<%.%>}<%/phone%>
|
14
14
|
<%#email%>\email{<%.%>}<%/email%>
|
15
|
-
<%#
|
16
|
-
<%#
|
17
|
-
<%#
|
15
|
+
<%#raw_website%>\homepage{<%& .%>}<%/raw_website%>
|
16
|
+
<%#linkedin_id%>\social[linkedin]{<%& .%>}<%/linkedin_id%>
|
17
|
+
<%#github_id%>\social[github]{<%& .%>}<%/github_id%>
|
18
18
|
|
19
19
|
% the ConTeXt symbol
|
20
20
|
\def\ConTeXt{%
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_resume
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prateek Agarwal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|