y_support 2.0.41 → 2.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/y_support/core_ext/hash/misc.rb +1 -1
- data/lib/y_support/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7a8d4d02757ef3f1d47a1093c04274fd462d890
|
4
|
+
data.tar.gz: 66d1c435eb4091ce1b749899af392aaa718c241a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57036903f19cab0194e726943b98dec0d2becb6808ac26f1593097949e6e9c49aadc0a2a3149e0737b8dc03c88134512953d980ac89a53dd18df74c5f1e8836e
|
7
|
+
data.tar.gz: 63801b791d327a8f3b9f894c8659be66f8f4bc10e7376ebffb6e1d5666314106d803ad5ed384fe0574ffd40530422c960e1c1e9df1730d88755dab94e6a1892e
|
@@ -142,7 +142,7 @@ class Hash
|
|
142
142
|
#
|
143
143
|
def pretty_print_numeric_values gap: 0, precision: 2
|
144
144
|
key_strings = keys.map &:to_s
|
145
|
-
value_strings = values.map { |n| "%.#{precision}f" % n rescue "%s" %
|
145
|
+
value_strings = values.map { |n| "%.#{precision}f" % n rescue "%s" % n }
|
146
146
|
lmax, rmax = key_strings.map( &:size ).max, value_strings.map( &:size ).max
|
147
147
|
lgap = gap / 2
|
148
148
|
rgap = gap - lgap
|
data/lib/y_support/version.rb
CHANGED