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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d947985b77239ae5e683bda7bf79ceb94d0939a6
4
- data.tar.gz: 0ba72d5177a5b0865053614131bb4b71ee91d3b4
3
+ metadata.gz: 7e1185f3931aeb30b8264d695f17eeb7980471e7
4
+ data.tar.gz: bd600627bfa8e875e27d24a3c9ebb617b7cc03f4
5
5
  SHA512:
6
- metadata.gz: 65c7a82bffcb5a6b669e32972bd0c5fb4a9bced35e6b202e133c25184ae8a4ef7bbc74c7655113b120ee9efe4bf39ef103403bb78417cef614e9487b5254b95e
7
- data.tar.gz: b322404fa58413748947ab42813181b4a1f35140316f55a0be360e2d9925f6245604e81e40aedc2a3ad13124cfb7fe123a03b2bd538452ef2f98375cc9f33658
6
+ metadata.gz: d90db8dd0d28eb3bdd7e8280aae970d15638ee7752899016b43316c90a882b9ac391ca74cf981540cdfe1f76adbd9c9be3124e046ca4ec25437456aaed545a76
7
+ data.tar.gz: d7b6567f3887c66707c2130bc02edbc80d4a55a28ff727ffd6d389d8c37ff2a6f5f04e715e0d0fef2f1e3694815d0f23b618b23401150bfce1b1a0f9d267aae4
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module JsonResume
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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 00:00:00.000000000 Z
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler