debugtrace 0.2.4 → 0.2.5
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/debugtrace/config.rb +4 -4
- data/lib/debugtrace/version.rb +1 -1
- data/lib/debugtrace.rb +1 -7
- 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: 665b9852fb34caab345012ab6bac6e18c0e8951d689125ea9cf0c399a0c7637e
|
4
|
+
data.tar.gz: d0940c27f8beec19e0aecfc609ddab7a35ecefedcde6251b1de5382d9d8ea319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b3a87106db56eb5c88c42c28f5c25eaf17a19a502c82411853554200c7ddaa7c5117248d5b0059206a467b53a47abdf9e37a4aa4b736199f051b76cbe4ecd0d
|
7
|
+
data.tar.gz: db33d2a6c4df894006aa1daada1fa777cdb0908ffeb4ccdb9b5de95e86dbece0835d0bea23a39c7f185dcf3fa36b6304ad680a185f58598a8cbe74b6d6bcb328
|
data/lib/debugtrace/config.rb
CHANGED
@@ -62,10 +62,10 @@ class Config
|
|
62
62
|
@varname_value_separator = get_value 'varname_value_separator' , ' = '
|
63
63
|
@key_value_separator = get_value 'key_value_separator' , ': '
|
64
64
|
@print_suffix_format = get_value 'print_suffix_format' , ' (%2$s:%3$d)'
|
65
|
-
@size_format = get_value 'size_format' , 'size:%d'
|
66
|
-
@minimum_output_size = get_value 'minimum_output_size' ,
|
67
|
-
@length_format = get_value 'length_format' , 'length:%d'
|
68
|
-
@minimum_output_length = get_value 'minimum_output_length' ,
|
65
|
+
@size_format = get_value 'size_format' , '(size:%d)'
|
66
|
+
@minimum_output_size = get_value 'minimum_output_size' , 256
|
67
|
+
@length_format = get_value 'length_format' , '(length:%d)'
|
68
|
+
@minimum_output_length = get_value 'minimum_output_length' , 256
|
69
69
|
@maximum_data_output_width = get_value 'maximum_data_output_width', 70
|
70
70
|
@bytes_count_in_line = get_value 'bytes_count_in_line' , 16
|
71
71
|
@collection_limit = get_value 'collection_limit' , 128
|
data/lib/debugtrace/version.rb
CHANGED
data/lib/debugtrace.rb
CHANGED
@@ -163,12 +163,8 @@ module DebugTrace
|
|
163
163
|
double_quote_buff = LogBuffer.new(@@config.maximum_data_output_width)
|
164
164
|
|
165
165
|
if value.length >= @@config.minimum_output_length
|
166
|
-
single_quote_buff.no_break_append('(')
|
167
166
|
single_quote_buff.no_break_append(format(@@config.length_format, value.length))
|
168
|
-
single_quote_buff.no_break_append(')')
|
169
|
-
double_quote_buff.no_break_append('(')
|
170
167
|
double_quote_buff.no_break_append(format(@@config.length_format, value.length))
|
171
|
-
double_quote_buff.no_break_append(')')
|
172
168
|
end
|
173
169
|
|
174
170
|
single_quote_buff.no_break_append("'")
|
@@ -236,11 +232,10 @@ module DebugTrace
|
|
236
232
|
end
|
237
233
|
|
238
234
|
if bytes_length >= @@config.minimum_output_length
|
239
|
-
buff.no_break_append(' ')
|
240
235
|
buff.no_break_append(format(@@config.size_format, bytes_length))
|
241
236
|
end
|
242
237
|
|
243
|
-
buff.no_break_append('
|
238
|
+
buff.no_break_append('[')
|
244
239
|
|
245
240
|
multi_lines = bytes_length >= @@config.bytes_count_in_line
|
246
241
|
|
@@ -422,7 +417,6 @@ module DebugTrace
|
|
422
417
|
type_name = '' if %w[Array Hash Set].include?(type_name)
|
423
418
|
|
424
419
|
if count >= @@config.minimum_output_size
|
425
|
-
type_name += ' ' unless type_name.empty?
|
426
420
|
type_name += @@config.size_format % count
|
427
421
|
end
|
428
422
|
|