howzit 2.1.8 → 2.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a339dc102a78623a6b3ef96602e081bf4a6d408d1f35d35d4f98dbc8135c154
4
- data.tar.gz: 420d78ffa41450f2546d22402d0ffaace9f4fedc450bf955de58038bee1fd657
3
+ metadata.gz: c25e3552f96db88171b65049959d0088fb2b536448cba283d5727a455932e167
4
+ data.tar.gz: 22e3df773da7a22977d6959d84ed9f7ff86157dd3739163294fa9804e0571cb5
5
5
  SHA512:
6
- metadata.gz: 2ea2707c779434c870a0d98d084f47dbe47b795f1c15282541866ba1c7cc74527f49f155d279d872fd2f7be57e1c8c6590d21dc31d29259c7b5358aef3ce589f
7
- data.tar.gz: e4c7250b27f0d89521bfdfc5aaade5e5f5d9ecda605ecca64c07402b2e3d0e97791768872e7a73ad1f5c27fb53f39507f98a7a6a3c41a56fefc5b01e45ee1f5a
6
+ metadata.gz: 6aa7dbbb7b1ab3edad84a5b4ad99c3b4c42d396a3dc92c1f761d5717af9aa19316f5fa319ff2b1a73b94de0598302faa25dc2810229d996c8281184856084233
7
+ data.tar.gz: 992349253bf9d0c89454a1bfb9601702b84fe5bda8500b54ee96ea131144568941d7c33a14ad18de22223e8aa08fae599b666466cd50ebdf00e0fd4f543f7f41
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 2.1.9
2
+
3
+ 2023-09-07 11:02
4
+
5
+ #### NEW
6
+
7
+ - Add --templates-c to get a completion-compatible list of available templates
8
+
1
9
  ### 2.1.8
2
10
 
3
11
  2023-05-31 11:58
data/README.md CHANGED
@@ -38,7 +38,7 @@ You can install `howzit` by running:
38
38
 
39
39
  gem install howzit
40
40
 
41
- If you run into permission errors using the above command, you'll need to either use `sudo` (`sudo gem install howzit`) or if you're using Homebrew, you have the option to install via [brew-gem](https://github.com/sportngin/brew-gem):
41
+ If you run into permission errors using the above command, you'll need to use `gem install --user-install howzit`. If that fails, either use `sudo` (`sudo gem install howzit`) or if you're using Homebrew, you have the option to install via [brew-gem](https://github.com/sportngin/brew-gem):
42
42
 
43
43
  brew install brew-gem
44
44
  brew gem install howzit
data/bin/howzit CHANGED
@@ -97,6 +97,17 @@ OptionParser.new do |opts|
97
97
  Process.exit 0
98
98
  end
99
99
 
100
+ opts.on('--templates-c', 'List available templates in a format for completion') do
101
+ out = []
102
+ Dir.chdir(Howzit.config.template_folder)
103
+ Dir.glob('*.md').each do |file|
104
+ template = File.basename(file, '.md')
105
+ out.push(template)
106
+ end
107
+ puts out.join("\n")
108
+ Process.exit 0
109
+ end
110
+
100
111
  opts.on('--title-only', 'Output title only') do
101
112
  Howzit.options[:output_title] = true
102
113
  Howzit.options[:title_only] = true
@@ -3,5 +3,5 @@
3
3
  # Primary module for this gem.
4
4
  module Howzit
5
5
  # Current Howzit version.
6
- VERSION = '2.1.8'
6
+ VERSION = '2.1.9'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: howzit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler