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 +4 -4
- data/lib/is-term/info.rb +1 -1
- data/lib/is-term/statustable.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2d05a4513064121f90033a99795adbc8e05ecfff0ca31ff2e11b2f6b7d3819e
|
|
4
|
+
data.tar.gz: cda1e13edfcf3bcb70c8a97429a473ca3f9a70f051af2debd4d596c4704ac778
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7518f80b1583ad64bbaec00dcc51fa8cd7e5a046a13df2ca279f22302b47a7bfe3ef3bf76e302def7e36b36d6fe745df825138bc30e0d763fc6fe7c68f1a1ac1
|
|
7
|
+
data.tar.gz: 43663b839130c23416f65665c9392c484801c61a52fb03febd15498dbc153ce7bf346812023299253ba91b7b37dc941347d3c20a35825407f74d68ef14faaba1
|
data/lib/is-term/info.rb
CHANGED
data/lib/is-term/statustable.rb
CHANGED
|
@@ -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
|
|
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)
|