brakeman 4.4.0 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (732) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +271 -107
  3. data/README.md +19 -12
  4. data/bundle/load.rb +14 -14
  5. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/CHANGES.txt +0 -0
  6. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/MIT-LICENSE +0 -0
  7. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/README.txt +0 -0
  8. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/erubis +0 -0
  9. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/erubis-run.rb +0 -0
  10. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/inline-require +0 -0
  11. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis.rb +0 -0
  12. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/context.rb +0 -0
  13. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/converter.rb +0 -0
  14. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine.rb +0 -0
  15. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +0 -0
  16. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +0 -0
  17. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +0 -0
  18. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +0 -0
  19. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +0 -0
  20. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +0 -0
  21. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +0 -0
  22. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +0 -0
  23. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +0 -0
  24. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +0 -0
  25. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/enhancer.rb +0 -0
  26. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/error.rb +0 -0
  27. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/evaluator.rb +0 -0
  28. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/generator.rb +0 -0
  29. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helper.rb +0 -0
  30. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +0 -0
  31. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +0 -0
  32. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/local-setting.rb +0 -0
  33. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/main.rb +0 -0
  34. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +0 -0
  35. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/tiny.rb +0 -0
  36. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/util.rb +0 -0
  37. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/setup.rb +0 -0
  38. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/CHANGELOG.md +138 -4
  39. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/FAQ.md +4 -14
  40. data/bundle/ruby/2.7.0/gems/haml-5.2.1/Gemfile +16 -0
  41. data/bundle/ruby/{2.5.0/gems/sass-3.4.25/vendor/listen/LICENSE → 2.7.0/gems/haml-5.2.1/MIT-LICENSE} +1 -1
  42. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/README.md +79 -42
  43. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/REFERENCE.md +150 -71
  44. data/bundle/ruby/2.7.0/gems/haml-5.2.1/TODO +24 -0
  45. data/bundle/ruby/2.7.0/gems/haml-5.2.1/haml.gemspec +45 -0
  46. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml.rb +2 -0
  47. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_builder.rb +164 -0
  48. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_compiler.rb +235 -0
  49. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_parser.rb +150 -0
  50. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/buffer.rb +25 -132
  51. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/compiler.rb +330 -0
  52. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/engine.rb +34 -41
  53. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/error.rb +65 -0
  54. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/escapable.rb +77 -0
  55. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/exec.rb +38 -20
  56. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/filters.rb +22 -27
  57. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/generator.rb +42 -0
  58. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers.rb +134 -89
  59. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/action_view_extensions.rb +4 -2
  60. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/action_view_mods.rb +45 -60
  61. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/action_view_xss_mods.rb +2 -0
  62. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/safe_erubi_template.rb +20 -0
  63. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/safe_erubis_template.rb +5 -1
  64. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/helpers/xss_mods.rb +23 -13
  65. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/options.rb +63 -69
  66. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/parser.rb +319 -227
  67. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/plugin.rb +37 -0
  68. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/railtie.rb +48 -0
  69. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/sass_rails_filter.rb +18 -4
  70. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/template.rb +13 -6
  71. data/bundle/ruby/{2.5.0/gems/haml-4.0.7 → 2.7.0/gems/haml-5.2.1}/lib/haml/template/options.rb +13 -2
  72. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/temple_engine.rb +123 -0
  73. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/temple_line_counter.rb +30 -0
  74. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/util.rb +258 -0
  75. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/version.rb +5 -0
  76. data/bundle/ruby/2.7.0/gems/haml-5.2.1/yard/default/fulldoc/html/css/common.sass +15 -0
  77. data/bundle/ruby/2.7.0/gems/haml-5.2.1/yard/default/layout/html/footer.erb +12 -0
  78. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/AUTHORS +0 -0
  79. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/COPYING +0 -0
  80. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/Changelog.md +214 -15
  81. data/bundle/ruby/2.7.0/gems/highline-2.0.3/Gemfile +22 -0
  82. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/LICENSE +0 -0
  83. data/bundle/ruby/2.7.0/gems/highline-2.0.3/README.md +202 -0
  84. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/TODO +0 -0
  85. data/bundle/ruby/2.7.0/gems/highline-2.0.3/appveyor.yml +37 -0
  86. data/bundle/ruby/2.7.0/gems/highline-2.0.3/highline.gemspec +35 -0
  87. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline.rb +650 -0
  88. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/builtin_styles.rb +129 -0
  89. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/lib/highline/color_scheme.rb +49 -32
  90. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/compatibility.rb +23 -0
  91. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/custom_errors.rb +57 -0
  92. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/import.rb +48 -0
  93. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/io_console_compatible.rb +37 -0
  94. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list.rb +177 -0
  95. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list_renderer.rb +261 -0
  96. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu.rb +576 -0
  97. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu/item.rb +32 -0
  98. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/paginator.rb +52 -0
  99. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/lib/highline/question.rb +281 -131
  100. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question/answer_converter.rb +103 -0
  101. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question_asker.rb +150 -0
  102. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/simulate.rb +59 -0
  103. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/statement.rb +88 -0
  104. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/string.rb +36 -0
  105. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/string_extensions.rb +130 -0
  106. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/style.rb +325 -0
  107. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/template_renderer.rb +62 -0
  108. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal.rb +190 -0
  109. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/io_console.rb +36 -0
  110. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/ncurses.rb +38 -0
  111. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/unix_stty.rb +51 -0
  112. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/lib/highline/version.rb +3 -1
  113. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/wrapper.rb +53 -0
  114. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/Gemfile +6 -0
  115. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/LICENSE.txt +22 -0
  116. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/NEWS.md +141 -0
  117. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/README.md +60 -0
  118. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/attlistdecl.rb +63 -0
  119. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/attribute.rb +205 -0
  120. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/cdata.rb +68 -0
  121. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/child.rb +97 -0
  122. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/comment.rb +80 -0
  123. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/doctype.rb +287 -0
  124. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/document.rb +291 -0
  125. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/attlistdecl.rb +11 -0
  126. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/dtd.rb +47 -0
  127. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/elementdecl.rb +18 -0
  128. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/entitydecl.rb +57 -0
  129. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/notationdecl.rb +40 -0
  130. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/element.rb +1269 -0
  131. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/encoding.rb +51 -0
  132. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/entity.rb +171 -0
  133. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/default.rb +116 -0
  134. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/pretty.rb +142 -0
  135. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/transitive.rb +58 -0
  136. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/functions.rb +447 -0
  137. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/instruction.rb +79 -0
  138. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/light/node.rb +196 -0
  139. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/namespace.rb +59 -0
  140. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/node.rb +76 -0
  141. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/output.rb +30 -0
  142. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parent.rb +166 -0
  143. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parseexception.rb +52 -0
  144. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/baseparser.rb +594 -0
  145. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/lightparser.rb +59 -0
  146. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/pullparser.rb +197 -0
  147. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/sax2parser.rb +273 -0
  148. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/streamparser.rb +61 -0
  149. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/treeparser.rb +101 -0
  150. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/ultralightparser.rb +57 -0
  151. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/xpathparser.rb +675 -0
  152. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/quickpath.rb +266 -0
  153. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/rexml.rb +32 -0
  154. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/sax2listener.rb +98 -0
  155. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/security.rb +28 -0
  156. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/source.rb +298 -0
  157. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/streamlistener.rb +93 -0
  158. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/text.rb +424 -0
  159. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/undefinednamespaceexception.rb +9 -0
  160. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/relaxng.rb +539 -0
  161. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/validation.rb +144 -0
  162. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/validationexception.rb +10 -0
  163. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xmldecl.rb +130 -0
  164. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xmltokens.rb +85 -0
  165. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xpath.rb +81 -0
  166. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xpath_parser.rb +968 -0
  167. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/rexml.gemspec +84 -0
  168. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/History.rdoc +22 -0
  169. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/Manifest.txt +0 -0
  170. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/README.rdoc +0 -0
  171. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/lib/ruby2ruby.rb +118 -110
  172. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/History.rdoc +176 -0
  173. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/Manifest.txt +7 -4
  174. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/README.rdoc +3 -3
  175. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/compare/normalize.rb +69 -2
  176. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/debugging.md +57 -0
  177. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/rp_extensions.rb +1 -8
  178. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/rp_stringscanner.rb +0 -0
  179. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.rb +7062 -0
  180. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib/ruby_parser.yy → 2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.y} +728 -604
  181. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby21_parser.rb +7140 -0
  182. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby21_parser.y +734 -472
  183. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby22_parser.rb +7160 -0
  184. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby22_parser.y +735 -478
  185. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby23_parser.rb +7175 -0
  186. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby23_parser.y +736 -479
  187. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby24_parser.rb +7204 -0
  188. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby24_parser.y +742 -477
  189. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby25_parser.rb +7204 -0
  190. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby25_parser.y +742 -477
  191. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.rb +7224 -0
  192. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.y +2657 -0
  193. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.rb +7224 -0
  194. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.y +2657 -0
  195. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rb +1473 -0
  196. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex +178 -0
  197. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex.rb +363 -0
  198. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/ruby_parser.rb +36 -34
  199. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser.yy +2764 -0
  200. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser_extras.rb +1631 -0
  201. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/munge.rb +222 -0
  202. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/ripper.rb +39 -0
  203. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/History.rdoc +6 -0
  204. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/Manifest.txt +19 -0
  205. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/README.rdoc +54 -0
  206. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy.rb +5 -0
  207. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby18_parser.rb +7 -6
  208. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby18_parser.y +5 -4
  209. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby19_parser.rb +7 -6
  210. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby19_parser.y +5 -4
  211. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby_lexer.rb +117 -64
  212. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby_lexer.rex +11 -9
  213. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby_lexer.rex.rb +10 -10
  214. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb +30 -0
  215. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.12.0/lib → 2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy}/ruby_parser_extras.rb +43 -33
  216. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/CHANGES.md +5 -0
  217. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/Gemfile +0 -0
  218. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/LICENSE.txt +0 -0
  219. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/README.md +0 -0
  220. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/bundle_install_all_ruby_versions.sh +0 -0
  221. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml.rb +0 -0
  222. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/deep.rb +0 -0
  223. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/libyaml_checker.rb +0 -0
  224. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/load.rb +0 -0
  225. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/date.rb +2 -0
  226. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/hexadecimal.rb +0 -0
  227. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/parse/sexagesimal.rb +0 -0
  228. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/psych_handler.rb +0 -0
  229. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/psych_resolver.rb +0 -0
  230. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/resolver.rb +0 -0
  231. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -0
  232. data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +39 -0
  233. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_hack.rb +0 -0
  234. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_node_monkeypatch.rb +0 -0
  235. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/syck_resolver.rb +0 -0
  236. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform.rb +0 -0
  237. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_boolean.rb +0 -0
  238. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_date.rb +0 -0
  239. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_float.rb +0 -0
  240. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_integer.rb +0 -0
  241. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_nil.rb +0 -0
  242. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/to_symbol.rb +0 -0
  243. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/transform/transformation_map.rb +0 -0
  244. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/lib/safe_yaml/version.rb +1 -1
  245. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/run_specs_all_ruby_versions.sh +0 -0
  246. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/safe_yaml.gemspec +0 -0
  247. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/History.rdoc +67 -0
  248. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/Manifest.txt +1 -0
  249. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/README.rdoc +0 -0
  250. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/composite_sexp_processor.rb +0 -0
  251. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/pt_testcase.rb +15 -17
  252. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/sexp.rb +381 -0
  253. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0/lib/sexp.rb → 2.7.0/gems/sexp_processor-4.15.2/lib/sexp_matcher.rb} +67 -387
  254. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/sexp_processor.rb +2 -2
  255. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/strict_sexp.rb +3 -3
  256. data/bundle/ruby/{2.5.0/gems/sexp_processor-4.11.0 → 2.7.0/gems/sexp_processor-4.15.2}/lib/unique.rb +0 -0
  257. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/CHANGES +4 -0
  258. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/Gemfile +12 -13
  259. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/LICENSE +0 -0
  260. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/README.jp.md +0 -0
  261. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/README.md +0 -0
  262. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim.rb +0 -0
  263. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/code_attributes.rb +0 -0
  264. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/command.rb +13 -13
  265. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/controls.rb +0 -0
  266. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/do_inserter.rb +0 -0
  267. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/embedded.rb +0 -0
  268. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/end_inserter.rb +0 -0
  269. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/engine.rb +0 -0
  270. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/erb_converter.rb +0 -0
  271. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/filter.rb +0 -0
  272. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/grammar.rb +0 -0
  273. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/include.rb +0 -0
  274. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/interpolation.rb +0 -0
  275. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less.rb +0 -0
  276. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less/context.rb +0 -0
  277. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less/filter.rb +0 -0
  278. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/parser.rb +1 -1
  279. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart.rb +0 -0
  280. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/escaper.rb +0 -0
  281. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/filter.rb +0 -0
  282. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/parser.rb +0 -0
  283. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/splat/builder.rb +0 -0
  284. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/splat/filter.rb +0 -0
  285. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/template.rb +0 -0
  286. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/translator.rb +0 -0
  287. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/lib/slim/version.rb +1 -1
  288. data/bundle/ruby/{2.5.0/gems/slim-4.0.1 → 2.7.0/gems/slim-4.1.0}/slim.gemspec +0 -0
  289. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/CHANGES +11 -0
  290. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/EXPRESSIONS.md +1 -1
  291. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/Gemfile +0 -0
  292. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/LICENSE +0 -0
  293. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/README.md +1 -1
  294. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple.rb +0 -0
  295. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/engine.rb +0 -0
  296. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/engine.rb +0 -0
  297. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/parser.rb +0 -0
  298. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/template.rb +0 -0
  299. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/trimming.rb +0 -0
  300. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/exceptions.rb +0 -0
  301. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filter.rb +0 -0
  302. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/code_merger.rb +0 -0
  303. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/control_flow.rb +0 -0
  304. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/dynamic_inliner.rb +0 -0
  305. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/encoding.rb +0 -0
  306. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/eraser.rb +0 -0
  307. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/escapable.rb +0 -0
  308. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/multi_flattener.rb +0 -0
  309. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/remove_bom.rb +0 -0
  310. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/static_analyzer.rb +0 -0
  311. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/static_merger.rb +0 -0
  312. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/string_splitter.rb +1 -1
  313. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/validator.rb +0 -0
  314. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generator.rb +0 -0
  315. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/array.rb +0 -0
  316. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/array_buffer.rb +0 -0
  317. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/erb.rb +0 -0
  318. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/rails_output_buffer.rb +0 -0
  319. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/string_buffer.rb +0 -0
  320. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/grammar.rb +0 -0
  321. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_merger.rb +0 -0
  322. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_remover.rb +0 -0
  323. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_sorter.rb +0 -0
  324. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/dispatcher.rb +0 -0
  325. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/fast.rb +0 -0
  326. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/filter.rb +0 -0
  327. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/pretty.rb +0 -0
  328. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/safe.rb +0 -0
  329. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/map.rb +0 -0
  330. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/dispatcher.rb +2 -1
  331. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/engine_dsl.rb +0 -0
  332. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/grammar_dsl.rb +0 -0
  333. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/options.rb +0 -0
  334. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/template.rb +0 -0
  335. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/parser.rb +0 -0
  336. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/static_analyzer.rb +1 -1
  337. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates.rb +0 -0
  338. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates/rails.rb +2 -2
  339. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates/tilt.rb +0 -0
  340. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/lib/temple/utils.rb +0 -0
  341. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/version.rb +3 -0
  342. data/bundle/ruby/{2.5.0/gems/temple-0.8.0 → 2.7.0/gems/temple-0.8.2}/temple.gemspec +0 -0
  343. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Gemfile +0 -0
  344. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/History.rdoc +0 -0
  345. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/LICENSE.txt +0 -0
  346. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Manifest +0 -0
  347. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/README.rdoc +0 -0
  348. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Todo.rdoc +0 -0
  349. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table.rb +0 -0
  350. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/cell.rb +0 -0
  351. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/import.rb +0 -0
  352. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/row.rb +0 -0
  353. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb +0 -0
  354. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/style.rb +0 -0
  355. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/table.rb +0 -0
  356. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/table_helper.rb +0 -0
  357. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/version.rb +0 -0
  358. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/terminal-table.gemspec +0 -0
  359. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/COPYING +0 -0
  360. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt.rb +1 -1
  361. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/asciidoc.rb +0 -0
  362. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/babel.rb +0 -0
  363. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/bluecloth.rb +0 -0
  364. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/builder.rb +0 -0
  365. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/coffee.rb +0 -0
  366. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/commonmarker.rb +0 -0
  367. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/creole.rb +0 -0
  368. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/csv.rb +0 -0
  369. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/dummy.rb +0 -0
  370. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erb.rb +0 -0
  371. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erubi.rb +0 -0
  372. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erubis.rb +0 -0
  373. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/etanni.rb +0 -0
  374. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/haml.rb +0 -0
  375. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/kramdown.rb +0 -0
  376. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/less.rb +0 -0
  377. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/liquid.rb +0 -0
  378. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/livescript.rb +0 -0
  379. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/mapping.rb +0 -0
  380. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/markaby.rb +0 -0
  381. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/maruku.rb +0 -0
  382. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/nokogiri.rb +0 -0
  383. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/pandoc.rb +0 -0
  384. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/plain.rb +0 -0
  385. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/prawn.rb +0 -0
  386. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/radius.rb +0 -0
  387. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rdiscount.rb +0 -0
  388. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rdoc.rb +0 -0
  389. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/redcarpet.rb +0 -0
  390. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/redcloth.rb +0 -0
  391. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rst-pandoc.rb +0 -0
  392. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/sass.rb +0 -0
  393. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/sigil.rb +0 -0
  394. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/string.rb +0 -0
  395. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/template.rb +7 -12
  396. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/typescript.rb +0 -0
  397. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/wikicloth.rb +0 -0
  398. data/bundle/ruby/{2.5.0/gems/tilt-2.0.9 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/yajl.rb +0 -0
  399. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/CHANGELOG.md +16 -0
  400. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/MIT-LICENSE.txt +1 -1
  401. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/README.md +10 -10
  402. data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/data/display_width.marshal.gz +0 -0
  403. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width.rb +1 -1
  404. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/constants.rb +2 -2
  405. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/index.rb +0 -0
  406. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/no_string_ext.rb +0 -0
  407. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.1 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/string_ext.rb +0 -0
  408. data/lib/brakeman.rb +37 -0
  409. data/lib/brakeman/app_tree.rb +67 -22
  410. data/lib/brakeman/call_index.rb +54 -15
  411. data/lib/brakeman/checks.rb +7 -7
  412. data/lib/brakeman/checks/base_check.rb +94 -66
  413. data/lib/brakeman/checks/check_basic_auth.rb +2 -0
  414. data/lib/brakeman/checks/check_content_tag.rb +12 -1
  415. data/lib/brakeman/checks/check_cookie_serialization.rb +22 -0
  416. data/lib/brakeman/checks/check_cross_site_scripting.rb +15 -10
  417. data/lib/brakeman/checks/check_csrf_token_forgery_cve.rb +28 -0
  418. data/lib/brakeman/checks/check_default_routes.rb +5 -0
  419. data/lib/brakeman/checks/check_deserialize.rb +70 -1
  420. data/lib/brakeman/checks/check_dynamic_finders.rb +1 -1
  421. data/lib/brakeman/checks/check_evaluation.rb +0 -1
  422. data/lib/brakeman/checks/check_execute.rb +84 -5
  423. data/lib/brakeman/checks/check_file_access.rb +7 -1
  424. data/lib/brakeman/checks/check_force_ssl.rb +27 -0
  425. data/lib/brakeman/checks/check_header_dos.rb +2 -2
  426. data/lib/brakeman/checks/check_i18n_xss.rb +2 -2
  427. data/lib/brakeman/checks/check_jruby_xml.rb +2 -2
  428. data/lib/brakeman/checks/check_json_entity_escape.rb +38 -0
  429. data/lib/brakeman/checks/check_json_parsing.rb +7 -2
  430. data/lib/brakeman/checks/check_link_to.rb +1 -1
  431. data/lib/brakeman/checks/check_link_to_href.rb +7 -4
  432. data/lib/brakeman/checks/check_mail_to.rb +1 -1
  433. data/lib/brakeman/checks/check_mass_assignment.rb +34 -4
  434. data/lib/brakeman/checks/check_mime_type_dos.rb +2 -2
  435. data/lib/brakeman/checks/check_model_attr_accessible.rb +2 -2
  436. data/lib/brakeman/checks/check_model_attributes.rb +13 -51
  437. data/lib/brakeman/checks/check_model_serialize.rb +1 -1
  438. data/lib/brakeman/checks/check_nested_attributes_bypass.rb +4 -4
  439. data/lib/brakeman/checks/check_page_caching_cve.rb +37 -0
  440. data/lib/brakeman/checks/check_permit_attributes.rb +1 -1
  441. data/lib/brakeman/checks/check_regex_dos.rb +1 -1
  442. data/lib/brakeman/checks/check_reverse_tabnabbing.rb +58 -0
  443. data/lib/brakeman/checks/check_sanitize_methods.rb +2 -2
  444. data/lib/brakeman/checks/check_secrets.rb +1 -1
  445. data/lib/brakeman/checks/check_send.rb +0 -1
  446. data/lib/brakeman/checks/check_session_manipulation.rb +0 -1
  447. data/lib/brakeman/checks/check_session_settings.rb +15 -12
  448. data/lib/brakeman/checks/check_simple_format.rb +5 -0
  449. data/lib/brakeman/checks/check_skip_before_filter.rb +5 -5
  450. data/lib/brakeman/checks/check_sql.rb +46 -48
  451. data/lib/brakeman/checks/check_template_injection.rb +32 -0
  452. data/lib/brakeman/checks/check_unsafe_reflection_methods.rb +68 -0
  453. data/lib/brakeman/checks/check_validation_regex.rb +1 -1
  454. data/lib/brakeman/checks/check_verb_confusion.rb +75 -0
  455. data/lib/brakeman/checks/check_xml_dos.rb +2 -2
  456. data/lib/brakeman/checks/check_yaml_parsing.rb +10 -18
  457. data/lib/brakeman/commandline.rb +25 -1
  458. data/lib/brakeman/differ.rb +16 -33
  459. data/lib/brakeman/file_parser.rb +25 -21
  460. data/lib/brakeman/file_path.rb +85 -0
  461. data/lib/brakeman/options.rb +32 -1
  462. data/lib/brakeman/parsers/haml_embedded.rb +44 -0
  463. data/lib/brakeman/parsers/slim_embedded.rb +44 -0
  464. data/lib/brakeman/parsers/template_parser.rb +9 -10
  465. data/lib/brakeman/processor.rb +5 -6
  466. data/lib/brakeman/processors/alias_processor.rb +71 -14
  467. data/lib/brakeman/processors/base_processor.rb +10 -7
  468. data/lib/brakeman/processors/controller_alias_processor.rb +10 -7
  469. data/lib/brakeman/processors/controller_processor.rb +10 -14
  470. data/lib/brakeman/processors/gem_processor.rb +10 -2
  471. data/lib/brakeman/processors/haml_template_processor.rb +99 -123
  472. data/lib/brakeman/processors/lib/call_conversion_helper.rb +10 -5
  473. data/lib/brakeman/processors/lib/file_type_detector.rb +64 -0
  474. data/lib/brakeman/processors/lib/find_all_calls.rb +57 -18
  475. data/lib/brakeman/processors/lib/find_call.rb +3 -64
  476. data/lib/brakeman/processors/lib/module_helper.rb +8 -8
  477. data/lib/brakeman/processors/lib/processor_helper.rb +3 -3
  478. data/lib/brakeman/processors/lib/rails2_config_processor.rb +4 -4
  479. data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -2
  480. data/lib/brakeman/processors/lib/rails3_config_processor.rb +19 -19
  481. data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -2
  482. data/lib/brakeman/processors/lib/render_helper.rb +5 -3
  483. data/lib/brakeman/processors/lib/render_path.rb +18 -1
  484. data/lib/brakeman/processors/library_processor.rb +5 -5
  485. data/lib/brakeman/processors/model_processor.rb +4 -5
  486. data/lib/brakeman/processors/output_processor.rb +6 -1
  487. data/lib/brakeman/processors/slim_template_processor.rb +16 -0
  488. data/lib/brakeman/processors/template_alias_processor.rb +36 -4
  489. data/lib/brakeman/processors/template_processor.rb +14 -10
  490. data/lib/brakeman/report.rb +22 -4
  491. data/lib/brakeman/report/ignore/config.rb +12 -5
  492. data/lib/brakeman/report/ignore/interactive.rb +2 -2
  493. data/lib/brakeman/report/pager.rb +1 -0
  494. data/lib/brakeman/report/report_base.rb +51 -8
  495. data/lib/brakeman/report/report_codeclimate.rb +3 -3
  496. data/lib/brakeman/report/report_csv.rb +37 -60
  497. data/lib/brakeman/report/report_hash.rb +1 -1
  498. data/lib/brakeman/report/report_html.rb +2 -2
  499. data/lib/brakeman/report/report_json.rb +1 -24
  500. data/lib/brakeman/report/report_junit.rb +104 -0
  501. data/lib/brakeman/report/report_markdown.rb +0 -1
  502. data/lib/brakeman/report/report_sarif.rb +114 -0
  503. data/lib/brakeman/report/report_sonar.rb +38 -0
  504. data/lib/brakeman/report/report_table.rb +20 -4
  505. data/lib/brakeman/report/report_tabs.rb +1 -1
  506. data/lib/brakeman/report/report_text.rb +43 -23
  507. data/lib/brakeman/rescanner.rb +18 -15
  508. data/lib/brakeman/scanner.rb +70 -35
  509. data/lib/brakeman/tracker.rb +44 -8
  510. data/lib/brakeman/tracker/collection.rb +4 -3
  511. data/lib/brakeman/tracker/config.rb +119 -47
  512. data/lib/brakeman/tracker/constants.rb +10 -8
  513. data/lib/brakeman/tracker/controller.rb +1 -1
  514. data/lib/brakeman/util.rb +45 -151
  515. data/lib/brakeman/version.rb +1 -1
  516. data/lib/brakeman/warning.rb +37 -15
  517. data/lib/brakeman/warning_codes.rb +13 -0
  518. data/lib/ruby_parser/bm_sexp.rb +16 -11
  519. data/lib/ruby_parser/bm_sexp_processor.rb +1 -0
  520. metadata +434 -497
  521. data/bundle/ruby/2.5.0/gems/haml-4.0.7/MIT-LICENSE +0 -20
  522. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/compiler.rb +0 -540
  523. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/error.rb +0 -61
  524. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/railtie.rb +0 -22
  525. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +0 -41
  526. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/util.rb +0 -377
  527. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/version.rb +0 -3
  528. data/bundle/ruby/2.5.0/gems/highline-1.7.10/Gemfile +0 -11
  529. data/bundle/ruby/2.5.0/gems/highline-1.7.10/INSTALL +0 -59
  530. data/bundle/ruby/2.5.0/gems/highline-1.7.10/README.rdoc +0 -74
  531. data/bundle/ruby/2.5.0/gems/highline-1.7.10/highline.gemspec +0 -37
  532. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline.rb +0 -1048
  533. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/compatibility.rb +0 -16
  534. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/import.rb +0 -41
  535. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/menu.rb +0 -381
  536. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/simulate.rb +0 -48
  537. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/string_extensions.rb +0 -111
  538. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/style.rb +0 -192
  539. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/system_extensions.rb +0 -254
  540. data/bundle/ruby/2.5.0/gems/highline-1.7.10/setup.rb +0 -1360
  541. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby20_parser.rb +0 -6687
  542. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby20_parser.y +0 -2345
  543. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby21_parser.rb +0 -6767
  544. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby22_parser.rb +0 -6803
  545. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby23_parser.rb +0 -6818
  546. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby24_parser.rb +0 -6818
  547. data/bundle/ruby/2.5.0/gems/ruby_parser-3.12.0/lib/ruby25_parser.rb +0 -6818
  548. data/bundle/ruby/2.5.0/gems/sass-3.4.25/CODE_OF_CONDUCT.md +0 -10
  549. data/bundle/ruby/2.5.0/gems/sass-3.4.25/CONTRIBUTING.md +0 -148
  550. data/bundle/ruby/2.5.0/gems/sass-3.4.25/MIT-LICENSE +0 -20
  551. data/bundle/ruby/2.5.0/gems/sass-3.4.25/README.md +0 -227
  552. data/bundle/ruby/2.5.0/gems/sass-3.4.25/REVISION +0 -1
  553. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION +0 -1
  554. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION_DATE +0 -1
  555. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION_NAME +0 -1
  556. data/bundle/ruby/2.5.0/gems/sass-3.4.25/extra/sass-spec-ref.sh +0 -32
  557. data/bundle/ruby/2.5.0/gems/sass-3.4.25/extra/update_watch.rb +0 -13
  558. data/bundle/ruby/2.5.0/gems/sass-3.4.25/init.rb +0 -18
  559. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass.rb +0 -109
  560. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores.rb +0 -15
  561. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/base.rb +0 -88
  562. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/chain.rb +0 -34
  563. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/filesystem.rb +0 -60
  564. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/memory.rb +0 -46
  565. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/null.rb +0 -25
  566. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/callbacks.rb +0 -67
  567. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/css.rb +0 -408
  568. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/deprecation.rb +0 -55
  569. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/engine.rb +0 -1226
  570. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/environment.rb +0 -215
  571. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/error.rb +0 -198
  572. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec.rb +0 -9
  573. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/base.rb +0 -199
  574. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/sass_convert.rb +0 -283
  575. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/sass_scss.rb +0 -440
  576. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/features.rb +0 -47
  577. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers.rb +0 -23
  578. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/base.rb +0 -182
  579. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/deprecated_path.rb +0 -51
  580. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/filesystem.rb +0 -219
  581. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger.rb +0 -17
  582. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/base.rb +0 -36
  583. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/delayed.rb +0 -50
  584. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/log_level.rb +0 -45
  585. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/media.rb +0 -210
  586. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin.rb +0 -134
  587. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb +0 -582
  588. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/configuration.rb +0 -134
  589. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/generic.rb +0 -15
  590. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/merb.rb +0 -48
  591. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/rack.rb +0 -60
  592. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/rails.rb +0 -47
  593. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/staleness_checker.rb +0 -199
  594. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/railtie.rb +0 -10
  595. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/repl.rb +0 -57
  596. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/root.rb +0 -7
  597. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script.rb +0 -66
  598. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_lexer.rb +0 -33
  599. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_parser.rb +0 -33
  600. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_variable_warning.rb +0 -52
  601. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/functions.rb +0 -2693
  602. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/lexer.rb +0 -464
  603. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/parser.rb +0 -832
  604. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree.rb +0 -16
  605. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/funcall.rb +0 -313
  606. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/interpolation.rb +0 -223
  607. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/list_literal.rb +0 -104
  608. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/literal.rb +0 -49
  609. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/map_literal.rb +0 -64
  610. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/node.rb +0 -127
  611. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/operation.rb +0 -156
  612. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/selector.rb +0 -26
  613. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/string_interpolation.rb +0 -125
  614. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/unary_operation.rb +0 -69
  615. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/variable.rb +0 -57
  616. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value.rb +0 -11
  617. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb +0 -36
  618. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/base.rb +0 -241
  619. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/bool.rb +0 -35
  620. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/color.rb +0 -698
  621. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/helpers.rb +0 -272
  622. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/list.rb +0 -113
  623. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/map.rb +0 -70
  624. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/null.rb +0 -44
  625. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/number.rb +0 -563
  626. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/string.rb +0 -138
  627. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss.rb +0 -14
  628. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/css_parser.rb +0 -56
  629. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/parser.rb +0 -1254
  630. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/rx.rb +0 -140
  631. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/static_parser.rb +0 -373
  632. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector.rb +0 -323
  633. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/abstract_sequence.rb +0 -111
  634. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/comma_sequence.rb +0 -191
  635. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/pseudo.rb +0 -266
  636. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/sequence.rb +0 -636
  637. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/simple.rb +0 -117
  638. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/simple_sequence.rb +0 -344
  639. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/shared.rb +0 -76
  640. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/map.rb +0 -213
  641. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/position.rb +0 -39
  642. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/range.rb +0 -41
  643. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb +0 -120
  644. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/supports.rb +0 -225
  645. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/at_root_node.rb +0 -83
  646. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/charset_node.rb +0 -22
  647. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/comment_node.rb +0 -82
  648. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/content_node.rb +0 -9
  649. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/css_import_node.rb +0 -68
  650. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/debug_node.rb +0 -18
  651. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/directive_node.rb +0 -59
  652. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/each_node.rb +0 -24
  653. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/error_node.rb +0 -18
  654. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/extend_node.rb +0 -43
  655. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/for_node.rb +0 -36
  656. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/function_node.rb +0 -44
  657. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/if_node.rb +0 -52
  658. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/import_node.rb +0 -75
  659. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/keyframe_rule_node.rb +0 -15
  660. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/media_node.rb +0 -48
  661. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/mixin_def_node.rb +0 -38
  662. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/mixin_node.rb +0 -52
  663. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/node.rb +0 -240
  664. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/prop_node.rb +0 -170
  665. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/return_node.rb +0 -19
  666. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/root_node.rb +0 -44
  667. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/rule_node.rb +0 -155
  668. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/supports_node.rb +0 -38
  669. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/trace_node.rb +0 -33
  670. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/variable_node.rb +0 -36
  671. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/base.rb +0 -72
  672. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/check_nesting.rb +0 -173
  673. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/convert.rb +0 -351
  674. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/cssize.rb +0 -373
  675. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/deep_copy.rb +0 -107
  676. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/extend.rb +0 -70
  677. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb +0 -564
  678. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/set_options.rb +0 -139
  679. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/to_css.rb +0 -409
  680. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/warn_node.rb +0 -18
  681. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/while_node.rb +0 -18
  682. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util.rb +0 -1375
  683. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/cross_platform_random.rb +0 -19
  684. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/multibyte_string_scanner.rb +0 -155
  685. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/normalized_map.rb +0 -129
  686. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/ordered_hash.rb +0 -192
  687. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/subset_map.rb +0 -109
  688. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/test.rb +0 -9
  689. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/version.rb +0 -124
  690. data/bundle/ruby/2.5.0/gems/sass-3.4.25/rails/init.rb +0 -1
  691. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/CHANGELOG.md +0 -1
  692. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/CONTRIBUTING.md +0 -38
  693. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Gemfile +0 -20
  694. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Guardfile +0 -8
  695. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/README.md +0 -349
  696. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Rakefile +0 -5
  697. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Vagrantfile +0 -96
  698. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen.rb +0 -54
  699. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapter.rb +0 -327
  700. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/bsd.rb +0 -75
  701. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/darwin.rb +0 -48
  702. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/linux.rb +0 -81
  703. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/polling.rb +0 -58
  704. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/windows.rb +0 -91
  705. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/directory_record.rb +0 -406
  706. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb +0 -323
  707. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/turnstile.rb +0 -32
  708. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/version.rb +0 -3
  709. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/listen.gemspec +0 -28
  710. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapter_spec.rb +0 -149
  711. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/bsd_spec.rb +0 -36
  712. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/darwin_spec.rb +0 -37
  713. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/linux_spec.rb +0 -47
  714. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/polling_spec.rb +0 -68
  715. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/windows_spec.rb +0 -30
  716. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/directory_record_spec.rb +0 -1250
  717. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/listener_spec.rb +0 -258
  718. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/turnstile_spec.rb +0 -56
  719. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen_spec.rb +0 -67
  720. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/spec_helper.rb +0 -25
  721. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/adapter_helper.rb +0 -666
  722. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/directory_record_helper.rb +0 -57
  723. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/fixtures_helper.rb +0 -29
  724. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/listeners_helper.rb +0 -179
  725. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/platform_helper.rb +0 -15
  726. data/bundle/ruby/2.5.0/gems/temple-0.8.0/lib/temple/version.rb +0 -3
  727. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/CHANGELOG.md +0 -132
  728. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/Gemfile +0 -70
  729. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/HACKING +0 -16
  730. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/README.md +0 -233
  731. data/bundle/ruby/2.5.0/gems/tilt-2.0.9/tilt.gemspec +0 -130
  732. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.1/data/display_width.marshal.gz +0 -0
@@ -0,0 +1,1473 @@
1
+ # frozen_string_literal: true
2
+ # encoding: UTF-8
3
+
4
+ $DEBUG = true if ENV["DEBUG"]
5
+
6
+ class RubyLexer
7
+ # :stopdoc:
8
+ EOF = :eof_haha!
9
+
10
+ ESCAPES = {
11
+ "a" => "\007",
12
+ "b" => "\010",
13
+ "e" => "\033",
14
+ "f" => "\f",
15
+ "n" => "\n",
16
+ "r" => "\r",
17
+ "s" => " ",
18
+ "t" => "\t",
19
+ "v" => "\13",
20
+ "\\" => '\\',
21
+ "\n" => "",
22
+ "C-\?" => 127.chr,
23
+ "c\?" => 127.chr,
24
+ }
25
+
26
+ HAS_ENC = "".respond_to? :encoding
27
+
28
+ TOKENS = {
29
+ "!" => :tBANG,
30
+ "!=" => :tNEQ,
31
+ # "!@" => :tUBANG,
32
+ "!~" => :tNMATCH,
33
+ "," => :tCOMMA,
34
+ ".." => :tDOT2,
35
+ "..." => :tDOT3,
36
+ "=" => :tEQL,
37
+ "==" => :tEQ,
38
+ "===" => :tEQQ,
39
+ "=>" => :tASSOC,
40
+ "=~" => :tMATCH,
41
+ "->" => :tLAMBDA,
42
+ }
43
+
44
+ @@regexp_cache = Hash.new { |h, k| h[k] = Regexp.new(Regexp.escape(k)) }
45
+ @@regexp_cache[nil] = nil
46
+
47
+ if $DEBUG then
48
+ attr_reader :lex_state
49
+
50
+ def lex_state= o
51
+ return if @lex_state == o
52
+ raise ArgumentError, "bad state: %p" % [o] unless State === o
53
+
54
+ warn "lex_state: %p -> %p" % [lex_state, o]
55
+
56
+ @lex_state = o
57
+ end
58
+ end
59
+
60
+ # :startdoc:
61
+
62
+ attr_accessor :lex_state unless $DEBUG
63
+
64
+ attr_accessor :lineno # we're bypassing oedipus' lineno handling.
65
+ attr_accessor :brace_nest
66
+ attr_accessor :cmdarg
67
+ attr_accessor :command_start
68
+ attr_accessor :cmd_state # temporary--ivar to avoid passing everywhere
69
+ attr_accessor :last_state
70
+ attr_accessor :cond
71
+ attr_accessor :extra_lineno
72
+
73
+ ##
74
+ # Additional context surrounding tokens that both the lexer and
75
+ # grammar use.
76
+
77
+ attr_accessor :lex_strterm
78
+ attr_accessor :lpar_beg
79
+ attr_accessor :paren_nest
80
+ attr_accessor :parser # HACK for very end of lexer... *sigh*
81
+ attr_accessor :space_seen
82
+ attr_accessor :string_buffer
83
+ attr_accessor :string_nest
84
+
85
+ # Last token read via next_token.
86
+ attr_accessor :token
87
+
88
+ attr_writer :comments
89
+
90
+ def initialize _ = nil
91
+ @lex_state = nil # remove one warning under $DEBUG
92
+ self.lex_state = EXPR_NONE
93
+
94
+ self.cond = RubyParserStuff::StackState.new(:cond, $DEBUG)
95
+ self.cmdarg = RubyParserStuff::StackState.new(:cmdarg, $DEBUG)
96
+
97
+ reset
98
+ end
99
+
100
+ def arg_ambiguous
101
+ self.warning "Ambiguous first argument. make sure."
102
+ end
103
+
104
+ def arg_state
105
+ is_after_operator? ? EXPR_ARG : EXPR_BEG
106
+ end
107
+
108
+ def beginning_of_line?
109
+ ss.bol?
110
+ end
111
+
112
+ alias bol? beginning_of_line? # to make .rex file more readable
113
+
114
+ def check re
115
+ ss.check re
116
+ end
117
+
118
+ def comments # TODO: remove this... maybe comment_string + attr_accessor
119
+ c = @comments.join
120
+ @comments.clear
121
+ c
122
+ end
123
+
124
+ def eat_whitespace
125
+ r = scan(/\s+/)
126
+ self.extra_lineno += r.count("\n") if r
127
+ r
128
+ end
129
+
130
+ def end_of_stream?
131
+ ss.eos?
132
+ end
133
+
134
+ def expr_dot?
135
+ lex_state =~ EXPR_DOT
136
+ end
137
+
138
+ def expr_fname? # REFACTOR
139
+ lex_state =~ EXPR_FNAME
140
+ end
141
+
142
+ def expr_result token, text
143
+ cond.push false
144
+ cmdarg.push false
145
+ result EXPR_BEG, token, text
146
+ end
147
+
148
+ def fixup_lineno extra = 0
149
+ self.lineno += self.extra_lineno + extra
150
+ self.extra_lineno = 0
151
+ end
152
+
153
+ def heredoc here # TODO: rewrite / remove
154
+ _, eos, func, last_line = here
155
+
156
+ indent = func =~ STR_FUNC_INDENT ? "[ \t]*" : nil
157
+ expand = func =~ STR_FUNC_EXPAND
158
+ eol = last_line && last_line.end_with?("\r\n") ? "\r\n" : "\n"
159
+ eos_re = /#{indent}#{Regexp.escape eos}(\r*\n|\z)/
160
+ err_msg = "can't match #{eos_re.inspect} anywhere in "
161
+
162
+ rb_compile_error err_msg if end_of_stream?
163
+
164
+ if beginning_of_line? && scan(eos_re) then
165
+ self.lineno += 1
166
+ ss.unread_many last_line # TODO: figure out how to remove this
167
+ return :tSTRING_END, [eos, func] # TODO: calculate squiggle width at lex?
168
+ end
169
+
170
+ self.string_buffer = []
171
+
172
+ if expand then
173
+ case
174
+ when scan(/#(?=\$(-.|[a-zA-Z_0-9~\*\$\?!@\/\\;,\.=:<>\"\&\`\'+]))/) then
175
+ # TODO: !ISASCII
176
+ # ?! see parser_peek_variable_name
177
+ return :tSTRING_DVAR, matched
178
+ when scan(/#(?=\@\@?[a-zA-Z_])/) then
179
+ # TODO: !ISASCII
180
+ return :tSTRING_DVAR, matched
181
+ when scan(/#[{]/) then
182
+ self.command_start = true
183
+ return :tSTRING_DBEG, matched
184
+ when scan(/#/) then
185
+ string_buffer << "#"
186
+ end
187
+
188
+ begin
189
+ c = tokadd_string func, eol, nil
190
+
191
+ rb_compile_error err_msg if
192
+ c == RubyLexer::EOF
193
+
194
+ if c != eol then
195
+ return :tSTRING_CONTENT, string_buffer.join
196
+ else
197
+ string_buffer << scan(/\n/)
198
+ end
199
+
200
+ rb_compile_error err_msg if end_of_stream?
201
+ end until check(eos_re)
202
+ else
203
+ until check(eos_re) do
204
+ string_buffer << scan(/.*(\n|\z)/)
205
+ rb_compile_error err_msg if end_of_stream?
206
+ end
207
+ end
208
+
209
+ self.lex_strterm = [:heredoc, eos, func, last_line]
210
+
211
+ string_content = begin
212
+ s = string_buffer.join
213
+ s.b.force_encoding Encoding::UTF_8
214
+ end
215
+
216
+ return :tSTRING_CONTENT, string_content
217
+ end
218
+
219
+ def heredoc_identifier # TODO: remove / rewrite
220
+ term, func = nil, STR_FUNC_BORING
221
+ self.string_buffer = []
222
+
223
+ heredoc_indent_mods = "-"
224
+ heredoc_indent_mods += '\~' if ruby23plus?
225
+
226
+ case
227
+ when scan(/([#{heredoc_indent_mods}]?)([\'\"\`])(.*?)\2/) then
228
+ term = ss[2]
229
+ func |= STR_FUNC_INDENT unless ss[1].empty? # TODO: this seems wrong
230
+ func |= STR_FUNC_ICNTNT if ss[1] == "~"
231
+ func |= case term
232
+ when "\'" then
233
+ STR_SQUOTE
234
+ when '"' then
235
+ STR_DQUOTE
236
+ else
237
+ STR_XQUOTE
238
+ end
239
+ string_buffer << ss[3]
240
+ when scan(/[#{heredoc_indent_mods}]?([\'\"\`])(?!\1*\Z)/) then
241
+ rb_compile_error "unterminated here document identifier"
242
+ when scan(/([#{heredoc_indent_mods}]?)(#{IDENT_CHAR}+)/) then
243
+ term = '"'
244
+ func |= STR_DQUOTE
245
+ unless ss[1].empty? then
246
+ func |= STR_FUNC_INDENT
247
+ func |= STR_FUNC_ICNTNT if ss[1] == "~"
248
+ end
249
+ string_buffer << ss[2]
250
+ else
251
+ return nil
252
+ end
253
+
254
+ if scan(/.*\n/) then
255
+ # TODO: think about storing off the char range instead
256
+ line = matched
257
+ else
258
+ line = nil
259
+ end
260
+
261
+ self.lex_strterm = [:heredoc, string_buffer.join, func, line]
262
+
263
+ if term == "`" then
264
+ result nil, :tXSTRING_BEG, "`"
265
+ else
266
+ result nil, :tSTRING_BEG, "\""
267
+ end
268
+ end
269
+
270
+ def in_fname? # REFACTOR
271
+ lex_state =~ EXPR_FNAME
272
+ end
273
+
274
+ def int_with_base base
275
+ rb_compile_error "Invalid numeric format" if matched =~ /__/
276
+
277
+ text = matched
278
+ case
279
+ when text.end_with?("ri")
280
+ return result(EXPR_NUM, :tIMAGINARY, Complex(0, Rational(text.chop.chop.to_i(base))))
281
+ when text.end_with?("r")
282
+ return result(EXPR_NUM, :tRATIONAL, Rational(text.chop.to_i(base)))
283
+ when text.end_with?("i")
284
+ return result(EXPR_NUM, :tIMAGINARY, Complex(0, text.chop.to_i(base)))
285
+ else
286
+ return result(EXPR_NUM, :tINTEGER, text.to_i(base))
287
+ end
288
+ end
289
+
290
+ def is_after_operator?
291
+ lex_state =~ EXPR_FNAME|EXPR_DOT
292
+ end
293
+
294
+ def is_arg?
295
+ lex_state =~ EXPR_ARG_ANY
296
+ end
297
+
298
+ def is_beg?
299
+ lex_state =~ EXPR_BEG_ANY || lex_state == EXPR_LAB # yes, == EXPR_LAB
300
+ end
301
+
302
+ def is_end?
303
+ lex_state =~ EXPR_END_ANY
304
+ end
305
+
306
+ def is_label_possible?
307
+ (lex_state =~ EXPR_LABEL|EXPR_ENDFN && !cmd_state) || is_arg?
308
+ end
309
+
310
+ def is_label_suffix?
311
+ check(/:(?!:)/)
312
+ end
313
+
314
+ def is_space_arg? c = "x"
315
+ is_arg? and space_seen and c !~ /\s/
316
+ end
317
+
318
+ def lambda_beginning?
319
+ lpar_beg && lpar_beg == paren_nest
320
+ end
321
+
322
+ def is_local_id id
323
+ # maybe just make this false for now
324
+ self.parser.env[id.to_sym] == :lvar # HACK: this isn't remotely right
325
+ end
326
+
327
+ def lvar_defined? id
328
+ # TODO: (dyna_in_block? && dvar_defined?(id)) || local_id?(id)
329
+ self.parser.env[id.to_sym] == :lvar
330
+ end
331
+
332
+ def matched
333
+ ss.matched
334
+ end
335
+
336
+ def not_end?
337
+ not is_end?
338
+ end
339
+
340
+ def parse_quote # TODO: remove / rewrite
341
+ beg, nnd, short_hand, c = nil, nil, false, nil
342
+
343
+ if scan(/[a-z0-9]{1,2}/i) then # Long-hand (e.g. %Q{}).
344
+ rb_compile_error "unknown type of %string" if ss.matched_size == 2
345
+ c, beg, short_hand = matched, getch, false
346
+ else # Short-hand (e.g. %{, %., %!, etc)
347
+ c, beg, short_hand = "Q", getch, true
348
+ end
349
+
350
+ if end_of_stream? or c == RubyLexer::EOF or beg == RubyLexer::EOF then
351
+ rb_compile_error "unterminated quoted string meets end of file"
352
+ end
353
+
354
+ # Figure nnd-char. "\0" is special to indicate beg=nnd and that no nesting?
355
+ nnd = { "(" => ")", "[" => "]", "{" => "}", "<" => ">" }[beg]
356
+ nnd, beg = beg, "\0" if nnd.nil?
357
+
358
+ token_type, text = nil, "%#{c}#{beg}"
359
+ token_type, string_type = case c
360
+ when "Q" then
361
+ ch = short_hand ? nnd : c + beg
362
+ text = "%#{ch}"
363
+ [:tSTRING_BEG, STR_DQUOTE]
364
+ when "q" then
365
+ [:tSTRING_BEG, STR_SQUOTE]
366
+ when "W" then
367
+ eat_whitespace
368
+ [:tWORDS_BEG, STR_DQUOTE | STR_FUNC_QWORDS]
369
+ when "w" then
370
+ eat_whitespace
371
+ [:tQWORDS_BEG, STR_SQUOTE | STR_FUNC_QWORDS]
372
+ when "x" then
373
+ [:tXSTRING_BEG, STR_XQUOTE]
374
+ when "r" then
375
+ [:tREGEXP_BEG, STR_REGEXP]
376
+ when "s" then
377
+ self.lex_state = EXPR_FNAME
378
+ [:tSYMBEG, STR_SSYM]
379
+ when "I" then
380
+ eat_whitespace
381
+ [:tSYMBOLS_BEG, STR_DQUOTE | STR_FUNC_QWORDS]
382
+ when "i" then
383
+ eat_whitespace
384
+ [:tQSYMBOLS_BEG, STR_SQUOTE | STR_FUNC_QWORDS]
385
+ end
386
+
387
+ rb_compile_error "Bad %string type. Expected [QqWwIixrs], found '#{c}'." if
388
+ token_type.nil?
389
+
390
+ raise "huh" unless string_type
391
+
392
+ string string_type, nnd, beg
393
+
394
+ return token_type, text
395
+ end
396
+
397
+ def parse_string quote # TODO: rewrite / remove
398
+ _, string_type, term, open = quote
399
+
400
+ space = false # FIX: remove these
401
+ func = string_type
402
+ paren = open
403
+ term_re = @@regexp_cache[term]
404
+
405
+ qwords = func =~ STR_FUNC_QWORDS
406
+ regexp = func =~ STR_FUNC_REGEXP
407
+ expand = func =~ STR_FUNC_EXPAND
408
+
409
+ unless func then # nil'ed from qwords below. *sigh*
410
+ return :tSTRING_END, nil
411
+ end
412
+
413
+ space = true if qwords and eat_whitespace
414
+
415
+ if self.string_nest == 0 && scan(/#{term_re}/) then
416
+ if qwords then
417
+ quote[1] = nil
418
+ return :tSPACE, nil
419
+ elsif regexp then
420
+ return :tREGEXP_END, self.regx_options
421
+ else
422
+ return :tSTRING_END, term
423
+ end
424
+ end
425
+
426
+ return :tSPACE, nil if space
427
+
428
+ self.string_buffer = []
429
+
430
+ if expand
431
+ case
432
+ when scan(/#(?=\$(-.|[a-zA-Z_0-9~\*\$\?!@\/\\;,\.=:<>\"\&\`\'+]))/) then
433
+ # TODO: !ISASCII
434
+ # ?! see parser_peek_variable_name
435
+ return :tSTRING_DVAR, nil
436
+ when scan(/#(?=\@\@?[a-zA-Z_])/) then
437
+ # TODO: !ISASCII
438
+ return :tSTRING_DVAR, nil
439
+ when scan(/#[{]/) then
440
+ self.command_start = true
441
+ return :tSTRING_DBEG, nil
442
+ when scan(/#/) then
443
+ string_buffer << "#"
444
+ end
445
+ end
446
+
447
+ if tokadd_string(func, term, paren) == RubyLexer::EOF then
448
+ if func =~ STR_FUNC_REGEXP then
449
+ rb_compile_error "unterminated regexp meets end of file"
450
+ else
451
+ rb_compile_error "unterminated string meets end of file"
452
+ end
453
+ end
454
+
455
+ return :tSTRING_CONTENT, string_buffer.join
456
+ end
457
+
458
+ def possibly_escape_string text, check
459
+ content = match[1]
460
+
461
+ if text =~ check then
462
+ content.gsub(ESC) { unescape $1 }
463
+ else
464
+ content.gsub(/\\\\/, "\\").gsub(/\\\'/, "'")
465
+ end
466
+ end
467
+
468
+ def process_amper text
469
+ token = if is_arg? && space_seen && !check(/\s/) then
470
+ warning("`&' interpreted as argument prefix")
471
+ :tAMPER
472
+ elsif lex_state =~ EXPR_BEG|EXPR_MID then
473
+ :tAMPER
474
+ else
475
+ :tAMPER2
476
+ end
477
+
478
+ return result(:arg_state, token, "&")
479
+ end
480
+
481
+ def process_backref text
482
+ token = ss[1].to_sym
483
+ # TODO: can't do lineno hack w/ symbol
484
+ result EXPR_END, :tBACK_REF, token
485
+ end
486
+
487
+ def process_begin text
488
+ @comments << matched
489
+
490
+ unless scan(/.*?\n=end( |\t|\f)*[^\n]*(\n|\z)/m) then
491
+ @comments.clear
492
+ rb_compile_error("embedded document meets end of file")
493
+ end
494
+
495
+ @comments << matched
496
+ self.lineno += matched.count("\n")
497
+
498
+ nil # TODO
499
+ end
500
+
501
+ def process_brace_close text
502
+ case matched
503
+ when "}" then
504
+ self.brace_nest -= 1
505
+ return :tSTRING_DEND, matched if brace_nest < 0
506
+ end
507
+
508
+ # matching compare/parse26.y:8099
509
+ cond.pop
510
+ cmdarg.pop
511
+
512
+ case matched
513
+ when "}" then
514
+ self.lex_state = ruby24minus? ? EXPR_ENDARG : EXPR_END
515
+ return :tRCURLY, matched
516
+ when "]" then
517
+ self.paren_nest -= 1
518
+ self.lex_state = ruby24minus? ? EXPR_ENDARG : EXPR_END
519
+ return :tRBRACK, matched
520
+ when ")" then
521
+ self.paren_nest -= 1
522
+ self.lex_state = EXPR_ENDFN
523
+ return :tRPAREN, matched
524
+ else
525
+ raise "Unknown bracing: #{matched.inspect}"
526
+ end
527
+ end
528
+
529
+ def process_brace_open text
530
+ # matching compare/parse23.y:8694
531
+ self.brace_nest += 1
532
+
533
+ if lambda_beginning? then
534
+ self.lpar_beg = nil
535
+ self.paren_nest -= 1 # close arg list when lambda opens body
536
+
537
+ return expr_result(:tLAMBEG, "{")
538
+ end
539
+
540
+ token = case
541
+ when lex_state =~ EXPR_LABELED then
542
+ :tLBRACE # hash
543
+ when lex_state =~ EXPR_ARG_ANY|EXPR_END|EXPR_ENDFN then
544
+ :tLCURLY # block (primary) "{" in parse.y
545
+ when lex_state =~ EXPR_ENDARG then
546
+ :tLBRACE_ARG # block (expr)
547
+ else
548
+ :tLBRACE # hash
549
+ end
550
+
551
+ state = token == :tLBRACE_ARG ? EXPR_BEG : EXPR_PAR
552
+ self.command_start = true if token != :tLBRACE
553
+
554
+ cond.push false
555
+ cmdarg.push false
556
+ result state, token, text
557
+ end
558
+
559
+ def process_colon1 text
560
+ # ?: / then / when
561
+ if is_end? || check(/\s/) then
562
+ return result EXPR_BEG, :tCOLON, text
563
+ end
564
+
565
+ case
566
+ when scan(/\'/) then
567
+ string STR_SSYM
568
+ when scan(/\"/) then
569
+ string STR_DSYM
570
+ end
571
+
572
+ result EXPR_FNAME, :tSYMBEG, text
573
+ end
574
+
575
+ def process_colon2 text
576
+ if is_beg? || lex_state =~ EXPR_CLASS || is_space_arg? then
577
+ result EXPR_BEG, :tCOLON3, text
578
+ else
579
+ result EXPR_DOT, :tCOLON2, text
580
+ end
581
+ end
582
+
583
+ def process_float text
584
+ rb_compile_error "Invalid numeric format" if text =~ /__/
585
+
586
+ case
587
+ when text.end_with?("ri")
588
+ return result EXPR_NUM, :tIMAGINARY, Complex(0, Rational(text.chop.chop))
589
+ when text.end_with?("i")
590
+ return result EXPR_NUM, :tIMAGINARY, Complex(0, text.chop.to_f)
591
+ when text.end_with?("r")
592
+ return result EXPR_NUM, :tRATIONAL, Rational(text.chop)
593
+ else
594
+ return result EXPR_NUM, :tFLOAT, text.to_f
595
+ end
596
+ end
597
+
598
+ def process_gvar text
599
+ text.lineno = self.lineno
600
+ result EXPR_END, :tGVAR, text
601
+ end
602
+
603
+ def process_gvar_oddity text
604
+ return result EXPR_END, "$", "$" if text == "$" # TODO: wtf is this?
605
+ rb_compile_error "#{text.inspect} is not allowed as a global variable name"
606
+ end
607
+
608
+ def process_ivar text
609
+ tok_id = text =~ /^@@/ ? :tCVAR : :tIVAR
610
+ text.lineno = self.lineno
611
+ result EXPR_END, tok_id, text
612
+ end
613
+
614
+ def process_label text
615
+ symbol = possibly_escape_string text, /^\"/
616
+
617
+ result EXPR_LAB, :tLABEL, [symbol, self.lineno]
618
+ end
619
+
620
+ def process_label_or_string text
621
+ if @was_label && text =~ /:\Z/ then
622
+ @was_label = nil
623
+ return process_label text
624
+ elsif text =~ /:\Z/ then
625
+ ss.pos -= 1 # put back ":"
626
+ text = text[0..-2]
627
+ end
628
+
629
+ result EXPR_END, :tSTRING, text[1..-2].gsub(/\\\\/, "\\").gsub(/\\\'/, "\'")
630
+ end
631
+
632
+ def process_lchevron text
633
+ if (lex_state !~ EXPR_DOT|EXPR_CLASS &&
634
+ !is_end? &&
635
+ (!is_arg? || lex_state =~ EXPR_LABELED || space_seen)) then
636
+ tok = self.heredoc_identifier
637
+ return tok if tok
638
+ end
639
+
640
+ if is_after_operator? then
641
+ self.lex_state = EXPR_ARG
642
+ else
643
+ self.command_start = true if lex_state =~ EXPR_CLASS
644
+ self.lex_state = EXPR_BEG
645
+ end
646
+
647
+ return result(lex_state, :tLSHFT, "\<\<")
648
+ end
649
+
650
+ def process_newline_or_comment text
651
+ c = matched
652
+ hit = false
653
+
654
+ if c == "#" then
655
+ ss.pos -= 1
656
+
657
+ # TODO: handle magic comments
658
+ while scan(/\s*\#.*(\n+|\z)/) do
659
+ hit = true
660
+ self.lineno += matched.lines.to_a.size
661
+ @comments << matched.gsub(/^ +#/, "#").gsub(/^ +$/, "")
662
+ end
663
+
664
+ return nil if end_of_stream?
665
+ end
666
+
667
+ self.lineno += 1 unless hit
668
+
669
+ # Replace a string of newlines with a single one
670
+ self.lineno += matched.lines.to_a.size if scan(/\n+/)
671
+
672
+ c = (lex_state =~ EXPR_BEG|EXPR_CLASS|EXPR_FNAME|EXPR_DOT &&
673
+ lex_state !~ EXPR_LABELED)
674
+ # TODO: figure out what token_seen is for
675
+ if c || self.lex_state == EXPR_LAB then # yes, == EXPR_LAB
676
+ # ignore if !fallthrough?
677
+ if !c && parser.in_kwarg then
678
+ # normal newline
679
+ self.command_start = true
680
+ return result EXPR_BEG, :tNL, nil
681
+ else
682
+ return # skip
683
+ end
684
+ end
685
+
686
+ if scan(/([\ \t\r\f\v]*)(\.|&)/) then
687
+ self.space_seen = true unless ss[1].empty?
688
+
689
+ ss.pos -= 1
690
+ return unless check(/\.\./)
691
+ end
692
+
693
+ self.command_start = true
694
+
695
+ return result(EXPR_BEG, :tNL, nil)
696
+ end
697
+
698
+ def process_nthref text
699
+ # TODO: can't do lineno hack w/ number
700
+ result EXPR_END, :tNTH_REF, ss[1].to_i
701
+ end
702
+
703
+ def process_paren text
704
+ token = if is_beg? then
705
+ :tLPAREN
706
+ elsif !space_seen then
707
+ # foo( ... ) => method call, no ambiguity
708
+ :tLPAREN2
709
+ elsif is_space_arg? then
710
+ :tLPAREN_ARG
711
+ elsif lex_state =~ EXPR_ENDFN && !lambda_beginning? then
712
+ # TODO:
713
+ # warn("parentheses after method name is interpreted as " \
714
+ # "an argument list, not a decomposed argument")
715
+ :tLPAREN2
716
+ else
717
+ :tLPAREN2 # plain "(" in parse.y
718
+ end
719
+
720
+ self.paren_nest += 1
721
+
722
+ cond.push false
723
+ cmdarg.push false
724
+ result EXPR_PAR, token, text
725
+ end
726
+
727
+ def process_percent text
728
+ return parse_quote if is_beg?
729
+
730
+ return result EXPR_BEG, :tOP_ASGN, "%" if scan(/\=/)
731
+
732
+ return parse_quote if is_space_arg?(check(/\s/)) || (lex_state =~ EXPR_FITEM && check(/s/))
733
+
734
+ return result :arg_state, :tPERCENT, "%"
735
+ end
736
+
737
+ def process_plus_minus text
738
+ sign = matched
739
+ utype, type = if sign == "+" then
740
+ [:tUPLUS, :tPLUS]
741
+ else
742
+ [:tUMINUS, :tMINUS]
743
+ end
744
+
745
+ if is_after_operator? then
746
+ if scan(/@/) then
747
+ return result(EXPR_ARG, utype, "#{sign}@")
748
+ else
749
+ return result(EXPR_ARG, type, sign)
750
+ end
751
+ end
752
+
753
+ return result(EXPR_BEG, :tOP_ASGN, sign) if scan(/\=/)
754
+
755
+ if is_beg? || (is_arg? && space_seen && !check(/\s/)) then
756
+ arg_ambiguous if is_arg?
757
+
758
+ if check(/\d/) then
759
+ return nil if utype == :tUPLUS
760
+ return result EXPR_BEG, :tUMINUS_NUM, sign
761
+ end
762
+
763
+ return result EXPR_BEG, utype, sign
764
+ end
765
+
766
+ result EXPR_BEG, type, sign
767
+ end
768
+
769
+ def process_questionmark text
770
+ if is_end? then
771
+ return result EXPR_BEG, :tEH, "?"
772
+ end
773
+
774
+ if end_of_stream? then
775
+ rb_compile_error "incomplete character syntax: parsed #{text.inspect}"
776
+ end
777
+
778
+ if check(/\s|\v/) then
779
+ unless is_arg? then
780
+ c2 = { " " => "s",
781
+ "\n" => "n",
782
+ "\t" => "t",
783
+ "\v" => "v",
784
+ "\r" => "r",
785
+ "\f" => "f" }[matched]
786
+
787
+ if c2 then
788
+ warning("invalid character syntax; use ?\\" + c2)
789
+ end
790
+ end
791
+
792
+ # ternary
793
+ return result EXPR_BEG, :tEH, "?"
794
+ elsif check(/\w(?=\w)/) then # ternary, also
795
+ return result EXPR_BEG, :tEH, "?"
796
+ end
797
+
798
+ c = if scan(/\\/) then
799
+ self.read_escape
800
+ else
801
+ getch
802
+ end
803
+
804
+ result EXPR_END, :tSTRING, c
805
+ end
806
+
807
+ def process_simple_string text
808
+ replacement = text[1..-2].gsub(ESC) {
809
+ unescape($1).b.force_encoding Encoding::UTF_8
810
+ }
811
+
812
+ replacement = replacement.b unless replacement.valid_encoding?
813
+
814
+ result EXPR_END, :tSTRING, replacement
815
+ end
816
+
817
+ def process_slash text
818
+ if is_beg? then
819
+ string STR_REGEXP
820
+
821
+ return result(nil, :tREGEXP_BEG, "/")
822
+ end
823
+
824
+ if scan(/\=/) then
825
+ return result(EXPR_BEG, :tOP_ASGN, "/")
826
+ end
827
+
828
+ if is_arg? && space_seen then
829
+ unless scan(/\s/) then
830
+ arg_ambiguous
831
+ string STR_REGEXP, "/"
832
+ return result(nil, :tREGEXP_BEG, "/")
833
+ end
834
+ end
835
+
836
+ return result(:arg_state, :tDIVIDE, "/")
837
+ end
838
+
839
+ def process_square_bracket text
840
+ self.paren_nest += 1
841
+
842
+ token = nil
843
+
844
+ if is_after_operator? then
845
+ case
846
+ when scan(/\]\=/) then
847
+ self.paren_nest -= 1 # HACK? I dunno, or bug in MRI
848
+ return result EXPR_ARG, :tASET, "[]="
849
+ when scan(/\]/) then
850
+ self.paren_nest -= 1 # HACK? I dunno, or bug in MRI
851
+ return result EXPR_ARG, :tAREF, "[]"
852
+ else
853
+ rb_compile_error "unexpected '['"
854
+ end
855
+ elsif is_beg? then
856
+ token = :tLBRACK
857
+ elsif is_arg? && (space_seen || lex_state =~ EXPR_LABELED) then
858
+ token = :tLBRACK
859
+ else
860
+ token = :tLBRACK2
861
+ end
862
+
863
+ cond.push false
864
+ cmdarg.push false
865
+ result EXPR_PAR, token, text
866
+ end
867
+
868
+ def process_string # TODO: rewrite / remove
869
+ # matches top of parser_yylex in compare/parse23.y:8113
870
+ token = if lex_strterm[0] == :heredoc then
871
+ self.heredoc lex_strterm
872
+ else
873
+ self.parse_string lex_strterm
874
+ end
875
+
876
+ token_type, c = token
877
+
878
+ # matches parser_string_term from 2.3, but way off from 2.5
879
+ if ruby22plus? && token_type == :tSTRING_END && ["'", '"'].include?(c) then
880
+ if ((lex_state =~ EXPR_BEG|EXPR_ENDFN &&
881
+ !cond.is_in_state) || is_arg?) &&
882
+ is_label_suffix? then
883
+ scan(/:/)
884
+ token_type = token[0] = :tLABEL_END
885
+ end
886
+ end
887
+
888
+ if [:tSTRING_END, :tREGEXP_END, :tLABEL_END].include? token_type then
889
+ self.lex_strterm = nil
890
+ self.lex_state = (token_type == :tLABEL_END) ? EXPR_PAR : EXPR_LIT
891
+ end
892
+
893
+ return token
894
+ end
895
+
896
+ def process_symbol text
897
+ symbol = possibly_escape_string text, /^:\"/ # stupid emacs
898
+
899
+ result EXPR_LIT, :tSYMBOL, symbol
900
+ end
901
+
902
+ def process_token text
903
+ # matching: parse_ident in compare/parse23.y:7989
904
+ # TODO: make this always return [token, lineno]
905
+ # FIX: remove: self.last_state = lex_state
906
+
907
+ token = self.token = text
908
+ token << matched if scan(/[\!\?](?!=)/)
909
+
910
+ tok_id =
911
+ case
912
+ when token =~ /[!?]$/ then
913
+ :tFID
914
+ when lex_state =~ EXPR_FNAME && scan(/=(?:(?![~>=])|(?==>))/) then
915
+ # ident=, not =~ => == or followed by =>
916
+ # TODO test lexing of a=>b vs a==>b
917
+ token << matched
918
+ :tIDENTIFIER
919
+ when token =~ /^[A-Z]/ then
920
+ :tCONSTANT
921
+ else
922
+ :tIDENTIFIER
923
+ end
924
+
925
+ if is_label_possible? and is_label_suffix? then
926
+ scan(/:/)
927
+ # TODO: propagate the lineno to ALL results
928
+ return result EXPR_LAB, :tLABEL, [token, self.lineno]
929
+ end
930
+
931
+ # TODO: mb == ENC_CODERANGE_7BIT && lex_state !~ EXPR_DOT
932
+ if lex_state !~ EXPR_DOT then
933
+ # See if it is a reserved word.
934
+ keyword = RubyParserStuff::Keyword.keyword token
935
+
936
+ return process_token_keyword keyword if keyword
937
+ end
938
+
939
+ # matching: compare/parse23.y:8079
940
+ state = if is_beg? or is_arg? or lex_state =~ EXPR_DOT then
941
+ cmd_state ? EXPR_CMDARG : EXPR_ARG
942
+ elsif lex_state =~ EXPR_FNAME then
943
+ EXPR_ENDFN
944
+ else
945
+ EXPR_END
946
+ end
947
+
948
+ tok_id = :tIDENTIFIER if tok_id == :tCONSTANT && is_local_id(token)
949
+
950
+ if last_state !~ EXPR_DOT|EXPR_FNAME and
951
+ (tok_id == :tIDENTIFIER) and # not EXPR_FNAME, not attrasgn
952
+ lvar_defined?(token) then
953
+ state = EXPR_END|EXPR_LABEL
954
+ end
955
+
956
+ token.lineno = self.lineno # yes, on a string. I know... I know...
957
+
958
+ return result(state, tok_id, token)
959
+ end
960
+
961
+ def process_token_keyword keyword
962
+ # matching MIDDLE of parse_ident in compare/parse23.y:8046
963
+ state = lex_state
964
+ self.lex_state = keyword.state
965
+
966
+ value = [token, self.lineno]
967
+
968
+ return result(lex_state, keyword.id0, value) if state =~ EXPR_FNAME
969
+
970
+ self.command_start = true if lex_state =~ EXPR_BEG
971
+
972
+ case
973
+ when keyword.id0 == :kDO then # parse26.y line 7591
974
+ case
975
+ when lambda_beginning? then
976
+ self.lpar_beg = nil # lambda_beginning? == FALSE in the body of "-> do ... end"
977
+ self.paren_nest -= 1 # TODO: question this?
978
+ result lex_state, :kDO_LAMBDA, value
979
+ when cond.is_in_state then
980
+ result lex_state, :kDO_COND, value
981
+ when cmdarg.is_in_state && state != EXPR_CMDARG then
982
+ result lex_state, :kDO_BLOCK, value
983
+ else
984
+ result lex_state, :kDO, value
985
+ end
986
+ when state =~ EXPR_PAD then
987
+ result lex_state, keyword.id0, value
988
+ when keyword.id0 != keyword.id1 then
989
+ result EXPR_PAR, keyword.id1, value
990
+ else
991
+ result lex_state, keyword.id1, value
992
+ end
993
+ end
994
+
995
+ def process_underscore text
996
+ ss.unscan # put back "_"
997
+
998
+ if beginning_of_line? && scan(/\__END__(\r?\n|\Z)/) then
999
+ [RubyLexer::EOF, RubyLexer::EOF]
1000
+ elsif scan(/#{IDENT_CHAR}+/) then
1001
+ process_token matched
1002
+ end
1003
+ end
1004
+
1005
+ def rb_compile_error msg
1006
+ msg += ". near line #{self.lineno}: #{ss.rest[/^.*/].inspect}"
1007
+ raise RubyParser::SyntaxError, msg
1008
+ end
1009
+
1010
+ def read_escape # TODO: remove / rewrite
1011
+ case
1012
+ when scan(/\\/) then # Backslash
1013
+ '\\'
1014
+ when scan(/n/) then # newline
1015
+ self.extra_lineno -= 1
1016
+ "\n"
1017
+ when scan(/t/) then # horizontal tab
1018
+ "\t"
1019
+ when scan(/r/) then # carriage-return
1020
+ "\r"
1021
+ when scan(/f/) then # form-feed
1022
+ "\f"
1023
+ when scan(/v/) then # vertical tab
1024
+ "\13"
1025
+ when scan(/a/) then # alarm(bell)
1026
+ "\007"
1027
+ when scan(/e/) then # escape
1028
+ "\033"
1029
+ when scan(/b/) then # backspace
1030
+ "\010"
1031
+ when scan(/s/) then # space
1032
+ " "
1033
+ when scan(/[0-7]{1,3}/) then # octal constant
1034
+ (matched.to_i(8) & 0xFF).chr.force_encoding Encoding::UTF_8
1035
+ when scan(/x([0-9a-fA-F]{1,2})/) then # hex constant
1036
+ # TODO: force encode everything to UTF-8?
1037
+ ss[1].to_i(16).chr.force_encoding Encoding::UTF_8
1038
+ when check(/M-\\./) then
1039
+ scan(/M-\\/) # eat it
1040
+ c = self.read_escape
1041
+ c[0] = (c[0].ord | 0x80).chr
1042
+ c
1043
+ when scan(/M-(.)/) then
1044
+ c = ss[1]
1045
+ c[0] = (c[0].ord | 0x80).chr
1046
+ c
1047
+ when check(/(C-|c)\\[\\MCc]/) then
1048
+ scan(/(C-|c)\\/) # eat it
1049
+ c = self.read_escape
1050
+ c[0] = (c[0].ord & 0x9f).chr
1051
+ c
1052
+ when check(/(C-|c)\\(?!u|\\)/) then
1053
+ scan(/(C-|c)\\/) # eat it
1054
+ c = read_escape
1055
+ c[0] = (c[0].ord & 0x9f).chr
1056
+ c
1057
+ when scan(/C-\?|c\?/) then
1058
+ 127.chr
1059
+ when scan(/(C-|c)(.)/) then
1060
+ c = ss[2]
1061
+ c[0] = (c[0].ord & 0x9f).chr
1062
+ c
1063
+ when scan(/^[89]/i) then # bad octal or hex... MRI ignores them :(
1064
+ matched
1065
+ when scan(/u(\h{4})/) then
1066
+ [ss[1].to_i(16)].pack("U")
1067
+ when scan(/u(\h{1,3})/) then
1068
+ rb_compile_error "Invalid escape character syntax"
1069
+ when scan(/u\{(\h+(?:\s+\h+)*)\}/) then
1070
+ ss[1].split.map { |s| s.to_i(16) }.pack("U*")
1071
+ when scan(/[McCx0-9]/) || end_of_stream? then
1072
+ rb_compile_error("Invalid escape character syntax")
1073
+ else
1074
+ getch
1075
+ end.dup
1076
+ end
1077
+
1078
+ def getch
1079
+ c = ss.getch
1080
+ c = ss.getch if c == "\r" && ss.peek(1) == "\n"
1081
+ c
1082
+ end
1083
+
1084
+ def regx_options # TODO: rewrite / remove
1085
+ good, bad = [], []
1086
+
1087
+ if scan(/[a-z]+/) then
1088
+ good, bad = matched.split(//).partition { |s| s =~ /^[ixmonesu]$/ }
1089
+ end
1090
+
1091
+ unless bad.empty? then
1092
+ rb_compile_error("unknown regexp option%s - %s" %
1093
+ [(bad.size > 1 ? "s" : ""), bad.join.inspect])
1094
+ end
1095
+
1096
+ return good.join
1097
+ end
1098
+
1099
+ def reset
1100
+ self.brace_nest = 0
1101
+ self.command_start = true
1102
+ self.comments = []
1103
+ self.lex_state = EXPR_NONE
1104
+ self.lex_strterm = nil
1105
+ self.lineno = 1
1106
+ self.lpar_beg = nil
1107
+ self.paren_nest = 0
1108
+ self.space_seen = false
1109
+ self.string_nest = 0
1110
+ self.token = nil
1111
+ self.extra_lineno = 0
1112
+
1113
+ self.cond.reset
1114
+ self.cmdarg.reset
1115
+ end
1116
+
1117
+ def result new_state, token, text # :nodoc:
1118
+ new_state = self.arg_state if new_state == :arg_state
1119
+ self.lex_state = new_state if new_state
1120
+ [token, text]
1121
+ end
1122
+
1123
+ def ruby22_label?
1124
+ ruby22plus? and is_label_possible?
1125
+ end
1126
+
1127
+ def ruby22plus?
1128
+ parser.class.version >= 22
1129
+ end
1130
+
1131
+ def ruby23plus?
1132
+ parser.class.version >= 23
1133
+ end
1134
+
1135
+ def ruby24minus?
1136
+ parser.class.version <= 24
1137
+ end
1138
+
1139
+ def scan re
1140
+ ss.scan re
1141
+ end
1142
+
1143
+ def scanner_class # TODO: design this out of oedipus_lex. or something.
1144
+ RPStringScanner
1145
+ end
1146
+
1147
+ def space_vs_beginning space_type, beg_type, fallback
1148
+ if is_space_arg? check(/./m) then
1149
+ warning "`**' interpreted as argument prefix"
1150
+ space_type
1151
+ elsif is_beg? then
1152
+ beg_type
1153
+ else
1154
+ # TODO: warn_balanced("**", "argument prefix");
1155
+ fallback
1156
+ end
1157
+ end
1158
+
1159
+ def string type, beg = matched, nnd = "\0"
1160
+ self.lex_strterm = [:strterm, type, beg, nnd]
1161
+ end
1162
+
1163
+ def tokadd_escape term # TODO: rewrite / remove
1164
+ case
1165
+ when scan(/\\\n/) then
1166
+ # just ignore
1167
+ when scan(/\\([0-7]{1,3}|x[0-9a-fA-F]{1,2})/) then
1168
+ self.string_buffer << matched
1169
+ when scan(/\\([MC]-|c)(?=\\)/) then
1170
+ self.string_buffer << matched
1171
+ self.tokadd_escape term
1172
+ when scan(/\\([MC]-|c)(.)/) then
1173
+ self.string_buffer << matched
1174
+ when scan(/\\[McCx]/) then
1175
+ rb_compile_error "Invalid escape character syntax"
1176
+ when scan(/\\(.)/m) then
1177
+ chr = ss[1]
1178
+ prev = self.string_buffer.last
1179
+ if term == chr && prev && prev.end_with?("(?") then
1180
+ self.string_buffer << chr
1181
+ elsif term == chr || chr.ascii_only? then
1182
+ self.string_buffer << matched # dunno why we keep them for ascii
1183
+ else
1184
+ self.string_buffer << chr # HACK? this is such a rat's nest
1185
+ end
1186
+ else
1187
+ rb_compile_error "Invalid escape character syntax"
1188
+ end
1189
+ end
1190
+
1191
+ def tokadd_string(func, term, paren) # TODO: rewrite / remove
1192
+ qwords = func =~ STR_FUNC_QWORDS
1193
+ escape = func =~ STR_FUNC_ESCAPE
1194
+ expand = func =~ STR_FUNC_EXPAND
1195
+ regexp = func =~ STR_FUNC_REGEXP
1196
+ symbol = func =~ STR_FUNC_SYMBOL
1197
+
1198
+ paren_re = @@regexp_cache[paren]
1199
+ term_re = if term == "\n"
1200
+ /#{Regexp.escape "\r"}?#{Regexp.escape "\n"}/
1201
+ else
1202
+ @@regexp_cache[term]
1203
+ end
1204
+
1205
+ until end_of_stream? do
1206
+ c = nil
1207
+ handled = true
1208
+
1209
+ case
1210
+ when scan(term_re) then
1211
+ if self.string_nest == 0 then
1212
+ ss.pos -= 1
1213
+ break
1214
+ else
1215
+ self.string_nest -= 1
1216
+ end
1217
+ when paren_re && scan(paren_re) then
1218
+ self.string_nest += 1
1219
+ when expand && scan(/#(?=[\$\@\{])/) then # TODO: this seems wrong
1220
+ ss.pos -= 1
1221
+ break
1222
+ when qwords && scan(/\s/) then
1223
+ ss.pos -= 1
1224
+ break
1225
+ when expand && scan(/#(?!\n)/) then
1226
+ # do nothing
1227
+ when check(/\\/) then
1228
+ case
1229
+ when qwords && scan(/\\\n/) then
1230
+ string_buffer << "\n"
1231
+ next
1232
+ when qwords && scan(/\\\s/) then
1233
+ c = " "
1234
+ when expand && scan(/\\\n/) then
1235
+ next
1236
+ when regexp && check(/\\/) then
1237
+ self.tokadd_escape term
1238
+ next
1239
+ when expand && scan(/\\/) then
1240
+ c = self.read_escape
1241
+ when scan(/\\\n/) then
1242
+ # do nothing
1243
+ when scan(/\\\\/) then
1244
+ string_buffer << '\\' if escape
1245
+ c = '\\'
1246
+ when scan(/\\/) then
1247
+ unless scan(term_re) || paren.nil? || scan(paren_re) then
1248
+ string_buffer << "\\"
1249
+ end
1250
+ else
1251
+ handled = false
1252
+ end # inner /\\/ case
1253
+ else
1254
+ handled = false
1255
+ end # top case
1256
+
1257
+ unless handled then
1258
+ t = if term == "\n"
1259
+ Regexp.escape "\r\n"
1260
+ else
1261
+ Regexp.escape term
1262
+ end
1263
+ x = Regexp.escape paren if paren && paren != "\000"
1264
+ re = if qwords then
1265
+ /[^#{t}#{x}\#\\\s]+|./ # |. to pick up whatever
1266
+ else
1267
+ /[^#{t}#{x}\#\\]+|./
1268
+ end
1269
+
1270
+ scan re
1271
+ c = matched
1272
+
1273
+ rb_compile_error "symbol cannot contain '\\0'" if symbol && c =~ /\0/
1274
+ end # unless handled
1275
+
1276
+ c ||= matched
1277
+ string_buffer << c
1278
+ end # until
1279
+
1280
+ c ||= matched
1281
+ c = RubyLexer::EOF if end_of_stream?
1282
+
1283
+ return c
1284
+ end
1285
+
1286
+ def unescape s
1287
+ r = ESCAPES[s]
1288
+
1289
+ self.extra_lineno += 1 if s == "\n" # eg backslash newline strings
1290
+ self.extra_lineno -= 1 if r && s == "n" # literal \n, not newline
1291
+
1292
+ return r if r
1293
+
1294
+ x = case s
1295
+ when /^[0-7]{1,3}/ then
1296
+ ($&.to_i(8) & 0xFF).chr
1297
+ when /^x([0-9a-fA-F]{1,2})/ then
1298
+ $1.to_i(16).chr
1299
+ when /^M-(.)/ then
1300
+ ($1[0].ord | 0x80).chr
1301
+ when /^(C-|c)(.)/ then
1302
+ ($2[0].ord & 0x9f).chr
1303
+ when /^[89a-f]/i then # bad octal or hex... ignore? that's what MRI does :(
1304
+ s
1305
+ when /^[McCx0-9]/ then
1306
+ rb_compile_error("Invalid escape character syntax")
1307
+ when /u(\h{4})/ then
1308
+ [$1.delete("{}").to_i(16)].pack("U")
1309
+ when /u(\h{1,3})/ then
1310
+ rb_compile_error("Invalid escape character syntax")
1311
+ when /u\{(\h+(?:\s+\h+)*)\}/ then
1312
+ $1.split.map { |s| s.to_i(16) }.pack("U*")
1313
+ else
1314
+ s
1315
+ end
1316
+ x
1317
+ end
1318
+
1319
+ def warning s
1320
+ # do nothing for now
1321
+ end
1322
+
1323
+ def was_label?
1324
+ @was_label = ruby22_label?
1325
+ true
1326
+ end
1327
+
1328
+ class State
1329
+ attr_accessor :n
1330
+ attr_accessor :names
1331
+
1332
+ # TODO: take a shared hash of strings for inspect/to_s
1333
+ def initialize o, names
1334
+ raise ArgumentError, "bad state: %p" % [o] unless Integer === o # TODO: remove
1335
+
1336
+ self.n = o
1337
+ self.names = names
1338
+ end
1339
+
1340
+ def == o
1341
+ self.equal?(o) || (o.class == self.class && o.n == self.n)
1342
+ end
1343
+
1344
+ def =~ v
1345
+ (self.n & v.n) != 0
1346
+ end
1347
+
1348
+ def | v
1349
+ raise ArgumentError, "Incompatible State: %p vs %p" % [self, v] unless
1350
+ self.names == v.names
1351
+ self.class.new(self.n | v.n, self.names)
1352
+ end
1353
+
1354
+ def inspect
1355
+ return "Value(0)" if n.zero? # HACK?
1356
+
1357
+ names.map { |v, k| k if self =~ v }.
1358
+ compact.
1359
+ join("|").
1360
+ gsub(/(?:EXPR_|STR_(?:FUNC_)?)/, "")
1361
+ end
1362
+
1363
+ alias to_s inspect
1364
+
1365
+ module Values
1366
+ expr_names = {}
1367
+
1368
+ EXPR_NONE = State.new 0x0, expr_names
1369
+ EXPR_BEG = State.new 0x1, expr_names
1370
+ EXPR_END = State.new 0x2, expr_names
1371
+ EXPR_ENDARG = State.new 0x4, expr_names
1372
+ EXPR_ENDFN = State.new 0x8, expr_names
1373
+ EXPR_ARG = State.new 0x10, expr_names
1374
+ EXPR_CMDARG = State.new 0x20, expr_names
1375
+ EXPR_MID = State.new 0x40, expr_names
1376
+ EXPR_FNAME = State.new 0x80, expr_names
1377
+ EXPR_DOT = State.new 0x100, expr_names
1378
+ EXPR_CLASS = State.new 0x200, expr_names
1379
+ EXPR_LABEL = State.new 0x400, expr_names
1380
+ EXPR_LABELED = State.new 0x800, expr_names
1381
+ EXPR_FITEM = State.new 0x1000, expr_names
1382
+
1383
+ EXPR_BEG_ANY = EXPR_BEG | EXPR_MID | EXPR_CLASS
1384
+ EXPR_ARG_ANY = EXPR_ARG | EXPR_CMDARG
1385
+ EXPR_END_ANY = EXPR_END | EXPR_ENDARG | EXPR_ENDFN
1386
+
1387
+ # extra fake lex_state names to make things a bit cleaner
1388
+
1389
+ EXPR_LAB = EXPR_ARG|EXPR_LABELED
1390
+ EXPR_LIT = EXPR_END|EXPR_ENDARG
1391
+ EXPR_PAR = EXPR_BEG|EXPR_LABEL
1392
+ EXPR_PAD = EXPR_BEG|EXPR_LABELED
1393
+
1394
+ EXPR_NUM = EXPR_LIT
1395
+
1396
+ expr_names.merge!(EXPR_NONE => "EXPR_NONE",
1397
+ EXPR_BEG => "EXPR_BEG",
1398
+ EXPR_END => "EXPR_END",
1399
+ EXPR_ENDARG => "EXPR_ENDARG",
1400
+ EXPR_ENDFN => "EXPR_ENDFN",
1401
+ EXPR_ARG => "EXPR_ARG",
1402
+ EXPR_CMDARG => "EXPR_CMDARG",
1403
+ EXPR_MID => "EXPR_MID",
1404
+ EXPR_FNAME => "EXPR_FNAME",
1405
+ EXPR_DOT => "EXPR_DOT",
1406
+ EXPR_CLASS => "EXPR_CLASS",
1407
+ EXPR_LABEL => "EXPR_LABEL",
1408
+ EXPR_LABELED => "EXPR_LABELED",
1409
+ EXPR_FITEM => "EXPR_FITEM")
1410
+
1411
+ # ruby constants for strings
1412
+
1413
+ str_func_names = {}
1414
+
1415
+ STR_FUNC_BORING = State.new 0x00, str_func_names
1416
+ STR_FUNC_ESCAPE = State.new 0x01, str_func_names
1417
+ STR_FUNC_EXPAND = State.new 0x02, str_func_names
1418
+ STR_FUNC_REGEXP = State.new 0x04, str_func_names
1419
+ STR_FUNC_QWORDS = State.new 0x08, str_func_names
1420
+ STR_FUNC_SYMBOL = State.new 0x10, str_func_names
1421
+ STR_FUNC_INDENT = State.new 0x20, str_func_names # <<-HEREDOC
1422
+ STR_FUNC_LABEL = State.new 0x40, str_func_names
1423
+ STR_FUNC_LIST = State.new 0x4000, str_func_names
1424
+ STR_FUNC_TERM = State.new 0x8000, str_func_names
1425
+ STR_FUNC_ICNTNT = State.new 0x10000, str_func_names # <<~HEREDOC -- TODO: remove?
1426
+
1427
+ # TODO: check parser25.y on how they do STR_FUNC_INDENT
1428
+
1429
+ STR_SQUOTE = STR_FUNC_BORING
1430
+ STR_DQUOTE = STR_FUNC_EXPAND
1431
+ STR_XQUOTE = STR_FUNC_EXPAND
1432
+ STR_REGEXP = STR_FUNC_REGEXP | STR_FUNC_ESCAPE | STR_FUNC_EXPAND
1433
+ STR_SWORD = STR_FUNC_QWORDS | STR_FUNC_LIST
1434
+ STR_DWORD = STR_FUNC_QWORDS | STR_FUNC_EXPAND | STR_FUNC_LIST
1435
+ STR_SSYM = STR_FUNC_SYMBOL
1436
+ STR_DSYM = STR_FUNC_SYMBOL | STR_FUNC_EXPAND
1437
+
1438
+ str_func_names.merge!(STR_FUNC_ESCAPE => "STR_FUNC_ESCAPE",
1439
+ STR_FUNC_EXPAND => "STR_FUNC_EXPAND",
1440
+ STR_FUNC_REGEXP => "STR_FUNC_REGEXP",
1441
+ STR_FUNC_QWORDS => "STR_FUNC_QWORDS",
1442
+ STR_FUNC_SYMBOL => "STR_FUNC_SYMBOL",
1443
+ STR_FUNC_INDENT => "STR_FUNC_INDENT",
1444
+ STR_FUNC_LABEL => "STR_FUNC_LABEL",
1445
+ STR_FUNC_LIST => "STR_FUNC_LIST",
1446
+ STR_FUNC_TERM => "STR_FUNC_TERM",
1447
+ STR_FUNC_ICNTNT => "STR_FUNC_ICNTNT",
1448
+ STR_SQUOTE => "STR_SQUOTE")
1449
+ end
1450
+
1451
+ include Values
1452
+ end
1453
+
1454
+ include State::Values
1455
+ end
1456
+
1457
+ require "ruby_lexer.rex"
1458
+
1459
+ if ENV["RP_LINENO_DEBUG"] then
1460
+ class RubyLexer
1461
+ def d o
1462
+ $stderr.puts o.inspect
1463
+ end
1464
+
1465
+ alias old_lineno= lineno=
1466
+
1467
+ def lineno= n
1468
+ self.old_lineno= n
1469
+ where = caller.first.split(/:/).first(2).join(":")
1470
+ d :lineno => [n, where, ss && ss.rest[0, 40]]
1471
+ end
1472
+ end
1473
+ end