howzit 2.0.18 → 2.0.19

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: 16fc4dc237a8f226da219e66cbaee59984e8931bfe8e03fe5b0126451fb0d0d0
4
- data.tar.gz: a169f5a88a1a6b345b6732c4782d166d7c933a6ce986a66b14e9df35602e1b7b
3
+ metadata.gz: 7c08d6ceea211cc4e603a59c5e2f1ac7c2db806d55a8eaa1f260e1f0994bdf45
4
+ data.tar.gz: c5b6c284c725a8f1edabc07723a18d0e9d9c56204be0b7fb50e0d3bb1b5efccf
5
5
  SHA512:
6
- metadata.gz: d197932f7a501e0a4ffb5eb76ca60660223b98cee1346c573028922b05790652a8e8c08a4624c72645423145d342d0b3866580d9b05552fe72a87edda47b4a08
7
- data.tar.gz: 4e318240e7db8d6117fec620fd5505afab5ba35427b391e6a1dc90b4eccb978f6865054d300d00dad574ea4edc5ccb006c74112fca78f00dce14dc07c55095da
6
+ metadata.gz: 8c456e2c7f820777d6e07a26fcc677bfa8ac09a12bd409e870c37dbaa431f186ac551575b6eead585d446a02b533b5c729eba4dfac40b2caa876ff9f63400c9b
7
+ data.tar.gz: 03717f2b209cf812b31e5da66ab57000e7e54cd52efa08b8bc7e4c2840e30581509af401e76e8ccef9e5cd0b232d04601eb6d5723b49cc1e6ae3bb7e760bff29
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 2.0.19
2
+
3
+ 2022-08-08 06:18
4
+
5
+ #### IMPROVED
6
+
7
+ - Sort options in help output
8
+
1
9
  ### 2.0.18
2
10
 
3
11
  2022-08-08 03:48
data/bin/howzit CHANGED
@@ -44,7 +44,7 @@ OptionParser.new do |opts|
44
44
 
45
45
  opts.separator "\n Listing:\n\n" #=================================================================== LISTING
46
46
 
47
- opts.on('-L', '--list-completions', 'List topics for completion') do
47
+ opts.on('-L', '--list-completions', 'List topics (completion-compatible)') do
48
48
  Howzit.options[:list_topics] = true
49
49
  Howzit.options[:list_topic_titles] = true
50
50
  end
@@ -98,11 +98,6 @@ OptionParser.new do |opts|
98
98
  Process.exit 0
99
99
  end
100
100
 
101
- opts.on('--edit-template NAME', 'Create or edit a template') do |template|
102
- Howzit.buildnote.edit_template(template)
103
- Process.exit 0
104
- end
105
-
106
101
  opts.on('--config-get [KEY]', 'Display the configuration settings or setting for a specific key') do |k|
107
102
  if k.nil?
108
103
  Howzit::Config::DEFAULTS.sort_by { |key, _| key }.each do |key, _|
@@ -136,14 +131,19 @@ OptionParser.new do |opts|
136
131
  Process.exit 0
137
132
  end
138
133
 
139
- opts.on('--edit-config', "Edit configuration file using editor (#{Howzit.options[:editor]})") do
134
+ desc = %(Edit buildnotes file in current working directory using editor (#{File.basename(Howzit.options[:config_editor])}))
135
+ opts.on('-e', '--edit', desc) do
136
+ Howzit.buildnote.edit
137
+ Process.exit 0
138
+ end
139
+
140
+ opts.on('--edit-config', "Edit configuration file using editor (#{File.basename(Howzit.options[:editor])})") do
140
141
  Howzit.config.editor
141
142
  Process.exit 0
142
143
  end
143
144
 
144
- desc = %(Edit buildnotes file in current working directory using editor (#{Howzit.options[:config_editor]}))
145
- opts.on('-e', '--edit', desc) do
146
- Howzit.buildnote.edit
145
+ opts.on('--edit-template NAME', 'Create or edit a template') do |template|
146
+ Howzit.buildnote.edit_template(template)
147
147
  Process.exit 0
148
148
  end
149
149
 
@@ -3,5 +3,5 @@
3
3
  # Primary module for this gem.
4
4
  module Howzit
5
5
  # Current Howzit version.
6
- VERSION = '2.0.18'
6
+ VERSION = '2.0.19'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: howzit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.18
4
+ version: 2.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra