ansi-select 0.3.2 → 0.3.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
  SHA1:
3
- metadata.gz: 1378e23b4792a1b8e537ceb3a258bf114cb8e018
4
- data.tar.gz: 643ed6980728846d7b0482ad4c0d5e5c414b90ad
3
+ metadata.gz: ea2d52fba58aa395310efe0a495ee112003322b7
4
+ data.tar.gz: 0290503dc6e1e24a016efb47c6c4d671487918ad
5
5
  SHA512:
6
- metadata.gz: e0d1de90043ec51fb3cf564c5fd13cf969a674ce4ecfd7ecd01ceac12abee05a3f7197b91e39ff4a1424b1c42c001fa8dd102220b0595d539cce95ecbe8a6d0e
7
- data.tar.gz: 4d089f8d2ebe34c45c47466c2804c73532446e014c3ec9f12b35242228679525a3efc05694e7dbb690b13d674981067364a28289e5bf614ea79d137af378f5bf
6
+ metadata.gz: e26e3d96e525fd1a4ca7cfa51fc26c1c59c81d63ea85f2c5bed0a1afe941c50a921d7473ca42899677db7b1d47e7feedd8a42822c61a50cad037426c21120a94
7
+ data.tar.gz: 50324a46f2997a7d66c47710f4ece0a3b41acbf61ef98e37ff837955a91c40bd45bdeae8340c08f22f100bb1fb107943b0fe3deb843dfb9476ea8e377958e399
@@ -1,3 +1,7 @@
1
+ ### 0.3.3
2
+
3
+ * Fix the issue when it couldn't process array formats which include `nil`s.
4
+
1
5
  ### 0.3.2
2
6
 
3
7
  * Fix the issue when the path to `position.sh` was incorrect if run as a library.
@@ -21,11 +21,11 @@ module Ansi
21
21
  @columns = terminal_columns
22
22
 
23
23
  # Converts options to column-aligned strings.
24
- formatted = @options.map(&@formatter).map(&method(:Array)).map { |line| line.map(&method(:strip_ansi_colors)) }
24
+ formatted = @options.map(&@formatter).map(&method(:Array)).map { |line| line.map(&:to_s).map(&method(:strip_ansi_colors)) }
25
25
  @formatted ||= formatted.map do |f|
26
26
  f.map.with_index do |part, column|
27
27
  width = formatted.map { |fm| fm[column] }.compact.map(&:size).max
28
- part.to_s.ljust(width)
28
+ part.ljust(width)
29
29
  end.join(' ')
30
30
  end
31
31
 
@@ -1,5 +1,5 @@
1
1
  module Ansi
2
2
  class Selector
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansi-select
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volodymyr Shatskyi