yaml-cv 0.1.0 → 0.1.1
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/README.md +7 -1
- data/bin/yaml-cv +6 -3
- data/lib/assets/cv.mustache +3 -1
- data/lib/yaml-cv.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e9478dcd593d43edfd3c6f74842fe45492b7dacdd99931d92d798543a112de9
|
4
|
+
data.tar.gz: 0e596fcfca64831fc75d7c614460a9dae35a1f77b9ab5014c82d4cc14f2de12c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1785ad9b33c63b9bb9a51b9ef9b069560776a6a063ca844fbb63c6f6815dc4849a8f51c7d6792170510e2e6a6ee14f9fe4e4de2d03a41499cdd2e3c4904afd4
|
7
|
+
data.tar.gz: 243166d88d051b6602307623272fdd2c53def51482709467166e769c2d58b1f9adea05f83bb065e74083cee3b1720d0046aa3fdc78a52681b23c8ade30d2481b
|
data/README.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
|
1
|
+
yaml-cv
|
2
|
+
[ ](https://travis-ci.com/gmantaos/yaml-cv)
|
3
|
+
[](https://rubygems.org/gems/yaml-cv)
|
4
|
+
[](LICENSE)
|
5
|
+
=====================
|
2
6
|
|
3
7
|
Static CV generator from a YAML file, in HTML or PDF format.
|
4
8
|
|
@@ -12,6 +16,8 @@ Static CV generator from a YAML file, in HTML or PDF format.
|
|
12
16
|
$ gem install yaml-cv
|
13
17
|
```
|
14
18
|
|
19
|
+
**Disclaimer:** On versions `0.1` PDF generation will be a little rough, since I implemented the release system before getting around to that.
|
20
|
+
|
15
21
|
## Usage
|
16
22
|
|
17
23
|
By default, the output will be printed to stdout in HTML format.
|
data/bin/yaml-cv
CHANGED
@@ -24,7 +24,7 @@ class Options
|
|
24
24
|
|
25
25
|
OptionParser.new do |opts|
|
26
26
|
|
27
|
-
opts.banner = "Usage: yaml-cv <
|
27
|
+
opts.banner = "Usage: yaml-cv <yml file> [options]"
|
28
28
|
|
29
29
|
opts.on("-w", "--watch", "Watch the input file for changes and automatically regenerate the CV.") do |watch|
|
30
30
|
|
@@ -44,7 +44,7 @@ class Options
|
|
44
44
|
opts.on_tail("-h", "--help", "Print this message and exit.") do
|
45
45
|
|
46
46
|
puts opts
|
47
|
-
exit
|
47
|
+
exit 1
|
48
48
|
end
|
49
49
|
|
50
50
|
end
|
@@ -59,7 +59,10 @@ class Options
|
|
59
59
|
|
60
60
|
@@options.file_name = ARGV.pop
|
61
61
|
|
62
|
-
|
62
|
+
if !@@options.file_name
|
63
|
+
puts self.parser
|
64
|
+
exit 1
|
65
|
+
end
|
63
66
|
end
|
64
67
|
|
65
68
|
def self.options
|
data/lib/assets/cv.mustache
CHANGED
@@ -135,9 +135,11 @@ ____________ ___________ _____ _ _____
|
|
135
135
|
</td>
|
136
136
|
<td class="period-wrapper">
|
137
137
|
<p>
|
138
|
-
{{ from
|
138
|
+
{{# from}}
|
139
|
+
{{ from.month }} <b>{{ from.year }}</b> -
|
139
140
|
{{# to}}{{ to.month }} <b>{{ to.year }}</b>{{/ to}}
|
140
141
|
{{^ to}}Present{{/ to}}
|
142
|
+
{{/ from}}
|
141
143
|
</p>
|
142
144
|
</td>
|
143
145
|
</tr>
|
data/lib/yaml-cv.rb
CHANGED