md_resume 0.1.1 → 0.1.3

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
  SHA256:
3
- metadata.gz: f7960149f0e0b6634eb7db3f0811e99359adc5d9349b19b6ec042929ed06c3d7
4
- data.tar.gz: ac6b8a0dff05ad88f718bfb9e8df3f388a6569a3051503468616a70fd902fd77
3
+ metadata.gz: 5dfa4e87c4ae8d9354d7068d14daf558d5d30e4e29d74ea9a35fd52143e1f399
4
+ data.tar.gz: d50451dcfee4c7beeb3df4abba20aa2fb59802b3c88c9facf5b74f285986631e
5
5
  SHA512:
6
- metadata.gz: 3c27c8c7c2486676cc369d8d9117046b8436aae2d38a9704014942e31f4e031ccb2ff6f4efd7cf32838a9d59d051f3c5faff1c322eb24874301eaee907c09409
7
- data.tar.gz: 27605dc40ca78e8f2536cdf7fae08e0be7428fb564171289a86953d6ae87b92c19b0ea98a6b13168846cf9aa498f6a5329a40943d569620aa56f77529b2f8f65
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 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 name (defaults to markdown)
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 Path to Chrome executable
30
- --no-pdf Do not write pdf output
31
- --no-html Do not write html output
32
- -p, --pdf-path=PATH Path of pdf output
33
- -h, --html-path=PATH Path of html output
34
- --css-path=PATH Path of css inputs.
35
- --server-port=PORT Specify the localhost port number for the server
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
- -v, --[no-]verbose Run verbosely
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 Show this message
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
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MdResume
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.3'
5
5
  end
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 resume template with the given filename"
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', 'Do not generate markdown template.') do |v|
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(parser); end
188
+ def build_defaults; end
188
189
 
189
- def generate_defaults(parser); end
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.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-27 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: filewatcher