json_resume 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc754f327fd3923a9460bf11e43bee0f6ea9359c
4
- data.tar.gz: 564a900c2d8f72f822f303ebb4ea43478009eddf
3
+ metadata.gz: 2a1173a0303dc190f3269138e43668f1a7d4ba80
4
+ data.tar.gz: dc227399cf697504bec342733fbe19b5c905f3c6
5
5
  SHA512:
6
- metadata.gz: 922e9094c4edaabefa08f41685dfa632a6e66a18cd71956bdfb909cea38eab06e6f67bb9ee57655c15536a5701a89403a1301dc4c00953f3c08fbe05581cee10
7
- data.tar.gz: 129ad2fb21e2ae4613194597de6851ebc546e6979da68f320819e4ca1d7d69b586c7e7e1fd3aae35a6166cc4ec4d3e4ede2bb298dad94247e2f15cfa75d7d242
6
+ metadata.gz: 21377dfa585ba9ae91f425c34fc38567b364760eefd7e0cb7ad005b2685b7feeda495682bebe9816f781fdf0e1d39228be16c5c4fcb721dcd72edc7570bf0b5f
7
+ data.tar.gz: 2bfd25dc904a6c54daabc75b44e48fe8ab058560160048b0aeff67e42c1314feebc880091e8560d0dfed7c83576b9c97a62a74579fd09b262dff5029d41b570d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # JsonResume
2
2
 
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.
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` will be generated in the current working directory(cwd).
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 your needs, and remove or keep rest of the fields empty.
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&lt;sup&gt;<sup>sup</sup>&lt;sup/&gt;,
78
+ - script&lt;sub&gt;<sub>sub</sub>&lt;sub/&gt;,
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
@@ -1,3 +1,3 @@
1
1
  module JsonResume
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -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
- <%#website%>\homepage{<%& .%>}<%/website%>
16
- <%#linkedin_url%>\social[linkedin]{<%& .%>}<%/linkedin_url%>
17
- <%#github_url%>\social[github]{<%& .%>}<%/github_url%>
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.1
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-05 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler