howzit 2.1.7 → 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: 4b0f59c8e5d03f4b8b3fab87cddfe014db34369fc74063e59de098f8abcc38b0
4
- data.tar.gz: 0c8806ab4ef01df61c6559ca40d07c810637cdaa9712f0c4c44f11629fb609a9
3
+ metadata.gz: c25e3552f96db88171b65049959d0088fb2b536448cba283d5727a455932e167
4
+ data.tar.gz: 22e3df773da7a22977d6959d84ed9f7ff86157dd3739163294fa9804e0571cb5
5
5
  SHA512:
6
- metadata.gz: 655eab2823e223e939d43c25191890a1297a63b37f7132dd869ff819e53e763c14915df8bc670af5066dee2ea88cd1da99a6350830a563058092b058777a8285
7
- data.tar.gz: 69775ac58ea7d2c387fd3316c0c31b5d368de6a783ccad65d5124eee2c704fd85c4532c7e5a7046c2ce188c4d3df9b59cb7e4aedb27d98f92768a35ecf81e51c
6
+ metadata.gz: 6aa7dbbb7b1ab3edad84a5b4ad99c3b4c42d396a3dc92c1f761d5717af9aa19316f5fa319ff2b1a73b94de0598302faa25dc2810229d996c8281184856084233
7
+ data.tar.gz: 992349253bf9d0c89454a1bfb9601702b84fe5bda8500b54ee96ea131144568941d7c33a14ad18de22223e8aa08fae599b666466cd50ebdf00e0fd4f543f7f41
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
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
+
9
+ ### 2.1.8
10
+
11
+ 2023-05-31 11:58
12
+
13
+ #### FIXED
14
+
15
+ - Colors.rb error when code is integer
16
+
1
17
  ### 2.1.7
2
18
 
3
19
  2023-05-29 12:59
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
data/lib/howzit/colors.rb CHANGED
@@ -206,7 +206,7 @@ module Howzit
206
206
  end
207
207
 
208
208
  def translate_rgb(code)
209
- return code if code !~ /#[A-Z0-9]{3,6}/i
209
+ return code if code.to_s !~ /#[A-Z0-9]{3,6}/i
210
210
 
211
211
  rgb(code)
212
212
  end
@@ -3,5 +3,5 @@
3
3
  # Primary module for this gem.
4
4
  module Howzit
5
5
  # Current Howzit version.
6
- VERSION = '2.1.7'
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.7
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-29 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