md_resume 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -16
- data/lib/md_resume/version.rb +1 -1
- data/lib/parser.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dfa4e87c4ae8d9354d7068d14daf558d5d30e4e29d74ea9a35fd52143e1f399
|
4
|
+
data.tar.gz: d50451dcfee4c7beeb3df4abba20aa2fb59802b3c88c9facf5b74f285986631e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 041bdb6832252e87b94f977264fb5e14eb338b4e384cdcbeda30722dc90527213431114eb90526903385c3d3b9dd6c3139fe1876f05570b30eb220c3d310120c
|
7
|
+
data.tar.gz: 3cd10c90fa1ae5e0710f522690a3d90195de5221a1a419b64f379e3a019c5952efce1726a5d8b6a3882ef2f4a285bc4a72d8f2b9725db3032c31bf9e4c086d3b
|
data/README.md
CHANGED
@@ -18,26 +18,30 @@ gem install md_resume
|
|
18
18
|
## Usage
|
19
19
|
|
20
20
|
```
|
21
|
-
Usage: md_resume command filename [options
|
21
|
+
Usage: md_resume command filename [options...]
|
22
22
|
|
23
23
|
Commands:
|
24
|
-
serve
|
25
|
-
build
|
26
|
-
generate
|
24
|
+
serve Start a local server to preview your resume
|
25
|
+
build Build your resume in html and pdf formats.
|
26
|
+
generate Generate a template with given file name,
|
27
|
+
defaults to generating only a markdown template.
|
27
28
|
|
28
29
|
Specific options:
|
29
|
-
--chrome-path=PATH
|
30
|
-
--no-pdf
|
31
|
-
--no-html
|
32
|
-
-p, --pdf-path=PATH
|
33
|
-
-h, --html-path=PATH
|
34
|
-
--css-path=PATH
|
35
|
-
--server-port=PORT
|
30
|
+
--chrome-path=PATH Path to Chrome executable
|
31
|
+
--no-pdf Do [not] write pdf output
|
32
|
+
--[no-]html Do [not] write html output
|
33
|
+
-p, --pdf-path=PATH Path of pdf output
|
34
|
+
-h, --html-path=PATH Path of html output
|
35
|
+
--css-path=PATH Path of css inputs.
|
36
|
+
--server-port=PORT Specify the localhost port number for the server
|
36
37
|
--serve-only
|
37
|
-
|
38
|
+
--no-open Do not automatically open browser when starting server
|
39
|
+
-v, --[no-]verbose Run verbosely
|
40
|
+
--[no-]generate-md Generate markdown template.
|
41
|
+
--[no-]generate-css Generate CSS template.
|
38
42
|
|
39
43
|
Common options:
|
40
|
-
--help
|
44
|
+
--help Show this message
|
41
45
|
```
|
42
46
|
|
43
47
|
## Customization
|
@@ -54,9 +58,7 @@ The idea for the project is based off of https://github.com/mikepqr/resume.md. I
|
|
54
58
|
|
55
59
|
## Development
|
56
60
|
|
57
|
-
|
58
|
-
|
59
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
61
|
+
No clue currently. I still have not written proper tests for this.
|
60
62
|
|
61
63
|
## Contributing
|
62
64
|
|
data/lib/md_resume/version.rb
CHANGED
data/lib/parser.rb
CHANGED
@@ -28,7 +28,8 @@ class Parser
|
|
28
28
|
parser.separator 'Commands:'
|
29
29
|
parser.separator "serve\t\t\tStart a local server to preview your resume"
|
30
30
|
parser.separator "build\t\t\tBuild your resume in html and pdf formats."
|
31
|
-
parser.separator "generate\t\tGenerate a
|
31
|
+
parser.separator "generate\t\tGenerate a template with given file name,"
|
32
|
+
parser.separator "\t\t\tdefaults to generating only a markdown template."
|
32
33
|
parser.separator ''
|
33
34
|
parser.separator 'Specific options:'
|
34
35
|
|
@@ -129,7 +130,7 @@ class Parser
|
|
129
130
|
end
|
130
131
|
|
131
132
|
def boolean_generate_md_option(parser)
|
132
|
-
parser.on('--no-generate-md', '
|
133
|
+
parser.on('--[no-]generate-md', 'Generate markdown template.') do |v|
|
133
134
|
self.generate_md = v
|
134
135
|
end
|
135
136
|
end
|
@@ -184,9 +185,9 @@ class Parser
|
|
184
185
|
options.html_path = internal_tmp_dir.join('resume.html')
|
185
186
|
end
|
186
187
|
|
187
|
-
def build_defaults
|
188
|
+
def build_defaults; end
|
188
189
|
|
189
|
-
def generate_defaults
|
190
|
+
def generate_defaults; end
|
190
191
|
|
191
192
|
attr_reader :parser, :options, :args
|
192
193
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: md_resume
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- elasticspoon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: filewatcher
|