howzit 2.1.2 → 2.1.3

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: 23a304a27d457b410c8764ed0b83f0a00e2e6e9108ba3fd4a7bef722695d8607
4
- data.tar.gz: 2041090127040e2315691750de2ee9ccaf3d770a7b8561d328f573e78e633a50
3
+ metadata.gz: d34bc56b28033e3f708225b2706bca8d0c2ccaa3d727f9193855412940071e68
4
+ data.tar.gz: 0f78cefe615f34c31590e206081c01d3b7229da6e1045ea215872fc71ba2942c
5
5
  SHA512:
6
- metadata.gz: 8dda575709255dec600f6ba6f259c856b67ab91d9418fbcbc374f85a8eaa6a2842ac8a0b9bdd22a5eec9621e17353b6f2dfa7bc7b6f9b7de9d0c64006d5a27b1
7
- data.tar.gz: 236c40bbd997c4bd956aa9796999771b965907add10b208929ba45a09c04679126177232dce1a5d29d15cec4ebfd09315b8bc274e588b0fccc02a938395731ef
6
+ metadata.gz: e22946b9e257c6d13ce3d950584049f31c570aa618e047e6041ea1ef5b3a9ca85322124ef6fcc04a41dac4860b3441045265a4080886df13d31322b7bd88ad80
7
+ data.tar.gz: 120350fb80cea5353cc79dbe8f63e5adec7d14b45fa6df526cc3de349a8d54a797bf283467d4d45f4156a34b3ea2d06c8915f9b66b7e1eff6cf0d95fd6f777a7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 2.1.3
2
+
3
+ 2023-03-07 11:21
4
+
5
+ #### FIXED
6
+
7
+ - Annoying warning about color template format string having too many arguments
8
+
1
9
  ### 2.1.2
2
10
 
3
11
  2023-03-07 10:24
data/lib/howzit/colors.rb CHANGED
@@ -237,7 +237,7 @@ module Howzit
237
237
  Y: bgyellow, C: bgcyan, M: bgmagenta, R: bgred,
238
238
  d: dark, b: bold, u: underline, i: italic, x: reset }
239
239
 
240
- format(fmt, colors)
240
+ fmt.empty? ? input : format(fmt, colors)
241
241
  end
242
242
  end
243
243
 
@@ -304,7 +304,7 @@ module Howzit
304
304
  %w[r g b].each do |e|
305
305
  t << parts[e].hex
306
306
  end
307
- color =
307
+
308
308
  "\e[#{is_bg ? '48' : '38'};2;#{t.join(';')}m"
309
309
  end
310
310
 
@@ -3,5 +3,5 @@
3
3
  # Primary module for this gem.
4
4
  module Howzit
5
5
  # Current Howzit version.
6
- VERSION = '2.1.2'
6
+ VERSION = '2.1.3'
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.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra