json_resume 0.2.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65eb011e84de52ee1e5c96fb447a999a200dd077
4
- data.tar.gz: ee059110bda4d86bfa5b1efaeb9200feeecbf315
3
+ metadata.gz: cc754f327fd3923a9460bf11e43bee0f6ea9359c
4
+ data.tar.gz: 564a900c2d8f72f822f303ebb4ea43478009eddf
5
5
  SHA512:
6
- metadata.gz: acb9433b5f95a9e833577d246c0175be49305a1df3cd6878f8bb0142395a505aae0973a86b04671c1704ea87f0a55536ed12a5e47a709d88d8cdf079d9234d8e
7
- data.tar.gz: c9a29c045e7e384991675fd6f444c233eefe68822b7965b0afce626c6bf304374c6650d94f5611c3f501c9a0655a65958d2b1237ef36f30d3e1b455326f1a40f
6
+ metadata.gz: 922e9094c4edaabefa08f41685dfa632a6e66a18cd71956bdfb909cea38eab06e6f67bb9ee57655c15536a5701a89403a1301dc4c00953f3c08fbe05581cee10
7
+ data.tar.gz: 129ad2fb21e2ae4613194597de6851ebc546e6979da68f320819e4ca1d7d69b586c7e7e1fd3aae35a6166cc4ec4d3e4ede2bb298dad94247e2f15cfa75d7d242
data/README.md CHANGED
@@ -1,24 +1,56 @@
1
1
  # JsonResume
2
2
 
3
- TODO: Write a gem description
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
- Add this line to your application's Gemfile:
7
+ $ gem install json_resume
8
8
 
9
- gem 'json_resume'
9
+ ## Usage
10
10
 
11
- And then execute:
11
+ ### Create a sample JSON input file to start
12
12
 
13
- $ bundle
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
- Or install it yourself as:
21
+ * Default (HTML) version
16
22
 
17
- $ gem install json_resume
23
+ ```
24
+ $ json_resume convert prateek_cv.json
25
+ ```
18
26
 
19
- ## Usage
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
- TODO: Write usage instructions here
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 += " Place #{dest}/#{dir_name}/ in /var/www/ to host."
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)
@@ -1,4 +1,7 @@
1
1
  {
2
+ "settings": {
3
+ "glyphicons" : true
4
+ },
2
5
  "firstname": "Prateek",
3
6
  "familyname": "Agarwal",
4
7
  "linkedin_id": "prat0318",
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 template to your own need is super easy. You just need to change the mustache files for any of these formats.}
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"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module JsonResume
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -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><img src="public/images/github.png" style="width:22px"></img> GitHub Projects</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.2.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-01 00:00:00.000000000 Z
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 template to your
113
- own need is super easy. You just need to change the mustache files for any of these
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: