json_resume 1.0.1 → 1.0.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 +4 -4
- data/bin/json_resume +6 -0
- data/lib/json_resume/version.rb +1 -1
- 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: 7e1185f3931aeb30b8264d695f17eeb7980471e7
|
|
4
|
+
data.tar.gz: bd600627bfa8e875e27d24a3c9ebb617b7cc03f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d90db8dd0d28eb3bdd7e8280aae970d15638ee7752899016b43316c90a882b9ac391ca74cf981540cdfe1f76adbd9c9be3124e046ca4ec25437456aaed545a76
|
|
7
|
+
data.tar.gz: d7b6567f3887c66707c2130bc02edbc80d4a55a28ff727ffd6d389d8c37ff2a6f5f04e715e0d0fef2f1e3694815d0f23b618b23401150bfce1b1a0f9d267aae4
|
data/bin/json_resume
CHANGED
|
@@ -49,6 +49,7 @@ class JsonResumeCLI < Thor
|
|
|
49
49
|
def get_template(options)
|
|
50
50
|
return options[:template] if options[:template]
|
|
51
51
|
out_type = options[:out].split('_').first #html for both html, html_pdf
|
|
52
|
+
out_type = 'html' if out_type == 'pdf'
|
|
52
53
|
theme = options[:theme]
|
|
53
54
|
template_path = "#{@@orig_locn}/../templates/#{theme}_#{out_type}.mustache"
|
|
54
55
|
if !(File.exists? template_path) and theme != 'default'
|
|
@@ -66,6 +67,11 @@ class JsonResumeCLI < Thor
|
|
|
66
67
|
msg += "\nPlace #{dest_dir}/ in /var/www/ to host."
|
|
67
68
|
end
|
|
68
69
|
|
|
70
|
+
def convert_to_pdf(json_input, template, dest=Dir.pwd)
|
|
71
|
+
puts "Defaulting to 'html_pdf'..."
|
|
72
|
+
convert_to_html_pdf(json_input, template, dest)
|
|
73
|
+
end
|
|
74
|
+
|
|
69
75
|
def convert_to_html_pdf(json_input, template, dest=Dir.pwd)
|
|
70
76
|
tmp_dir = ".tmp_resume"
|
|
71
77
|
convert_to_html(json_input, template, dest, tmp_dir)
|
data/lib/json_resume/version.rb
CHANGED
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: 1.0.
|
|
4
|
+
version: 1.0.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-08-
|
|
11
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|