is-term 0.8.4 → 0.8.4.2

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: c37ae2be256250fa7dae77e58c31839bbfd9e80aec7bf62d00e6711f1d71d20c
4
- data.tar.gz: b578b427433c8d856ecae60bbf1dc0cd6e34557566efc0de62267b48d708cc95
3
+ metadata.gz: f2d05a4513064121f90033a99795adbc8e05ecfff0ca31ff2e11b2f6b7d3819e
4
+ data.tar.gz: cda1e13edfcf3bcb70c8a97429a473ca3f9a70f051af2debd4d596c4704ac778
5
5
  SHA512:
6
- metadata.gz: 141f30cefe750f957776bce3e48ac34b82e9b69322d117722c385b2ad1032e4a3268d057bab819a4b9142277793aa740460bb6439b4c6b01da27bbe620210def
7
- data.tar.gz: 8f339644c5eba0f6cf265951c4f0898daf4cb7fd79be6341216bd53ebc23d357f9eabfe8ddd7d9fc563404337d1cbb0a5cdc387aaf4ae4bee0c150e40fb455e9
6
+ metadata.gz: 7518f80b1583ad64bbaec00dcc51fa8cd7e5a046a13df2ca279f22302b47a7bfe3ef3bf76e302def7e36b36d6fe745df825138bc30e0d763fc6fe7c68f1a1ac1
7
+ data.tar.gz: 43663b839130c23416f65665c9392c484801c61a52fb03febd15498dbc153ce7bf346812023299253ba91b7b37dc941347d3c20a35825407f74d68ef14faaba1
data/lib/is-term/info.rb CHANGED
@@ -7,7 +7,7 @@ module IS::Term; end
7
7
  module IS::Term::Info
8
8
 
9
9
  NAME = 'is-term'
10
- VERSION = '0.8.4'
10
+ VERSION = '0.8.4.2'
11
11
  AUTHOR = "Ivan Shikhalev"
12
12
  AUTHOR_URL = "https://github.com/shikhalev"
13
13
  EMAIL = "shikhalev@gmail.com"
@@ -54,7 +54,9 @@ class IS::Term::StatusTable
54
54
  # @return [Hash, nil]
55
55
  def row row_id
56
56
  return nil if @id_field.nil?
57
- @rows.find { |r| r[@id_field] == row_id }.dup.freeze
57
+ result = @rows.find { |r| r[@id_field] == row_id }.dup
58
+ result.delete :_mutex if result
59
+ result.freeze
58
60
  end
59
61
 
60
62
  # @endgroup
@@ -351,7 +353,7 @@ class IS::Term::StatusTable
351
353
  end
352
354
  raise ArgumentError, "Invalid format value: #{ format.inspect }", caller_locations unless format.nil? || format.is_a?(String) || format.is_a?(Array) || format.respond_to?(:call) || format_keys.include?(format)
353
355
  if self.class.const_defined?(:Formats) && format && !format.respond_to?(:call)
354
- format = Formats::fmt format if format.is_a?(Symbol)
356
+ format = Formats::fmt format if format.is_a?(Symbol) || format.is_a?(String)
355
357
  format = Formats::bar(*format) if format.is_a?(Array)
356
358
  end
357
359
  raise ArgumentError, "Invalid width value: #{ width.inspect }", caller_locations unless width.nil? || width.is_a?(Integer)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: is-term
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Shikhalev