cvgen 0.0.1 → 0.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: 995328ac1dfc6664b3b62d0c5d1beef9740b0853
4
- data.tar.gz: 8be0281314e3f56ff61565b197fdadcfa7bb1048
3
+ metadata.gz: 91f4620cf7dde44d7b55790837316abd7304647b
4
+ data.tar.gz: f6e41ba0cfbec0135aa66ce706bb9776c06d0dba
5
5
  SHA512:
6
- metadata.gz: 61f110c5fb8f35c9a0f8c26d286594810607b1e21a410e9e833e1f59cf79ef3af9d2ac973c13c4ff0fd4a214741a1b2333e3d8babf21b6e7645b928f4395603f
7
- data.tar.gz: 242f047e6f51701cdc1c0a410847fea35a2381769fdb82ebb1d4780074073edf39af1537272089898197f09b57401735281a29e74f37f51c7a2d92e17ca65f78
6
+ metadata.gz: f114beeb8b9f943551f1e1a691ac9ffe1d204c003ba4ee53e4816e8d778b09f3b667dec117c27d4db78e17ccdfb63aa9367d6c9b12f6ad9de67ed75c8e48ceb1
7
+ data.tar.gz: 67d18f368dd391236e22b2ce26f850f12a35438caba55069e7609a58c04f8ea79167b212201bc24e6800d113a35756a2f3d2b57800b325e4bfc4a18f0235e15b
@@ -62,6 +62,7 @@ module CVGen
62
62
 
63
63
  def document_options(root)
64
64
  h = super.update(:margin => 72)
65
+ h[:info][:Creator] = 'cvgen (using kramdown PDF converter)'
65
66
  h[:info].update(@options[:'document-info']) if @options[:'document-info']
66
67
  h
67
68
  end
@@ -82,6 +83,5 @@ module CVGen
82
83
  end
83
84
  end
84
85
 
85
-
86
86
  end
87
- end
87
+ end
data/lib/cvgen/exec.rb CHANGED
@@ -7,11 +7,13 @@ module CVGen
7
7
  def self.call
8
8
  input = ARGF.read
9
9
 
10
+ config = {}
11
+ config.merge!(YAML.load_file('config.yml')) if File.exist? 'config.yml'
12
+
10
13
  if input.start_with? "---\n"
11
- config, input = input.split /(?<=\.{3}\n)/, 2
14
+ front, input = input.split /(?<=\.{3}\n)/, 2
15
+ config.merge!(YAML.load front)
12
16
  end
13
- config = YAML.load config
14
- raise "Config must be a hash" unless config.is_a? Hash
15
17
 
16
18
  out = CVGen.generate input, config
17
19
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cvgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wildig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-06 00:00:00.000000000 Z
11
+ date: 2014-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -88,3 +88,4 @@ signing_key:
88
88
  specification_version: 4
89
89
  summary: Generate CVs in PDF format from Markdown-like source
90
90
  test_files: []
91
+ has_rdoc: