json_resume 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +41 -9
- data/bin/json_resume +1 -1
- data/examples/prateek_cv.json +3 -0
- data/extras/resume_html.tar.gz +0 -0
- data/json_resume.gemspec +1 -1
- data/lib/json_resume/reader.rb +2 -0
- data/lib/json_resume/version.rb +1 -1
- data/templates/default_html.mustache +9 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc754f327fd3923a9460bf11e43bee0f6ea9359c
|
4
|
+
data.tar.gz: 564a900c2d8f72f822f303ebb4ea43478009eddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 922e9094c4edaabefa08f41685dfa632a6e66a18cd71956bdfb909cea38eab06e6f67bb9ee57655c15536a5701a89403a1301dc4c00953f3c08fbe05581cee10
|
7
|
+
data.tar.gz: 129ad2fb21e2ae4613194597de6851ebc546e6979da68f320819e4ca1d7d69b586c7e7e1fd3aae35a6166cc4ec4d3e4ede2bb298dad94247e2f15cfa75d7d242
|
data/README.md
CHANGED
@@ -1,24 +1,56 @@
|
|
1
1
|
# JsonResume
|
2
2
|
|
3
|
-
|
3
|
+
JsonResume helps in creating different versions of resume from a single JSON input file. It is different from present solutions as the output is more prettier and much customized to modern resume templates. Also, there is a ton of customization to the templates possible, to make your own version of resume created super quickly.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
$ gem install json_resume
|
8
8
|
|
9
|
-
|
9
|
+
## Usage
|
10
10
|
|
11
|
-
|
11
|
+
### Create a sample JSON input file to start
|
12
12
|
|
13
|
-
$
|
13
|
+
$ json_resume sample
|
14
|
+
|
15
|
+
A sample `prateek_cv.json` will be generated in the current working directory(cwd).
|
16
|
+
|
17
|
+
Modify it as per your needs, and remove or keep rest of the fields empty.
|
18
|
+
|
19
|
+
### Conversion
|
14
20
|
|
15
|
-
|
21
|
+
* Default (HTML) version
|
16
22
|
|
17
|
-
|
23
|
+
```
|
24
|
+
$ json_resume convert prateek_cv.json
|
25
|
+
```
|
18
26
|
|
19
|
-
|
27
|
+
A directory `resume/` will be generated in cwd, which can be put hosted on /var/www or on github pages.
|
28
|
+
|
29
|
+
* PDF version from HTML
|
30
|
+
|
31
|
+
```
|
32
|
+
$ json_resume convert --out=html_pdf prateek_cv.json
|
33
|
+
```
|
34
|
+
|
35
|
+
* LaTeX version
|
36
|
+
|
37
|
+
```
|
38
|
+
$ json_resume convert --out=tex prateek_cv.json
|
39
|
+
```
|
40
|
+
|
41
|
+
* PDF version from LaTeX
|
42
|
+
|
43
|
+
```
|
44
|
+
$ json_resume convert --out=tex_pdf prateek_cv.json
|
45
|
+
```
|
46
|
+
|
47
|
+
* Markdown version
|
48
|
+
|
49
|
+
```
|
50
|
+
$ json_resume convert --out=md prateek_cv.json
|
51
|
+
```
|
20
52
|
|
21
|
-
|
53
|
+
## Customization
|
22
54
|
|
23
55
|
## Contributing
|
24
56
|
|
data/bin/json_resume
CHANGED
@@ -43,7 +43,7 @@ class JsonResumeCLI < Thor
|
|
43
43
|
tgz = Zlib::GzipReader.new(File.open("#{@@orig_locn}/../extras/resume_html.tar.gz", 'rb'))
|
44
44
|
Minitar.unpack(tgz, "#{dest}/#{dir_name}")
|
45
45
|
msg = generate_file(json_input, template, "html", "#{dest}/#{dir_name}/page.html")
|
46
|
-
msg += "
|
46
|
+
msg += "\nPlace #{dest}/#{dir_name}/ in /var/www/ to host."
|
47
47
|
end
|
48
48
|
|
49
49
|
def convert_to_html_pdf(json_input, template, dest=Dir.pwd)
|
data/examples/prateek_cv.json
CHANGED
data/extras/resume_html.tar.gz
CHANGED
Binary file
|
data/json_resume.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = JsonResume::VERSION
|
9
9
|
spec.authors = ["Prateek Agarwal"]
|
10
10
|
spec.email = ["prat0318@gmail.com"]
|
11
|
-
spec.description = %q{json_resume creates pretty resume formats from a .json input file. Currently, it can cpnvert to html, tex, markdown and pdf. Customizing the
|
11
|
+
spec.description = %q{json_resume creates pretty resume formats from a .json input file. Currently, it can cpnvert to html, tex, markdown and pdf. Customizing the templates to your own needs is also super easy.}
|
12
12
|
spec.summary = %q{Generates pretty resume formats out of json input file}
|
13
13
|
spec.homepage = "http://github.com/prat0318/json_resume"
|
14
14
|
spec.license = "MIT"
|
data/lib/json_resume/reader.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require_relative 'formatter_html'
|
2
2
|
require_relative 'formatter_latex'
|
3
3
|
require_relative 'formatter_md'
|
4
|
+
require 'rest-client'
|
4
5
|
require 'json'
|
5
6
|
|
6
7
|
module JsonResume
|
@@ -11,6 +12,7 @@ module JsonResume
|
|
11
12
|
output_type = options[:output_type] || "html" #default html, others latex, md
|
12
13
|
@json_string = case json_input
|
13
14
|
when /\.json$/i then File.read(json_input)
|
15
|
+
when /^(http|https|www)/ then RestClient.get(json_input)
|
14
16
|
else json_input
|
15
17
|
end
|
16
18
|
@output_type = output_type
|
data/lib/json_resume/version.rb
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
{{#settings}}
|
2
|
+
{{#glyphicons}}
|
3
|
+
<link rel="stylesheet" type="text/css" href="public/css/bootstrap.min.css" />
|
4
|
+
<script>document.getElementById('github-png').innerHTML = '<img src="public/images/github.png" style="width:22px"></img> ';
|
5
|
+
</script>
|
6
|
+
{{/glyphicons}}
|
7
|
+
{{/settings}}
|
8
|
+
<link rel="stylesheet" type="text/css" href="public/css/screen.css" />
|
1
9
|
<div id="page">
|
2
10
|
{{#bio_data}}
|
3
11
|
<div class="contact-details">
|
@@ -33,7 +41,7 @@
|
|
33
41
|
{{/summary}}
|
34
42
|
|
35
43
|
{{#github_projects}}
|
36
|
-
<h2><
|
44
|
+
<h2><span id="github-png"></span>GitHub Projects</h2>
|
37
45
|
<ul>
|
38
46
|
{{#details}}
|
39
47
|
<li><a href="https://github.com/{{project_name}}">{{project_name}}</a>
|
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.
|
4
|
+
version: 0.3.1
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -109,9 +109,8 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
description: json_resume creates pretty resume formats from a .json input file. Currently,
|
112
|
-
it can cpnvert to html, tex, markdown and pdf. Customizing the
|
113
|
-
own
|
114
|
-
formats.
|
112
|
+
it can cpnvert to html, tex, markdown and pdf. Customizing the templates to your
|
113
|
+
own needs is also super easy.
|
115
114
|
email:
|
116
115
|
- prat0318@gmail.com
|
117
116
|
executables:
|