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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce8fe4113e5e6d49353414a4e204e96fd0bb18f303972a5e4aef48e0e7fa07d5
4
- data.tar.gz: 0cdba9d53b9edbed09ef2ed76a76756abdc57fe5fbabd7ab886d06e3ab1d1623
3
+ metadata.gz: 665b9852fb34caab345012ab6bac6e18c0e8951d689125ea9cf0c399a0c7637e
4
+ data.tar.gz: d0940c27f8beec19e0aecfc609ddab7a35ecefedcde6251b1de5382d9d8ea319
5
5
  SHA512:
6
- metadata.gz: cbdba0458650b624c0a7e6872c294f578e855fd3cb5d6e050ec4801a356a94fd29b3c3f5a00e01ef155860a8cde98e7b093c2f5f1b1cf5f0925c1904536e17d9
7
- data.tar.gz: 34acc1fc0519aea58496c807f7716944696f596f2810d6403cee8c9e7b1184f29579420ab58cbe3a310d895e43ee9b351f90112c5d9154f71dfb5983075b58a1
6
+ metadata.gz: 3b3a87106db56eb5c88c42c28f5c25eaf17a19a502c82411853554200c7ddaa7c5117248d5b0059206a467b53a47abdf9e37a4aa4b736199f051b76cbe4ecd0d
7
+ data.tar.gz: db33d2a6c4df894006aa1daada1fa777cdb0908ffeb4ccdb9b5de95e86dbece0835d0bea23a39c7f185dcf3fa36b6304ad680a185f58598a8cbe74b6d6bcb328
@@ -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' , 16
67
- @length_format = get_value 'length_format' , 'length:%d'
68
- @minimum_output_length = get_value 'minimum_output_length' , 16
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
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module DebugTrace
5
- VERSION = '0.2.4'
5
+ VERSION = '0.2.5'
6
6
  end
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debugtrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masato Kokubo