brakeman 7.0.0 → 7.0.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.
Files changed (269) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +13 -0
  3. data/README.md +1 -1
  4. data/bundle/load.rb +9 -8
  5. data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/NEWS.md +25 -0
  6. data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/parser.rb +15 -5
  7. data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/version.rb +1 -1
  8. data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv.rb +1 -1
  9. data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/Changelog.md +4 -0
  10. data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/Gemfile +1 -0
  11. data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/list_renderer.rb +2 -2
  12. data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/menu.rb +7 -5
  13. data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/version.rb +1 -1
  14. data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline.rb +17 -12
  15. data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/io/ansi.rb +8 -15
  16. data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/key_stroke.rb +2 -2
  17. data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/line_editor.rb +76 -104
  18. data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/unicode/east_asian_width.rb +41 -15
  19. data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/unicode.rb +2 -2
  20. data/bundle/ruby/3.1.0/gems/reline-0.6.1/lib/reline/version.rb +3 -0
  21. data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline.rb +22 -13
  22. data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/NEWS.md +24 -0
  23. data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parsers/baseparser.rb +29 -8
  24. data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/rexml.rb +1 -1
  25. data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/source.rb +16 -2
  26. data/bundle/ruby/3.1.0/gems/{ruby2ruby-2.5.1 → ruby2ruby-2.5.2}/History.rdoc +6 -0
  27. data/bundle/ruby/3.1.0/gems/{ruby2ruby-2.5.1 → ruby2ruby-2.5.2}/lib/ruby2ruby.rb +7 -4
  28. data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/History.rdoc +7 -0
  29. data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/cell.rb +1 -1
  30. data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/table.rb +2 -0
  31. data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/version.rb +1 -1
  32. data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/terminal-table.gemspec +1 -2
  33. data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/template.rb +151 -24
  34. data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt.rb +9 -1
  35. data/bundle/ruby/3.1.0/gems/{unicode-display_width-2.6.0 → unicode-display_width-3.1.4}/CHANGELOG.md +93 -2
  36. data/bundle/ruby/3.1.0/gems/unicode-display_width-3.1.4/README.md +194 -0
  37. data/bundle/ruby/3.1.0/gems/unicode-display_width-3.1.4/data/display_width.marshal.gz +0 -0
  38. data/bundle/ruby/3.1.0/gems/{unicode-display_width-2.6.0 → unicode-display_width-3.1.4}/lib/unicode/display_width/constants.rb +1 -1
  39. data/bundle/ruby/3.1.0/gems/unicode-display_width-3.1.4/lib/unicode/display_width/emoji_support.rb +52 -0
  40. data/bundle/ruby/3.1.0/gems/unicode-display_width-3.1.4/lib/unicode/display_width/reline_ext.rb +14 -0
  41. data/bundle/ruby/3.1.0/gems/unicode-display_width-3.1.4/lib/unicode/display_width/string_ext.rb +9 -0
  42. data/bundle/ruby/3.1.0/gems/unicode-display_width-3.1.4/lib/unicode/display_width.rb +247 -0
  43. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/CHANGELOG.md +191 -0
  44. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/CODE_OF_CONDUCT.md +74 -0
  45. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/Gemfile +7 -0
  46. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/Gemfile.lock +33 -0
  47. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/MIT-LICENSE.txt +20 -0
  48. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/README.md +205 -0
  49. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/data/emoji.marshal.gz +0 -0
  50. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/data/generate_constants.rb +344 -0
  51. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/constants.rb +49 -0
  52. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex.rb +8 -0
  53. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_basic.rb +8 -0
  54. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_emoji_keycap.rb +8 -0
  55. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_include_mqe.rb +8 -0
  56. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_include_mqe_uqe.rb +8 -0
  57. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_include_text.rb +8 -0
  58. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_picto.rb +8 -0
  59. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_picto_no_emoji.rb +8 -0
  60. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_possible.rb +8 -0
  61. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_prop_component.rb +8 -0
  62. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_prop_emoji.rb +8 -0
  63. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_prop_modifier.rb +8 -0
  64. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_prop_modifier_base.rb +8 -0
  65. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_prop_presentation.rb +8 -0
  66. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_text.rb +8 -0
  67. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_text_presentation.rb +8 -0
  68. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_valid.rb +8 -0
  69. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_valid_include_text.rb +8 -0
  70. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_well_formed.rb +8 -0
  71. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated/regex_well_formed_include_text.rb +8 -0
  72. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex.rb +8 -0
  73. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_basic.rb +8 -0
  74. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_emoji_keycap.rb +8 -0
  75. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_include_mqe.rb +8 -0
  76. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_include_mqe_uqe.rb +8 -0
  77. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_include_text.rb +8 -0
  78. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_picto.rb +8 -0
  79. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_picto_no_emoji.rb +8 -0
  80. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_possible.rb +8 -0
  81. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_prop_component.rb +8 -0
  82. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_prop_emoji.rb +8 -0
  83. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_prop_modifier.rb +8 -0
  84. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_prop_modifier_base.rb +8 -0
  85. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_prop_presentation.rb +8 -0
  86. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_text.rb +8 -0
  87. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_text_presentation.rb +8 -0
  88. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_valid.rb +8 -0
  89. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_valid_include_text.rb +8 -0
  90. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_well_formed.rb +8 -0
  91. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/generated_native/regex_well_formed_include_text.rb +8 -0
  92. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/index.rb +14 -0
  93. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/lazy_constants.rb +56 -0
  94. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji/list.rb +13 -0
  95. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/lib/unicode/emoji.rb +111 -0
  96. data/bundle/ruby/3.1.0/gems/unicode-emoji-4.0.4/unicode-emoji.gemspec +22 -0
  97. data/lib/brakeman/app_tree.rb +6 -1
  98. data/lib/brakeman/checks/check_evaluation.rb +39 -20
  99. data/lib/brakeman/checks/check_weak_rsa_key.rb +1 -1
  100. data/lib/brakeman/options.rb +4 -0
  101. data/lib/brakeman/processors/alias_processor.rb +3 -2
  102. data/lib/brakeman/scanner.rb +22 -13
  103. data/lib/brakeman/version.rb +1 -1
  104. data/lib/brakeman.rb +7 -0
  105. metadata +253 -197
  106. data/bundle/ruby/3.1.0/gems/reline-0.6.0/lib/reline/version.rb +0 -3
  107. data/bundle/ruby/3.1.0/gems/unicode-display_width-2.6.0/README.md +0 -171
  108. data/bundle/ruby/3.1.0/gems/unicode-display_width-2.6.0/data/display_width.marshal.gz +0 -0
  109. data/bundle/ruby/3.1.0/gems/unicode-display_width-2.6.0/lib/unicode/display_width/string_ext.rb +0 -9
  110. data/bundle/ruby/3.1.0/gems/unicode-display_width-2.6.0/lib/unicode/display_width.rb +0 -123
  111. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/LICENSE.txt +0 -0
  112. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/README.md +0 -0
  113. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/core_ext/array.rb +0 -0
  114. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/core_ext/string.rb +0 -0
  115. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/fields_converter.rb +0 -0
  116. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/input_record_separator.rb +0 -0
  117. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/row.rb +0 -0
  118. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/table.rb +0 -0
  119. /data/bundle/ruby/3.1.0/gems/{csv-3.3.2 → csv-3.3.3}/lib/csv/writer.rb +0 -0
  120. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/AUTHORS +0 -0
  121. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/COPYING +0 -0
  122. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/LICENSE +0 -0
  123. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/README.md +0 -0
  124. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/TODO +0 -0
  125. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/highline.gemspec +0 -0
  126. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/builtin_styles.rb +0 -0
  127. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/color_scheme.rb +0 -0
  128. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/compatibility.rb +0 -0
  129. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/custom_errors.rb +0 -0
  130. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/import.rb +0 -0
  131. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/io_console_compatible.rb +0 -0
  132. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/list.rb +0 -0
  133. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/menu/item.rb +0 -0
  134. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/paginator.rb +0 -0
  135. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/question/answer_converter.rb +0 -0
  136. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/question.rb +0 -0
  137. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/question_asker.rb +0 -0
  138. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/simulate.rb +0 -0
  139. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/statement.rb +0 -0
  140. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/string.rb +0 -0
  141. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/string_extensions.rb +0 -0
  142. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/style.rb +0 -0
  143. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/template_renderer.rb +0 -0
  144. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/terminal/io_console.rb +0 -0
  145. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/terminal/ncurses.rb +0 -0
  146. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/terminal/unix_stty.rb +0 -0
  147. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/terminal.rb +0 -0
  148. /data/bundle/ruby/3.1.0/gems/{highline-3.1.1 → highline-3.1.2}/lib/highline/wrapper.rb +0 -0
  149. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/BSDL +0 -0
  150. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/COPYING +0 -0
  151. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/README.md +0 -0
  152. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/config.rb +0 -0
  153. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/face.rb +0 -0
  154. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/history.rb +0 -0
  155. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/io/dumb.rb +0 -0
  156. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/io/windows.rb +0 -0
  157. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/io.rb +0 -0
  158. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/key_actor/base.rb +0 -0
  159. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/key_actor/composite.rb +0 -0
  160. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/key_actor/emacs.rb +0 -0
  161. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/key_actor/vi_command.rb +0 -0
  162. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/key_actor/vi_insert.rb +0 -0
  163. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/key_actor.rb +0 -0
  164. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/lib/reline/kill_ring.rb +0 -0
  165. /data/bundle/ruby/3.1.0/gems/{reline-0.6.0 → reline-0.6.1}/license_of_rb-readline +0 -0
  166. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/LICENSE.txt +0 -0
  167. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/README.md +0 -0
  168. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/attlistdecl.rb +0 -0
  169. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/attribute.rb +0 -0
  170. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/cdata.rb +0 -0
  171. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/child.rb +0 -0
  172. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/comment.rb +0 -0
  173. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/doctype.rb +0 -0
  174. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/document.rb +0 -0
  175. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/dtd/attlistdecl.rb +0 -0
  176. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/dtd/dtd.rb +0 -0
  177. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/dtd/elementdecl.rb +0 -0
  178. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/dtd/entitydecl.rb +0 -0
  179. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/dtd/notationdecl.rb +0 -0
  180. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/element.rb +0 -0
  181. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/encoding.rb +0 -0
  182. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/entity.rb +0 -0
  183. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/formatters/default.rb +0 -0
  184. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/formatters/pretty.rb +0 -0
  185. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/formatters/transitive.rb +0 -0
  186. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/functions.rb +0 -0
  187. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/instruction.rb +0 -0
  188. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/light/node.rb +0 -0
  189. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/namespace.rb +0 -0
  190. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/node.rb +0 -0
  191. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/output.rb +0 -0
  192. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parent.rb +0 -0
  193. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parseexception.rb +0 -0
  194. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parsers/lightparser.rb +0 -0
  195. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parsers/pullparser.rb +0 -0
  196. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parsers/sax2parser.rb +0 -0
  197. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parsers/streamparser.rb +0 -0
  198. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parsers/treeparser.rb +0 -0
  199. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parsers/ultralightparser.rb +0 -0
  200. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/parsers/xpathparser.rb +0 -0
  201. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/quickpath.rb +0 -0
  202. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/sax2listener.rb +0 -0
  203. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/security.rb +0 -0
  204. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/streamlistener.rb +0 -0
  205. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/text.rb +0 -0
  206. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/undefinednamespaceexception.rb +0 -0
  207. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/validation/relaxng.rb +0 -0
  208. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/validation/validation.rb +0 -0
  209. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/validation/validationexception.rb +0 -0
  210. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/xmldecl.rb +0 -0
  211. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/xmltokens.rb +0 -0
  212. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/xpath.rb +0 -0
  213. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml/xpath_parser.rb +0 -0
  214. /data/bundle/ruby/3.1.0/gems/{rexml-3.4.0 → rexml-3.4.1}/lib/rexml.rb +0 -0
  215. /data/bundle/ruby/3.1.0/gems/{ruby2ruby-2.5.1 → ruby2ruby-2.5.2}/Manifest.txt +0 -0
  216. /data/bundle/ruby/3.1.0/gems/{ruby2ruby-2.5.1 → ruby2ruby-2.5.2}/README.rdoc +0 -0
  217. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/Gemfile +0 -0
  218. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/LICENSE.txt +0 -0
  219. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/Manifest +0 -0
  220. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/README.md +0 -0
  221. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/Todo.rdoc +0 -0
  222. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/import.rb +0 -0
  223. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/row.rb +0 -0
  224. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/separator.rb +0 -0
  225. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/style.rb +0 -0
  226. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/table_helper.rb +0 -0
  227. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table/util.rb +0 -0
  228. /data/bundle/ruby/3.1.0/gems/{terminal-table-3.0.2 → terminal-table-4.0.0}/lib/terminal-table.rb +0 -0
  229. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/COPYING +0 -0
  230. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/_emacs_org.rb +0 -0
  231. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/_handlebars.rb +0 -0
  232. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/_jbuilder.rb +0 -0
  233. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/_org.rb +0 -0
  234. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/asciidoc.rb +0 -0
  235. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/babel.rb +0 -0
  236. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/builder.rb +0 -0
  237. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/cli.rb +0 -0
  238. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/coffee.rb +0 -0
  239. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/commonmarker.rb +0 -0
  240. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/creole.rb +0 -0
  241. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/csv.rb +0 -0
  242. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/erb.rb +0 -0
  243. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/erubi.rb +0 -0
  244. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/etanni.rb +0 -0
  245. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/haml.rb +0 -0
  246. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/kramdown.rb +0 -0
  247. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/liquid.rb +0 -0
  248. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/livescript.rb +0 -0
  249. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/mapping.rb +0 -0
  250. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/markaby.rb +0 -0
  251. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/nokogiri.rb +0 -0
  252. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/pandoc.rb +0 -0
  253. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/pipeline.rb +0 -0
  254. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/plain.rb +0 -0
  255. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/prawn.rb +0 -0
  256. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/radius.rb +0 -0
  257. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/rdiscount.rb +0 -0
  258. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/rdoc.rb +0 -0
  259. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/redcarpet.rb +0 -0
  260. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/redcloth.rb +0 -0
  261. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/rst-pandoc.rb +0 -0
  262. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/sass.rb +0 -0
  263. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/slim.rb +0 -0
  264. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/string.rb +0 -0
  265. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/typescript.rb +0 -0
  266. /data/bundle/ruby/3.1.0/gems/{tilt-2.5.0 → tilt-2.6.0}/lib/tilt/yajl.rb +0 -0
  267. /data/bundle/ruby/3.1.0/gems/{unicode-display_width-2.6.0 → unicode-display_width-3.1.4}/MIT-LICENSE.txt +0 -0
  268. /data/bundle/ruby/3.1.0/gems/{unicode-display_width-2.6.0 → unicode-display_width-3.1.4}/lib/unicode/display_width/index.rb +0 -0
  269. /data/bundle/ruby/3.1.0/gems/{unicode-display_width-2.6.0 → unicode-display_width-3.1.4}/lib/unicode/display_width/no_string_ext.rb +0 -0
@@ -1,6 +1,6 @@
1
1
  class Reline::Unicode::EastAsianWidth
2
2
  # This is based on EastAsianWidth.txt
3
- # UNICODE_VERSION = '15.1.0'
3
+ # UNICODE_VERSION = '16.0.0'
4
4
 
5
5
  CHUNK_LAST, CHUNK_WIDTH = [
6
6
  [0x1f, 2],
@@ -174,7 +174,7 @@ class Reline::Unicode::EastAsianWidth
174
174
  [0x82d, 0],
175
175
  [0x858, 1],
176
176
  [0x85b, 0],
177
- [0x897, 1],
177
+ [0x896, 1],
178
178
  [0x89f, 0],
179
179
  [0x8c9, 1],
180
180
  [0x8e1, 0],
@@ -646,6 +646,8 @@ class Reline::Unicode::EastAsianWidth
646
646
  [0x261c, -1],
647
647
  [0x261d, 1],
648
648
  [0x261e, -1],
649
+ [0x262f, 1],
650
+ [0x2637, 2],
649
651
  [0x263f, 1],
650
652
  [0x2640, -1],
651
653
  [0x2641, 1],
@@ -664,6 +666,8 @@ class Reline::Unicode::EastAsianWidth
664
666
  [0x266f, -1],
665
667
  [0x267e, 1],
666
668
  [0x267f, 2],
669
+ [0x2689, 1],
670
+ [0x268f, 2],
667
671
  [0x2692, 1],
668
672
  [0x2693, 2],
669
673
  [0x269d, 1],
@@ -753,14 +757,12 @@ class Reline::Unicode::EastAsianWidth
753
757
  [0x3130, 1],
754
758
  [0x318e, 2],
755
759
  [0x318f, 1],
756
- [0x31e3, 2],
760
+ [0x31e5, 2],
757
761
  [0x31ee, 1],
758
762
  [0x321e, 2],
759
763
  [0x321f, 1],
760
764
  [0x3247, 2],
761
765
  [0x324f, -1],
762
- [0x4dbf, 2],
763
- [0x4dff, 1],
764
766
  [0xa48c, 2],
765
767
  [0xa48f, 1],
766
768
  [0xa4c6, 2],
@@ -879,9 +881,11 @@ class Reline::Unicode::EastAsianWidth
879
881
  [0x10ae6, 0],
880
882
  [0x10d23, 1],
881
883
  [0x10d27, 0],
884
+ [0x10d68, 1],
885
+ [0x10d6d, 0],
882
886
  [0x10eaa, 1],
883
887
  [0x10eac, 0],
884
- [0x10efc, 1],
888
+ [0x10efb, 1],
885
889
  [0x10eff, 0],
886
890
  [0x10f45, 1],
887
891
  [0x10f50, 0],
@@ -943,6 +947,16 @@ class Reline::Unicode::EastAsianWidth
943
947
  [0x1136c, 0],
944
948
  [0x1136f, 1],
945
949
  [0x11374, 0],
950
+ [0x113ba, 1],
951
+ [0x113c0, 0],
952
+ [0x113cd, 1],
953
+ [0x113ce, 0],
954
+ [0x113cf, 1],
955
+ [0x113d0, 0],
956
+ [0x113d1, 1],
957
+ [0x113d2, 0],
958
+ [0x113e0, 1],
959
+ [0x113e2, 0],
946
960
  [0x11437, 1],
947
961
  [0x1143f, 0],
948
962
  [0x11441, 1],
@@ -982,6 +996,8 @@ class Reline::Unicode::EastAsianWidth
982
996
  [0x116b6, 1],
983
997
  [0x116b7, 0],
984
998
  [0x1171c, 1],
999
+ [0x1171d, 0],
1000
+ [0x1171e, 1],
985
1001
  [0x1171f, 0],
986
1002
  [0x11721, 1],
987
1003
  [0x11725, 0],
@@ -1059,10 +1075,16 @@ class Reline::Unicode::EastAsianWidth
1059
1075
  [0x11f40, 0],
1060
1076
  [0x11f41, 1],
1061
1077
  [0x11f42, 0],
1078
+ [0x11f59, 1],
1079
+ [0x11f5a, 0],
1062
1080
  [0x1343f, 1],
1063
1081
  [0x13440, 0],
1064
1082
  [0x13446, 1],
1065
1083
  [0x13455, 0],
1084
+ [0x1611d, 1],
1085
+ [0x16129, 0],
1086
+ [0x1612c, 1],
1087
+ [0x1612f, 0],
1066
1088
  [0x16aef, 1],
1067
1089
  [0x16af4, 0],
1068
1090
  [0x16b2f, 1],
@@ -1080,7 +1102,7 @@ class Reline::Unicode::EastAsianWidth
1080
1102
  [0x187f7, 2],
1081
1103
  [0x187ff, 1],
1082
1104
  [0x18cd5, 2],
1083
- [0x18cff, 1],
1105
+ [0x18cfe, 1],
1084
1106
  [0x18d08, 2],
1085
1107
  [0x1afef, 1],
1086
1108
  [0x1aff3, 2],
@@ -1116,6 +1138,10 @@ class Reline::Unicode::EastAsianWidth
1116
1138
  [0x1d1ad, 0],
1117
1139
  [0x1d241, 1],
1118
1140
  [0x1d244, 0],
1141
+ [0x1d2ff, 1],
1142
+ [0x1d356, 2],
1143
+ [0x1d35f, 1],
1144
+ [0x1d376, 2],
1119
1145
  [0x1d9ff, 1],
1120
1146
  [0x1da36, 0],
1121
1147
  [0x1da3a, 1],
@@ -1148,6 +1174,8 @@ class Reline::Unicode::EastAsianWidth
1148
1174
  [0x1e2ef, 0],
1149
1175
  [0x1e4eb, 1],
1150
1176
  [0x1e4ef, 0],
1177
+ [0x1e5ed, 1],
1178
+ [0x1e5ef, 0],
1151
1179
  [0x1e8cf, 1],
1152
1180
  [0x1e8d6, 0],
1153
1181
  [0x1e943, 1],
@@ -1241,15 +1269,13 @@ class Reline::Unicode::EastAsianWidth
1241
1269
  [0x1fa6f, 1],
1242
1270
  [0x1fa7c, 2],
1243
1271
  [0x1fa7f, 1],
1244
- [0x1fa88, 2],
1245
- [0x1fa8f, 1],
1246
- [0x1fabd, 2],
1247
- [0x1fabe, 1],
1248
- [0x1fac5, 2],
1272
+ [0x1fa89, 2],
1273
+ [0x1fa8e, 1],
1274
+ [0x1fac6, 2],
1249
1275
  [0x1facd, 1],
1250
- [0x1fadb, 2],
1251
- [0x1fadf, 1],
1252
- [0x1fae8, 2],
1276
+ [0x1fadc, 2],
1277
+ [0x1fade, 1],
1278
+ [0x1fae9, 2],
1253
1279
  [0x1faef, 1],
1254
1280
  [0x1faf8, 2],
1255
1281
  [0x1ffff, 1],
@@ -28,12 +28,12 @@ class Reline::Unicode
28
28
  0x19 => '^Y',
29
29
  0x1A => '^Z', # C-z
30
30
  0x1B => '^[', # C-[ C-3
31
+ 0x1C => '^\\', # C-\
31
32
  0x1D => '^]', # C-]
32
33
  0x1E => '^^', # C-~ C-6
33
34
  0x1F => '^_', # C-_ C-7
34
35
  0x7F => '^?', # C-? C-8
35
36
  }
36
- EscapedChars = EscapedPairs.keys.map(&:chr)
37
37
 
38
38
  NON_PRINTING_START = "\1"
39
39
  NON_PRINTING_END = "\2"
@@ -61,7 +61,7 @@ class Reline::Unicode
61
61
 
62
62
  # This code is essentially doing the same thing as
63
63
  # `str.encode(utf8, **replace_options).encode(encoding, **replace_options)`
64
- # but also avoids unneccesary irreversible encoding conversion.
64
+ # but also avoids unnecessary irreversible encoding conversion.
65
65
  converted.gsub(/\X/) do |c|
66
66
  c.encode(Encoding::UTF_8)
67
67
  c
@@ -0,0 +1,3 @@
1
+ module Reline
2
+ VERSION = '0.6.1'
3
+ end
@@ -12,10 +12,10 @@ require 'rbconfig'
12
12
 
13
13
  module Reline
14
14
  # NOTE: For making compatible with the rb-readline gem
15
- FILENAME_COMPLETION_PROC = nil
16
- USERNAME_COMPLETION_PROC = nil
15
+ FILENAME_COMPLETION_PROC = nil # :nodoc:
16
+ USERNAME_COMPLETION_PROC = nil # :nodoc:
17
17
 
18
- class ConfigEncodingConversionError < StandardError; end
18
+ class ConfigEncodingConversionError < StandardError; end # :nodoc:
19
19
 
20
20
  # EOF key: { char: nil, method_symbol: nil }
21
21
  # Other key: { char: String, method_symbol: Symbol }
@@ -24,8 +24,8 @@ module Reline
24
24
  def match?(sym)
25
25
  method_symbol && method_symbol == sym
26
26
  end
27
- end
28
- CursorPos = Struct.new(:x, :y)
27
+ end # :nodoc:
28
+ CursorPos = Struct.new(:x, :y) # :nodoc:
29
29
  DialogRenderInfo = Struct.new(
30
30
  :pos,
31
31
  :contents,
@@ -35,7 +35,7 @@ module Reline
35
35
  :height,
36
36
  :scrollbar,
37
37
  keyword_init: true
38
- )
38
+ ) # :nodoc:
39
39
 
40
40
  class Core
41
41
  ATTR_READER_NAMES = %i(
@@ -244,8 +244,8 @@ module Reline
244
244
  height: [15, preferred_dialog_height].min,
245
245
  face: :completion_dialog
246
246
  )
247
- }
248
- Reline::DEFAULT_DIALOG_CONTEXT = Array.new
247
+ } # :nodoc:
248
+ Reline::DEFAULT_DIALOG_CONTEXT = Array.new # :nodoc:
249
249
 
250
250
  def readmultiline(prompt = '', add_hist = false, &confirm_multiline_termination)
251
251
  @mutex.synchronize do
@@ -341,7 +341,6 @@ module Reline
341
341
  line_editor.set_signal_handlers
342
342
  loop do
343
343
  read_io(config.keyseq_timeout) { |inputs|
344
- line_editor.set_pasting_state(io_gate.in_pasting?)
345
344
  inputs.each do |key|
346
345
  case key.method_symbol
347
346
  when :bracketed_paste_start
@@ -350,6 +349,7 @@ module Reline
350
349
  when :quoted_insert, :ed_quoted_insert
351
350
  key = Reline::Key.new(io_gate.read_single_char(config.keyseq_timeout), :insert_raw_char)
352
351
  end
352
+ line_editor.set_pasting_state(io_gate.in_pasting?)
353
353
  line_editor.update(key)
354
354
  end
355
355
  }
@@ -357,7 +357,6 @@ module Reline
357
357
  line_editor.render_finished
358
358
  break
359
359
  else
360
- line_editor.set_pasting_state(io_gate.in_pasting?)
361
360
  line_editor.rerender
362
361
  end
363
362
  end
@@ -440,6 +439,17 @@ module Reline
440
439
  }
441
440
  def_single_delegators :core, :input=, :output=
442
441
  def_single_delegators :core, :vi_editing_mode, :emacs_editing_mode
442
+
443
+ ##
444
+ # :singleton-method: readmultiline
445
+ # :call-seq:
446
+ # readmultiline(prompt = '', add_hist = false, &confirm_multiline_termination) -> string or nil
447
+ def_single_delegators :core, :readmultiline
448
+
449
+ ##
450
+ # :singleton-method: readline
451
+ # :call-seq:
452
+ # readline(prompt = '', add_hist = false) -> string or nil
443
453
  def_single_delegators :core, :readline
444
454
  def_single_delegators :core, :completion_case_fold, :completion_case_fold=
445
455
  def_single_delegators :core, :completion_quote_character
@@ -475,11 +485,10 @@ module Reline
475
485
  def_single_delegators :core, :dialog_proc
476
486
  def_single_delegators :core, :autocompletion, :autocompletion=
477
487
 
478
- def_single_delegators :core, :readmultiline
479
488
  def_instance_delegators self, :readmultiline
480
489
  private :readmultiline
481
490
 
482
- def self.encoding_system_needs
491
+ def self.encoding_system_needs # :nodoc:
483
492
  self.core.encoding
484
493
  end
485
494
 
@@ -512,7 +521,7 @@ end
512
521
  Reline::IOGate = Reline::IO.decide_io_gate
513
522
 
514
523
  # Deprecated
515
- Reline::GeneralIO = Reline::Dumb.new
524
+ Reline::GeneralIO = Reline::Dumb.new # :nodoc:
516
525
 
517
526
  Reline::Face.load_initial_configs
518
527
 
@@ -1,5 +1,29 @@
1
1
  # News
2
2
 
3
+ ## 3.4.1 - 2025-02-16 {#version-3-4-1}
4
+
5
+ ### Improvement
6
+
7
+ * Improved performance.
8
+ * GH-226
9
+ * GH-227
10
+ * GH-237
11
+ * Patch by NAITOH Jun
12
+
13
+ ### Fixes
14
+
15
+ * Fix serialization of ATTLIST is incorrect
16
+ * GH-233
17
+ * GH-234
18
+ * Patch by OlofKalufs
19
+ * Reported by OlofKalufs
20
+
21
+ ### Thanks
22
+
23
+ * NAITOH Jun
24
+
25
+ * OlofKalufs
26
+
3
27
  ## 3.4.0 - 2024-12-15 {#version-3-4-0}
4
28
 
5
29
  ### Improvement
@@ -297,10 +297,11 @@ module REXML
297
297
  raise REXML::ParseException.new(message, @source)
298
298
  end
299
299
  name = parse_name(base_error_message)
300
- if @source.match?(/\s*\[/um, true)
300
+ @source.match?(/\s*/um, true) # skip spaces
301
+ if @source.match?("[", true)
301
302
  id = [nil, nil, nil]
302
303
  @document_status = :in_doctype
303
- elsif @source.match?(/\s*>/um, true)
304
+ elsif @source.match?(">", true)
304
305
  id = [nil, nil, nil]
305
306
  @document_status = :after_doctype
306
307
  @source.ensure_buffer
@@ -312,9 +313,10 @@ module REXML
312
313
  # For backward compatibility
313
314
  id[1], id[2] = id[2], nil
314
315
  end
315
- if @source.match?(/\s*\[/um, true)
316
+ @source.match?(/\s*/um, true) # skip spaces
317
+ if @source.match?("[", true)
316
318
  @document_status = :in_doctype
317
- elsif @source.match?(/\s*>/um, true)
319
+ elsif @source.match?(">", true)
318
320
  @document_status = :after_doctype
319
321
  @source.ensure_buffer
320
322
  else
@@ -378,7 +380,7 @@ module REXML
378
380
  md = @source.match(Private::ATTLISTDECL_END, true)
379
381
  raise REXML::ParseException.new( "Bad ATTLIST declaration!", @source ) if md.nil?
380
382
  element = md[1]
381
- contents = md[0]
383
+ contents = "<!ATTLIST" + md[0]
382
384
 
383
385
  pairs = {}
384
386
  values = md[0].strip.scan( ATTDEF_RE )
@@ -409,7 +411,8 @@ module REXML
409
411
  id = parse_id(base_error_message,
410
412
  accept_external_id: true,
411
413
  accept_public_id: true)
412
- unless @source.match?(/\s*>/um, true)
414
+ @source.match?(/\s*/um, true) # skip spaces
415
+ unless @source.match?(">", true)
413
416
  message = "#{base_error_message}: garbage before end >"
414
417
  raise REXML::ParseException.new(message, @source)
415
418
  end
@@ -766,6 +769,25 @@ module REXML
766
769
  [:processing_instruction, name, content]
767
770
  end
768
771
 
772
+ if StringScanner::Version < "3.1.1"
773
+ def scan_quote
774
+ @source.match(/(['"])/, true)&.[](1)
775
+ end
776
+ else
777
+ def scan_quote
778
+ case @source.peek_byte
779
+ when 34 # '"'.ord
780
+ @source.scan_byte
781
+ '"'
782
+ when 39 # "'".ord
783
+ @source.scan_byte
784
+ "'"
785
+ else
786
+ nil
787
+ end
788
+ end
789
+ end
790
+
769
791
  def parse_attributes(prefixes)
770
792
  attributes = {}
771
793
  expanded_names = {}
@@ -785,11 +807,10 @@ module REXML
785
807
  message = "Missing attribute equal: <#{name}>"
786
808
  raise REXML::ParseException.new(message, @source)
787
809
  end
788
- unless match = @source.match(/(['"])/, true)
810
+ unless quote = scan_quote
789
811
  message = "Missing attribute value start quote: <#{name}>"
790
812
  raise REXML::ParseException.new(message, @source)
791
813
  end
792
- quote = match[1]
793
814
  start_position = @source.position
794
815
  value = @source.read_until(quote)
795
816
  unless value.chomp!(quote)
@@ -31,7 +31,7 @@
31
31
  module REXML
32
32
  COPYRIGHT = "Copyright © 2001-2008 Sean Russell <ser@germane-software.com>"
33
33
  DATE = "2008/019"
34
- VERSION = "3.4.0"
34
+ VERSION = "3.4.1"
35
35
  REVISION = ""
36
36
 
37
37
  Copyright = COPYRIGHT
@@ -68,8 +68,14 @@ module REXML
68
68
  SCANNER_RESET_SIZE = 100000
69
69
  PRE_DEFINED_TERM_PATTERNS = {}
70
70
  pre_defined_terms = ["'", '"', "<"]
71
- pre_defined_terms.each do |term|
72
- PRE_DEFINED_TERM_PATTERNS[term] = /#{Regexp.escape(term)}/
71
+ if StringScanner::Version < "3.1.1"
72
+ pre_defined_terms.each do |term|
73
+ PRE_DEFINED_TERM_PATTERNS[term] = /#{Regexp.escape(term)}/
74
+ end
75
+ else
76
+ pre_defined_terms.each do |term|
77
+ PRE_DEFINED_TERM_PATTERNS[term] = term
78
+ end
73
79
  end
74
80
  end
75
81
  private_constant :Private
@@ -152,6 +158,14 @@ module REXML
152
158
  @scanner.pos = pos
153
159
  end
154
160
 
161
+ def peek_byte
162
+ @scanner.peek_byte
163
+ end
164
+
165
+ def scan_byte
166
+ @scanner.scan_byte
167
+ end
168
+
155
169
  # @return true if the Source is exhausted
156
170
  def empty?
157
171
  @scanner.eos?
@@ -1,3 +1,9 @@
1
+ === 2.5.2 / 2025-03-25
2
+
3
+ * 1 bug fix:
4
+
5
+ * Added support for 3 slot op_asgn (eg `a &= 1`)
6
+
1
7
  === 2.5.1 / 2024-07-08
2
8
 
3
9
  * 1 bug fix:
@@ -31,7 +31,7 @@ end
31
31
  # Generate ruby code from a sexp.
32
32
 
33
33
  class Ruby2Ruby < SexpProcessor
34
- VERSION = "2.5.1" # :nodoc:
34
+ VERSION = "2.5.2" # :nodoc:
35
35
 
36
36
  # cutoff for one-liners
37
37
  LINE_LENGTH = 78
@@ -916,11 +916,14 @@ class Ruby2Ruby < SexpProcessor
916
916
  end
917
917
 
918
918
  def process_op_asgn exp # :nodoc:
919
- # [[:lvar, :x], [:call, nil, :z, [:lit, 1]], :y, :"||"]
920
-
921
919
  case exp.length
922
920
  when 4
923
- raise "NOT YET: op_asgn 4"
921
+ _, lhs, op, rhs = exp
922
+
923
+ lhs = process lhs
924
+ rhs = process rhs
925
+
926
+ "#{lhs} #{op}= #{rhs}"
924
927
  when 5
925
928
  _, lhs, rhs, index, op = exp
926
929
 
@@ -1,3 +1,10 @@
1
+ 4.0.0 / 2025-01-28
2
+ ==================
3
+
4
+ - Non-unicode characters are no longer supported. They will be replaced.
5
+ - Headings may be set to nil.
6
+ - unicode-display-width version 3 supported.
7
+
1
8
  3.0.2 / 2021-09-19
2
9
  ==================
3
10
 
@@ -48,7 +48,7 @@ module Terminal
48
48
  val.public_send(positions[position], length)
49
49
  end
50
50
  def lines
51
- @value.to_s.split(/\n/)
51
+ @value.to_s.encode("utf-8", invalid: :replace).split(/\n/)
52
52
  end
53
53
 
54
54
  ##
@@ -109,6 +109,8 @@ module Terminal
109
109
  # Set the headings
110
110
 
111
111
  def headings= arrays
112
+ return if arrays.nil?
113
+
112
114
  arrays = [arrays] unless arrays.first.is_a?(Array)
113
115
  @headings = arrays.map do |array|
114
116
  row = Row.new(self, array)
@@ -1,5 +1,5 @@
1
1
  module Terminal
2
2
  class Table
3
- VERSION = '3.0.2'
3
+ VERSION = '4.0.0'
4
4
  end
5
5
  end
@@ -19,8 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.add_development_dependency "bundler", "~> 2"
20
20
  spec.add_development_dependency "rake", "~> 13.0"
21
21
  spec.add_development_dependency "rspec", ">= 3.0"
22
- spec.add_development_dependency "term-ansicolor"
23
22
  spec.add_development_dependency "pry"
24
23
 
25
- spec.add_runtime_dependency "unicode-display_width", [">= 1.1.1", "< 3"]
24
+ spec.add_runtime_dependency "unicode-display_width", [">= 1.1.1", "< 4"]
26
25
  end