brakeman 4.3.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1580) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +294 -107
  3. data/README.md +49 -13
  4. data/bin/brakeman +2 -0
  5. data/bundle/load.rb +14 -14
  6. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/CHANGES.txt +0 -0
  7. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/MIT-LICENSE +0 -0
  8. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/README.txt +0 -0
  9. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/erubis +0 -0
  10. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/erubis-run.rb +0 -0
  11. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/contrib/inline-require +0 -0
  12. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis.rb +0 -0
  13. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/context.rb +0 -0
  14. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/converter.rb +0 -0
  15. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine.rb +0 -0
  16. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +0 -0
  17. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +0 -0
  18. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +0 -0
  19. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +0 -0
  20. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +0 -0
  21. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +0 -0
  22. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +0 -0
  23. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +0 -0
  24. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +0 -0
  25. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +0 -0
  26. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/enhancer.rb +0 -0
  27. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/error.rb +0 -0
  28. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/evaluator.rb +0 -0
  29. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/generator.rb +0 -0
  30. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helper.rb +0 -0
  31. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +0 -0
  32. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +0 -0
  33. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/local-setting.rb +0 -0
  34. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/main.rb +0 -0
  35. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +0 -0
  36. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/tiny.rb +0 -0
  37. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/lib/erubis/util.rb +0 -0
  38. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/erubis-2.7.0/setup.rb +0 -0
  39. data/bundle/ruby/2.7.0/gems/haml-5.2.1/CHANGELOG.md +1497 -0
  40. data/bundle/ruby/2.7.0/gems/haml-5.2.1/FAQ.md +147 -0
  41. data/bundle/ruby/2.7.0/gems/haml-5.2.1/Gemfile +16 -0
  42. data/bundle/ruby/2.7.0/gems/haml-5.2.1/MIT-LICENSE +20 -0
  43. data/bundle/ruby/2.7.0/gems/haml-5.2.1/README.md +210 -0
  44. data/bundle/ruby/2.7.0/gems/haml-5.2.1/REFERENCE.md +1373 -0
  45. data/bundle/ruby/2.7.0/gems/haml-5.2.1/TODO +24 -0
  46. data/bundle/ruby/2.7.0/gems/haml-5.2.1/haml.gemspec +45 -0
  47. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml.rb +25 -0
  48. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_builder.rb +164 -0
  49. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_compiler.rb +235 -0
  50. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/attribute_parser.rb +150 -0
  51. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/buffer.rb +238 -0
  52. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/compiler.rb +330 -0
  53. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/engine.rb +238 -0
  54. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/error.rb +65 -0
  55. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/escapable.rb +77 -0
  56. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/exec.rb +347 -0
  57. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/filters.rb +399 -0
  58. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/generator.rb +42 -0
  59. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers.rb +709 -0
  60. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/action_view_extensions.rb +60 -0
  61. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/action_view_mods.rb +132 -0
  62. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/action_view_xss_mods.rb +60 -0
  63. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/safe_erubi_template.rb +20 -0
  64. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/safe_erubis_template.rb +33 -0
  65. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/helpers/xss_mods.rb +114 -0
  66. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/options.rb +273 -0
  67. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/parser.rb +856 -0
  68. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/plugin.rb +37 -0
  69. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/railtie.rb +48 -0
  70. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/sass_rails_filter.rb +47 -0
  71. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/template.rb +39 -0
  72. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/template/options.rb +27 -0
  73. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/temple_engine.rb +123 -0
  74. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/temple_line_counter.rb +30 -0
  75. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/util.rb +258 -0
  76. data/bundle/ruby/2.7.0/gems/haml-5.2.1/lib/haml/version.rb +5 -0
  77. data/bundle/ruby/2.7.0/gems/haml-5.2.1/yard/default/fulldoc/html/css/common.sass +15 -0
  78. data/bundle/ruby/2.7.0/gems/haml-5.2.1/yard/default/layout/html/footer.erb +12 -0
  79. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/AUTHORS +0 -0
  80. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/COPYING +0 -0
  81. data/bundle/ruby/2.7.0/gems/highline-2.0.3/Changelog.md +620 -0
  82. data/bundle/ruby/2.7.0/gems/highline-2.0.3/Gemfile +22 -0
  83. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/LICENSE +0 -0
  84. data/bundle/ruby/2.7.0/gems/highline-2.0.3/README.md +202 -0
  85. data/bundle/ruby/{2.5.0/gems/highline-1.7.10 → 2.7.0/gems/highline-2.0.3}/TODO +0 -0
  86. data/bundle/ruby/2.7.0/gems/highline-2.0.3/appveyor.yml +37 -0
  87. data/bundle/ruby/2.7.0/gems/highline-2.0.3/highline.gemspec +35 -0
  88. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline.rb +650 -0
  89. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/builtin_styles.rb +129 -0
  90. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/color_scheme.rb +151 -0
  91. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/compatibility.rb +23 -0
  92. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/custom_errors.rb +57 -0
  93. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/import.rb +48 -0
  94. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/io_console_compatible.rb +37 -0
  95. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list.rb +177 -0
  96. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list_renderer.rb +261 -0
  97. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu.rb +576 -0
  98. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu/item.rb +32 -0
  99. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/paginator.rb +52 -0
  100. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question.rb +630 -0
  101. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question/answer_converter.rb +103 -0
  102. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question_asker.rb +150 -0
  103. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/simulate.rb +59 -0
  104. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/statement.rb +88 -0
  105. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/string.rb +36 -0
  106. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/string_extensions.rb +130 -0
  107. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/style.rb +325 -0
  108. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/template_renderer.rb +62 -0
  109. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal.rb +190 -0
  110. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/io_console.rb +36 -0
  111. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/ncurses.rb +38 -0
  112. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/unix_stty.rb +51 -0
  113. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/version.rb +6 -0
  114. data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/wrapper.rb +53 -0
  115. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/Gemfile +6 -0
  116. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/LICENSE.txt +22 -0
  117. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/NEWS.md +141 -0
  118. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/README.md +60 -0
  119. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/attlistdecl.rb +63 -0
  120. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/attribute.rb +205 -0
  121. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/cdata.rb +68 -0
  122. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/child.rb +97 -0
  123. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/comment.rb +80 -0
  124. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/doctype.rb +287 -0
  125. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/document.rb +291 -0
  126. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/attlistdecl.rb +11 -0
  127. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/dtd.rb +47 -0
  128. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/elementdecl.rb +18 -0
  129. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/entitydecl.rb +57 -0
  130. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/dtd/notationdecl.rb +40 -0
  131. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/element.rb +1269 -0
  132. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/encoding.rb +51 -0
  133. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/entity.rb +171 -0
  134. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/default.rb +116 -0
  135. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/pretty.rb +142 -0
  136. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/formatters/transitive.rb +58 -0
  137. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/functions.rb +447 -0
  138. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/instruction.rb +79 -0
  139. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/light/node.rb +196 -0
  140. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/namespace.rb +59 -0
  141. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/node.rb +76 -0
  142. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/output.rb +30 -0
  143. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parent.rb +166 -0
  144. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parseexception.rb +52 -0
  145. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/baseparser.rb +594 -0
  146. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/lightparser.rb +59 -0
  147. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/pullparser.rb +197 -0
  148. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/sax2parser.rb +273 -0
  149. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/streamparser.rb +61 -0
  150. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/treeparser.rb +101 -0
  151. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/ultralightparser.rb +57 -0
  152. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/parsers/xpathparser.rb +675 -0
  153. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/quickpath.rb +266 -0
  154. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/rexml.rb +32 -0
  155. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/sax2listener.rb +98 -0
  156. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/security.rb +28 -0
  157. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/source.rb +298 -0
  158. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/streamlistener.rb +93 -0
  159. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/text.rb +424 -0
  160. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/undefinednamespaceexception.rb +9 -0
  161. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/relaxng.rb +539 -0
  162. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/validation.rb +144 -0
  163. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/validation/validationexception.rb +10 -0
  164. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xmldecl.rb +130 -0
  165. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xmltokens.rb +85 -0
  166. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xpath.rb +81 -0
  167. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/lib/rexml/xpath_parser.rb +968 -0
  168. data/bundle/ruby/2.7.0/gems/rexml-3.2.4/rexml.gemspec +84 -0
  169. data/bundle/ruby/2.7.0/gems/ruby2ruby-2.4.4/History.rdoc +435 -0
  170. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/Manifest.txt +0 -0
  171. data/bundle/ruby/{2.5.0/gems/ruby2ruby-2.4.1 → 2.7.0/gems/ruby2ruby-2.4.4}/README.rdoc +0 -0
  172. data/bundle/ruby/2.7.0/gems/ruby2ruby-2.4.4/lib/ruby2ruby.rb +1309 -0
  173. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/History.rdoc +1162 -0
  174. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/Manifest.txt +39 -0
  175. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/README.rdoc +109 -0
  176. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/compare/normalize.rb +213 -0
  177. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/debugging.md +57 -0
  178. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/rp_extensions.rb +74 -0
  179. data/bundle/ruby/{2.5.0/gems/ruby_parser-3.11.0 → 2.7.0/gems/ruby_parser-3.15.1}/lib/rp_stringscanner.rb +0 -0
  180. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.rb +7062 -0
  181. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby20_parser.y +2605 -0
  182. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby21_parser.rb +7140 -0
  183. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby21_parser.y +2624 -0
  184. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby22_parser.rb +7160 -0
  185. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby22_parser.y +2633 -0
  186. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby23_parser.rb +7175 -0
  187. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby23_parser.y +2635 -0
  188. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby24_parser.rb +7204 -0
  189. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby24_parser.y +2643 -0
  190. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby25_parser.rb +7204 -0
  191. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby25_parser.y +2643 -0
  192. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.rb +7224 -0
  193. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby26_parser.y +2657 -0
  194. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.rb +7224 -0
  195. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby27_parser.y +2657 -0
  196. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rb +1473 -0
  197. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex +178 -0
  198. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_lexer.rex.rb +363 -0
  199. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser.rb +94 -0
  200. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser.yy +2764 -0
  201. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/lib/ruby_parser_extras.rb +1631 -0
  202. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/munge.rb +222 -0
  203. data/bundle/ruby/2.7.0/gems/ruby_parser-3.15.1/tools/ripper.rb +39 -0
  204. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/History.rdoc +6 -0
  205. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/Manifest.txt +19 -0
  206. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/README.rdoc +54 -0
  207. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy.rb +5 -0
  208. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby18_parser.rb +5794 -0
  209. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby18_parser.y +1909 -0
  210. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby19_parser.rb +6186 -0
  211. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby19_parser.y +2117 -0
  212. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rb +1412 -0
  213. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rex +179 -0
  214. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rex.rb +323 -0
  215. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb +30 -0
  216. data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser_extras.rb +1388 -0
  217. data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/CHANGES.md +154 -0
  218. data/bundle/ruby/{2.5.0/gems/safe_yaml-1.0.4 → 2.7.0/gems/safe_yaml-1.0.5}/Gemfile +0 -0
  219. 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
  220. 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
  221. 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
  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.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/deep.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/libyaml_checker.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/load.rb +0 -0
  226. data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb +37 -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/hexadecimal.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/parse/sexagesimal.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_handler.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/psych_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/resolver.rb +0 -0
  232. 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
  233. data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +39 -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_hack.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_node_monkeypatch.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/syck_resolver.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.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_boolean.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_date.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_float.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_integer.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_nil.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/to_symbol.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/transform/transformation_map.rb +0 -0
  245. data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb +3 -0
  246. 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
  247. 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
  248. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/History.rdoc +427 -0
  249. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/Manifest.txt +15 -0
  250. 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
  251. 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
  252. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/pt_testcase.rb +3128 -0
  253. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/sexp.rb +381 -0
  254. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/sexp_matcher.rb +1100 -0
  255. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/sexp_processor.rb +754 -0
  256. data/bundle/ruby/2.7.0/gems/sexp_processor-4.15.2/lib/strict_sexp.rb +126 -0
  257. 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
  258. data/bundle/ruby/2.7.0/gems/slim-4.1.0/CHANGES +460 -0
  259. data/bundle/ruby/2.7.0/gems/slim-4.1.0/Gemfile +70 -0
  260. data/bundle/ruby/2.7.0/gems/slim-4.1.0/LICENSE +21 -0
  261. data/bundle/ruby/2.7.0/gems/slim-4.1.0/README.jp.md +1289 -0
  262. data/bundle/ruby/2.7.0/gems/slim-4.1.0/README.md +1290 -0
  263. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim.rb +0 -0
  264. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/code_attributes.rb +0 -0
  265. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/command.rb +128 -0
  266. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/controls.rb +0 -0
  267. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/do_inserter.rb +0 -0
  268. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/embedded.rb +248 -0
  269. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/end_inserter.rb +0 -0
  270. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/engine.rb +39 -0
  271. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/erb_converter.rb +0 -0
  272. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/filter.rb +30 -0
  273. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/grammar.rb +23 -0
  274. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/include.rb +0 -0
  275. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/interpolation.rb +0 -0
  276. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less.rb +0 -0
  277. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/logic_less/context.rb +127 -0
  278. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/logic_less/filter.rb +0 -0
  279. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/parser.rb +548 -0
  280. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart.rb +0 -0
  281. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/escaper.rb +0 -0
  282. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/smart/filter.rb +0 -0
  283. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/smart/parser.rb +34 -0
  284. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/splat/builder.rb +107 -0
  285. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/splat/filter.rb +0 -0
  286. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/template.rb +0 -0
  287. data/bundle/ruby/{2.5.0/gems/slim-3.0.7 → 2.7.0/gems/slim-4.1.0}/lib/slim/translator.rb +0 -0
  288. data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/version.rb +5 -0
  289. data/bundle/ruby/2.7.0/gems/slim-4.1.0/slim.gemspec +24 -0
  290. data/bundle/ruby/2.7.0/gems/temple-0.8.2/CHANGES +260 -0
  291. data/bundle/ruby/2.7.0/gems/temple-0.8.2/EXPRESSIONS.md +262 -0
  292. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/Gemfile +0 -0
  293. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/LICENSE +0 -0
  294. data/bundle/ruby/2.7.0/gems/temple-0.8.2/README.md +267 -0
  295. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple.rb +67 -0
  296. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/engine.rb +0 -0
  297. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/engine.rb +0 -0
  298. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/parser.rb +0 -0
  299. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/template.rb +0 -0
  300. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/erb/trimming.rb +0 -0
  301. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/exceptions.rb +0 -0
  302. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filter.rb +0 -0
  303. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/code_merger.rb +0 -0
  304. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/control_flow.rb +0 -0
  305. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/dynamic_inliner.rb +0 -0
  306. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/encoding.rb +0 -0
  307. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/eraser.rb +0 -0
  308. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/escapable.rb +0 -0
  309. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/multi_flattener.rb +0 -0
  310. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/remove_bom.rb +0 -0
  311. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/static_analyzer.rb +30 -0
  312. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/static_merger.rb +0 -0
  313. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/string_splitter.rb +130 -0
  314. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/filters/validator.rb +0 -0
  315. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generator.rb +0 -0
  316. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/array.rb +0 -0
  317. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/array_buffer.rb +0 -0
  318. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/erb.rb +0 -0
  319. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/rails_output_buffer.rb +0 -0
  320. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/generators/string_buffer.rb +0 -0
  321. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/grammar.rb +0 -0
  322. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_merger.rb +0 -0
  323. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_remover.rb +0 -0
  324. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/attribute_sorter.rb +0 -0
  325. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/dispatcher.rb +0 -0
  326. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/fast.rb +0 -0
  327. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/filter.rb +0 -0
  328. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/pretty.rb +0 -0
  329. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/html/safe.rb +0 -0
  330. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/map.rb +0 -0
  331. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/mixins/dispatcher.rb +161 -0
  332. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/engine_dsl.rb +0 -0
  333. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/grammar_dsl.rb +0 -0
  334. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/options.rb +0 -0
  335. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/mixins/template.rb +0 -0
  336. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/parser.rb +0 -0
  337. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/static_analyzer.rb +77 -0
  338. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates.rb +0 -0
  339. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/templates/rails.rb +26 -0
  340. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/templates/tilt.rb +0 -0
  341. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/lib/temple/utils.rb +0 -0
  342. data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/version.rb +3 -0
  343. data/bundle/ruby/{2.5.0/gems/temple-0.7.7 → 2.7.0/gems/temple-0.8.2}/temple.gemspec +0 -0
  344. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Gemfile +0 -0
  345. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/History.rdoc +0 -0
  346. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/LICENSE.txt +0 -0
  347. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Manifest +0 -0
  348. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/README.rdoc +0 -0
  349. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/Todo.rdoc +0 -0
  350. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table.rb +0 -0
  351. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/cell.rb +0 -0
  352. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/import.rb +0 -0
  353. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/row.rb +0 -0
  354. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb +0 -0
  355. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/style.rb +0 -0
  356. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/table.rb +0 -0
  357. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/table_helper.rb +0 -0
  358. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/lib/terminal-table/version.rb +0 -0
  359. data/bundle/ruby/{2.5.0 → 2.7.0}/gems/terminal-table-1.8.0/terminal-table.gemspec +0 -0
  360. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/COPYING +0 -0
  361. data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt.rb +166 -0
  362. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/asciidoc.rb +0 -0
  363. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/babel.rb +0 -0
  364. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/bluecloth.rb +0 -0
  365. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/builder.rb +0 -0
  366. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/coffee.rb +0 -0
  367. data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/commonmarker.rb +78 -0
  368. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/creole.rb +0 -0
  369. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/csv.rb +0 -0
  370. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/dummy.rb +0 -0
  371. data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/erb.rb +63 -0
  372. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erubi.rb +0 -0
  373. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/erubis.rb +0 -0
  374. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/etanni.rb +0 -0
  375. data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/haml.rb +86 -0
  376. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/kramdown.rb +0 -0
  377. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/less.rb +0 -0
  378. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/liquid.rb +0 -0
  379. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/livescript.rb +0 -0
  380. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/mapping.rb +0 -0
  381. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/markaby.rb +0 -0
  382. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/maruku.rb +0 -0
  383. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/nokogiri.rb +0 -0
  384. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/pandoc.rb +0 -0
  385. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/plain.rb +0 -0
  386. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/prawn.rb +0 -0
  387. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/radius.rb +0 -0
  388. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rdiscount.rb +0 -0
  389. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rdoc.rb +0 -0
  390. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/redcarpet.rb +0 -0
  391. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/redcloth.rb +0 -0
  392. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/rst-pandoc.rb +0 -0
  393. data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/sass.rb +52 -0
  394. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/sigil.rb +0 -0
  395. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/string.rb +0 -0
  396. data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/template.rb +297 -0
  397. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/typescript.rb +0 -0
  398. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/wikicloth.rb +0 -0
  399. data/bundle/ruby/{2.5.0/gems/tilt-2.0.8 → 2.7.0/gems/tilt-2.0.10}/lib/tilt/yajl.rb +0 -0
  400. data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/CHANGELOG.md +133 -0
  401. data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/MIT-LICENSE.txt +22 -0
  402. data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/README.md +124 -0
  403. data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/data/display_width.marshal.gz +0 -0
  404. data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/lib/unicode/display_width.rb +51 -0
  405. data/bundle/ruby/2.7.0/gems/unicode-display_width-1.7.0/lib/unicode/display_width/constants.rb +8 -0
  406. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.0 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/index.rb +0 -0
  407. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.0 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/no_string_ext.rb +0 -0
  408. data/bundle/ruby/{2.5.0/gems/unicode-display_width-1.4.0 → 2.7.0/gems/unicode-display_width-1.7.0}/lib/unicode/display_width/string_ext.rb +0 -0
  409. data/lib/brakeman.rb +42 -3
  410. data/lib/brakeman/app_tree.rb +81 -22
  411. data/lib/brakeman/call_index.rb +61 -19
  412. data/lib/brakeman/checks.rb +23 -15
  413. data/lib/brakeman/checks/base_check.rb +93 -82
  414. data/lib/brakeman/checks/check_basic_auth.rb +2 -0
  415. data/lib/brakeman/checks/check_basic_auth_timing_attack.rb +1 -1
  416. data/lib/brakeman/checks/check_content_tag.rb +16 -5
  417. data/lib/brakeman/checks/check_cookie_serialization.rb +22 -0
  418. data/lib/brakeman/checks/check_create_with.rb +1 -1
  419. data/lib/brakeman/checks/check_cross_site_scripting.rb +18 -13
  420. data/lib/brakeman/checks/check_csrf_token_forgery_cve.rb +28 -0
  421. data/lib/brakeman/checks/check_default_routes.rb +8 -3
  422. data/lib/brakeman/checks/check_deserialize.rb +71 -2
  423. data/lib/brakeman/checks/check_detailed_exceptions.rb +1 -1
  424. data/lib/brakeman/checks/check_digest_dos.rb +4 -4
  425. data/lib/brakeman/checks/check_dynamic_finders.rb +1 -1
  426. data/lib/brakeman/checks/check_escape_function.rb +1 -1
  427. data/lib/brakeman/checks/check_evaluation.rb +0 -1
  428. data/lib/brakeman/checks/check_execute.rb +89 -9
  429. data/lib/brakeman/checks/check_file_access.rb +19 -3
  430. data/lib/brakeman/checks/check_file_disclosure.rb +1 -1
  431. data/lib/brakeman/checks/check_filter_skipping.rb +1 -1
  432. data/lib/brakeman/checks/check_force_ssl.rb +27 -0
  433. data/lib/brakeman/checks/check_forgery_setting.rb +3 -3
  434. data/lib/brakeman/checks/check_header_dos.rb +5 -5
  435. data/lib/brakeman/checks/check_i18n_xss.rb +5 -5
  436. data/lib/brakeman/checks/check_jruby_xml.rb +3 -3
  437. data/lib/brakeman/checks/check_json_encoding.rb +3 -3
  438. data/lib/brakeman/checks/check_json_entity_escape.rb +38 -0
  439. data/lib/brakeman/checks/check_json_parsing.rb +15 -13
  440. data/lib/brakeman/checks/check_link_to.rb +4 -4
  441. data/lib/brakeman/checks/check_link_to_href.rb +9 -6
  442. data/lib/brakeman/checks/check_mail_to.rb +4 -4
  443. data/lib/brakeman/checks/check_mass_assignment.rb +34 -4
  444. data/lib/brakeman/checks/check_mime_type_dos.rb +3 -3
  445. data/lib/brakeman/checks/check_model_attr_accessible.rb +2 -2
  446. data/lib/brakeman/checks/check_model_attributes.rb +16 -54
  447. data/lib/brakeman/checks/check_model_serialize.rb +2 -2
  448. data/lib/brakeman/checks/check_nested_attributes.rb +3 -3
  449. data/lib/brakeman/checks/check_nested_attributes_bypass.rb +5 -5
  450. data/lib/brakeman/checks/check_number_to_currency.rb +4 -4
  451. data/lib/brakeman/checks/check_page_caching_cve.rb +37 -0
  452. data/lib/brakeman/checks/check_permit_attributes.rb +1 -1
  453. data/lib/brakeman/checks/check_quote_table_name.rb +2 -2
  454. data/lib/brakeman/checks/check_regex_dos.rb +2 -2
  455. data/lib/brakeman/checks/check_render.rb +2 -2
  456. data/lib/brakeman/checks/check_render_dos.rb +1 -1
  457. data/lib/brakeman/checks/check_render_inline.rb +1 -1
  458. data/lib/brakeman/checks/check_response_splitting.rb +1 -1
  459. data/lib/brakeman/checks/check_reverse_tabnabbing.rb +58 -0
  460. data/lib/brakeman/checks/check_route_dos.rb +1 -1
  461. data/lib/brakeman/checks/check_safe_buffer_manipulation.rb +1 -1
  462. data/lib/brakeman/checks/check_sanitize_methods.rb +4 -4
  463. data/lib/brakeman/checks/check_secrets.rb +2 -2
  464. data/lib/brakeman/checks/check_select_tag.rb +1 -1
  465. data/lib/brakeman/checks/check_select_vulnerability.rb +1 -1
  466. data/lib/brakeman/checks/check_send.rb +0 -1
  467. data/lib/brakeman/checks/check_session_manipulation.rb +1 -2
  468. data/lib/brakeman/checks/check_session_settings.rb +16 -13
  469. data/lib/brakeman/checks/check_simple_format.rb +7 -2
  470. data/lib/brakeman/checks/check_single_quotes.rb +14 -10
  471. data/lib/brakeman/checks/check_skip_before_filter.rb +5 -5
  472. data/lib/brakeman/checks/check_sprockets_path_traversal.rb +39 -0
  473. data/lib/brakeman/checks/check_sql.rb +47 -49
  474. data/lib/brakeman/checks/check_sql_cves.rb +2 -2
  475. data/lib/brakeman/checks/check_strip_tags.rb +10 -8
  476. data/lib/brakeman/checks/check_symbol_dos.rb +1 -1
  477. data/lib/brakeman/checks/check_symbol_dos_cve.rb +1 -1
  478. data/lib/brakeman/checks/check_template_injection.rb +32 -0
  479. data/lib/brakeman/checks/check_translate_bug.rb +7 -7
  480. data/lib/brakeman/checks/check_unsafe_reflection.rb +1 -1
  481. data/lib/brakeman/checks/check_unsafe_reflection_methods.rb +68 -0
  482. data/lib/brakeman/checks/check_unscoped_find.rb +1 -1
  483. data/lib/brakeman/checks/check_validation_regex.rb +2 -2
  484. data/lib/brakeman/checks/check_verb_confusion.rb +75 -0
  485. data/lib/brakeman/checks/check_weak_hash.rb +18 -19
  486. data/lib/brakeman/checks/check_xml_dos.rb +3 -3
  487. data/lib/brakeman/checks/check_yaml_parsing.rb +11 -19
  488. data/lib/brakeman/commandline.rb +25 -1
  489. data/lib/brakeman/differ.rb +16 -33
  490. data/lib/brakeman/file_parser.rb +25 -21
  491. data/lib/brakeman/file_path.rb +85 -0
  492. data/lib/brakeman/format/style.css +8 -0
  493. data/lib/brakeman/messages.rb +220 -0
  494. data/lib/brakeman/options.rb +45 -1
  495. data/lib/brakeman/parsers/haml_embedded.rb +44 -0
  496. data/lib/brakeman/parsers/slim_embedded.rb +44 -0
  497. data/lib/brakeman/parsers/template_parser.rb +11 -12
  498. data/lib/brakeman/processor.rb +5 -6
  499. data/lib/brakeman/processors/alias_processor.rb +78 -14
  500. data/lib/brakeman/processors/base_processor.rb +10 -7
  501. data/lib/brakeman/processors/config_processor.rb +4 -1
  502. data/lib/brakeman/processors/controller_alias_processor.rb +10 -7
  503. data/lib/brakeman/processors/controller_processor.rb +10 -14
  504. data/lib/brakeman/processors/gem_processor.rb +38 -2
  505. data/lib/brakeman/processors/haml_template_processor.rb +99 -123
  506. data/lib/brakeman/processors/lib/call_conversion_helper.rb +11 -5
  507. data/lib/brakeman/processors/lib/file_type_detector.rb +64 -0
  508. data/lib/brakeman/processors/lib/find_all_calls.rb +57 -18
  509. data/lib/brakeman/processors/lib/find_call.rb +3 -64
  510. data/lib/brakeman/processors/lib/module_helper.rb +8 -8
  511. data/lib/brakeman/processors/lib/processor_helper.rb +3 -3
  512. data/lib/brakeman/processors/lib/rails2_config_processor.rb +4 -4
  513. data/lib/brakeman/processors/lib/rails2_route_processor.rb +2 -2
  514. data/lib/brakeman/processors/lib/rails3_config_processor.rb +19 -19
  515. data/lib/brakeman/processors/lib/rails3_route_processor.rb +2 -4
  516. data/lib/brakeman/processors/lib/rails4_config_processor.rb +18 -0
  517. data/lib/brakeman/processors/lib/render_helper.rb +10 -3
  518. data/lib/brakeman/processors/lib/render_path.rb +32 -0
  519. data/lib/brakeman/processors/library_processor.rb +6 -6
  520. data/lib/brakeman/processors/model_processor.rb +4 -5
  521. data/lib/brakeman/processors/output_processor.rb +6 -1
  522. data/lib/brakeman/processors/slim_template_processor.rb +16 -0
  523. data/lib/brakeman/processors/template_alias_processor.rb +36 -4
  524. data/lib/brakeman/processors/template_processor.rb +14 -10
  525. data/lib/brakeman/report.rb +22 -4
  526. data/lib/brakeman/report/ignore/config.rb +12 -5
  527. data/lib/brakeman/report/ignore/interactive.rb +2 -2
  528. data/lib/brakeman/report/pager.rb +1 -0
  529. data/lib/brakeman/report/report_base.rb +64 -165
  530. data/lib/brakeman/report/report_codeclimate.rb +3 -3
  531. data/lib/brakeman/report/report_csv.rb +38 -44
  532. data/lib/brakeman/report/report_hash.rb +1 -1
  533. data/lib/brakeman/report/report_html.rb +36 -33
  534. data/lib/brakeman/report/report_json.rb +1 -3
  535. data/lib/brakeman/report/report_junit.rb +104 -0
  536. data/lib/brakeman/report/report_markdown.rb +13 -7
  537. data/lib/brakeman/report/report_sarif.rb +114 -0
  538. data/lib/brakeman/report/report_sonar.rb +38 -0
  539. data/lib/brakeman/report/report_table.rb +173 -0
  540. data/lib/brakeman/report/report_tabs.rb +4 -2
  541. data/lib/brakeman/report/report_text.rb +59 -23
  542. data/lib/brakeman/rescanner.rb +18 -15
  543. data/lib/brakeman/scanner.rb +74 -35
  544. data/lib/brakeman/tracker.rb +44 -8
  545. data/lib/brakeman/tracker/collection.rb +4 -3
  546. data/lib/brakeman/tracker/config.rb +119 -47
  547. data/lib/brakeman/tracker/constants.rb +10 -8
  548. data/lib/brakeman/tracker/controller.rb +1 -1
  549. data/lib/brakeman/util.rb +45 -168
  550. data/lib/brakeman/version.rb +1 -1
  551. data/lib/brakeman/warning.rb +46 -19
  552. data/lib/brakeman/warning_codes.rb +14 -0
  553. data/lib/ruby_parser/bm_sexp.rb +16 -11
  554. data/lib/ruby_parser/bm_sexp_processor.rb +1 -0
  555. metadata +437 -1218
  556. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/benchmark/Makefile +0 -6
  557. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/benchmark/bench.rb +0 -313
  558. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/benchmark/bench_context.yaml +0 -141
  559. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/benchmark/templates/_footer.html +0 -4
  560. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/benchmark/templates/_header.html +0 -52
  561. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/benchmark/templates/bench_erb.rhtml +0 -29
  562. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/benchmark/templates/bench_erubis.rhtml +0 -29
  563. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/benchmark/templates/bench_eruby.rhtml +0 -29
  564. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/bin/erubis +0 -10
  565. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/ActionView.html +0 -105
  566. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/ActionView/TemplateHandlers/ErubisHandler.html +0 -209
  567. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/ERB.html +0 -101
  568. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis.html +0 -362
  569. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEnhancer.html +0 -175
  570. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayBufferEruby.html +0 -120
  571. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEnhancer.html +0 -174
  572. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ArrayEruby.html +0 -120
  573. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic.html +0 -112
  574. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Converter.html +0 -327
  575. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Basic/Engine.html +0 -130
  576. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEnhancer.html +0 -215
  577. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/BiPatternEruby.html +0 -120
  578. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CGenerator.html +0 -386
  579. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CommandOptionError.html +0 -113
  580. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Context.html +0 -344
  581. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Converter.html +0 -283
  582. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/CppGenerator.html +0 -382
  583. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEnhancer.html +0 -150
  584. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/DeleteIndentEruby.html +0 -120
  585. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ec.html +0 -126
  586. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ecpp.html +0 -126
  587. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejava.html +0 -126
  588. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ejavascript.html +0 -126
  589. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Engine.html +0 -305
  590. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eperl.html +0 -126
  591. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Ephp.html +0 -126
  592. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEnhancer.html +0 -175
  593. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErboutEruby.html +0 -120
  594. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/ErubisError.html +0 -117
  595. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Eruby.html +0 -132
  596. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapeEnhancer.html +0 -165
  597. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEc.html +0 -120
  598. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEcpp.html +0 -120
  599. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjava.html +0 -120
  600. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEjavascript.html +0 -120
  601. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEperl.html +0 -120
  602. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEphp.html +0 -120
  603. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEruby.html +0 -127
  604. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/EscapedEscheme.html +0 -120
  605. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Escheme.html +0 -126
  606. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Evaluator.html +0 -212
  607. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/FastEruby.html +0 -131
  608. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Generator.html +0 -416
  609. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEnhancer.html +0 -267
  610. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/HeaderFooterEruby.html +0 -120
  611. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers.html +0 -116
  612. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsFormHelper.html +0 -787
  613. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper.html +0 -349
  614. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Helpers/RailsHelper/TemplateConverter.html +0 -213
  615. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEnhancer.html +0 -305
  616. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/InterpolationEruby.html +0 -120
  617. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavaGenerator.html +0 -359
  618. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/JavascriptGenerator.html +0 -386
  619. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/Main.html +0 -341
  620. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEnhancer.html +0 -249
  621. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoCodeEruby.html +0 -120
  622. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEnhancer.html +0 -159
  623. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NoTextEruby.html +0 -120
  624. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/NotSupportedError.html +0 -119
  625. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedEruby.html +0 -163
  626. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedGenerator.html +0 -439
  627. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/OptimizedXmlEruby.html +0 -163
  628. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI.html +0 -125
  629. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Converter.html +0 -266
  630. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ec.html +0 -166
  631. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ecpp.html +0 -166
  632. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejava.html +0 -166
  633. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ejavascript.html +0 -166
  634. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Engine.html +0 -122
  635. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eperl.html +0 -166
  636. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Ephp.html +0 -166
  637. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Eruby.html +0 -155
  638. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/Escheme.html +0 -166
  639. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PI/TinyEruby.html +0 -293
  640. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEnhancer.html +0 -163
  641. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PercentLineEruby.html +0 -120
  642. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PerlGenerator.html +0 -344
  643. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PhpGenerator.html +0 -350
  644. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEnhancer.html +0 -210
  645. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrefixedLineEruby.html +0 -120
  646. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingEruby.html +0 -183
  647. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PreprocessingHelper.html +0 -212
  648. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEnhancer.html +0 -212
  649. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintEnabledEruby.html +0 -120
  650. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEnhancer.html +0 -244
  651. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutEruby.html +0 -120
  652. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/PrintOutSimplifiedEruby.html +0 -121
  653. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyEvaluator.html +0 -227
  654. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/RubyGenerator.html +0 -328
  655. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SchemeGenerator.html +0 -382
  656. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifiedEruby.html +0 -120
  657. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/SimplifyEnhancer.html +0 -191
  658. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEnhancer.html +0 -173
  659. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutEruby.html +0 -120
  660. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StdoutSimplifiedEruby.html +0 -121
  661. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEnhancer.html +0 -174
  662. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringBufferEruby.html +0 -120
  663. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/StringIOEruby.html +0 -120
  664. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/TinyEruby.html +0 -298
  665. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlEruby.html +0 -130
  666. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Erubis/XmlHelper.html +0 -255
  667. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/classes/Kernel.html +0 -155
  668. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/created.rid +0 -1
  669. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/README_txt.html +0 -247
  670. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/context_rb.html +0 -107
  671. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/converter_rb.html +0 -114
  672. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ec_rb.html +0 -115
  673. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ecpp_rb.html +0 -115
  674. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejava_rb.html +0 -115
  675. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ejavascript_rb.html +0 -115
  676. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/enhanced_rb.html +0 -115
  677. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eperl_rb.html +0 -115
  678. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/ephp_rb.html +0 -115
  679. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/eruby_rb.html +0 -115
  680. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/escheme_rb.html +0 -115
  681. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine/optimized_rb.html +0 -114
  682. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/engine_rb.html +0 -117
  683. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/enhancer_rb.html +0 -107
  684. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/error_rb.html +0 -107
  685. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/evaluator_rb.html +0 -115
  686. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/generator_rb.html +0 -114
  687. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/helper_rb.html +0 -107
  688. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_form_helper_rb.html +0 -107
  689. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/helpers/rails_helper_rb.html +0 -116
  690. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/local-setting_rb.html +0 -107
  691. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/main_rb.html +0 -129
  692. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/preprocessing_rb.html +0 -114
  693. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/tiny_rb.html +0 -107
  694. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis/util_rb.html +0 -107
  695. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/files/erubis_rb.html +0 -118
  696. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/fr_class_index.html +0 -129
  697. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/fr_file_index.html +0 -53
  698. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/fr_method_index.html +0 -265
  699. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/index.html +0 -24
  700. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc-api/rdoc-style.css +0 -208
  701. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc/docstyle.css +0 -209
  702. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/doc/users-guide.html +0 -3551
  703. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/Makefile +0 -58
  704. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ec +0 -42
  705. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ecpp +0 -33
  706. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ejava +0 -45
  707. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ejs +0 -16
  708. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.eperl +0 -16
  709. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.ephp +0 -17
  710. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.eruby +0 -15
  711. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/basic/example.escheme +0 -26
  712. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/Makefile +0 -54
  713. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/example.ec +0 -42
  714. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/example.ejava +0 -45
  715. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/example.ejs +0 -16
  716. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/example.eperl +0 -16
  717. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/example.ephp +0 -17
  718. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/example.eruby +0 -15
  719. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/examples/pi/example.escheme +0 -26
  720. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/assert-text-equal.rb +0 -44
  721. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/Example.ejava +0 -55
  722. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/array_example.result +0 -9
  723. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/arraybuffer_example.result +0 -9
  724. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/bipattern-example.rhtml +0 -4
  725. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/bipattern_example.result +0 -6
  726. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.rb +0 -10
  727. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/bufvar-example.result +0 -17
  728. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/context.rb +0 -6
  729. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/context.yaml +0 -8
  730. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/def_method.rb +0 -14
  731. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/def_method.result +0 -3
  732. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/escape_example.result +0 -9
  733. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example.ec +0 -27
  734. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example.ecpp +0 -30
  735. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example.ejs +0 -20
  736. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example.eperl +0 -18
  737. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example.ephp +0 -18
  738. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example.eruby +0 -6
  739. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example.escheme +0 -28
  740. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example1.eruby +0 -6
  741. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example1.rb +0 -17
  742. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example1.result +0 -16
  743. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example10.rb +0 -4
  744. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example10.result +0 -17
  745. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example10.xhtml +0 -14
  746. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example10_x.result +0 -17
  747. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example11.php +0 -20
  748. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example11.result +0 -23
  749. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example11.rhtml +0 -21
  750. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example11_C.result +0 -10
  751. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example11_N.result +0 -16
  752. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example11_U.result +0 -16
  753. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example11_php.result +0 -15
  754. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example1_x.result +0 -9
  755. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example2.eruby +0 -7
  756. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example2.rb +0 -10
  757. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example2.result +0 -27
  758. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example2_trim.result +0 -10
  759. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example2_x.result +0 -10
  760. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example3.eruby +0 -6
  761. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example3.rb +0 -10
  762. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example31.result +0 -22
  763. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example32.result +0 -4
  764. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example3_e.result +0 -8
  765. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example4.eruby +0 -3
  766. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example4.rb +0 -11
  767. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example4.result +0 -10
  768. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example4_x.result +0 -5
  769. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example5.eruby +0 -6
  770. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example5.rb +0 -16
  771. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example5.result +0 -7
  772. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example6.rb +0 -12
  773. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example6.result +0 -7
  774. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example7.eruby +0 -8
  775. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example71.result +0 -13
  776. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example72.result +0 -13
  777. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example8.eruby +0 -6
  778. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example8_ruby.result +0 -7
  779. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example8_yaml.result +0 -7
  780. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example9.eruby +0 -3
  781. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example9.rb +0 -8
  782. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example9.result +0 -9
  783. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example91.result +0 -5
  784. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example92.result +0 -4
  785. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_c.result +0 -32
  786. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_java.result +0 -56
  787. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_js.result +0 -22
  788. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_perl.result +0 -20
  789. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_php.result +0 -19
  790. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme.result +0 -30
  791. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/example_scheme_display.result +0 -29
  792. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.rb +0 -8
  793. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby-example.result +0 -18
  794. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rb +0 -11
  795. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.result +0 -38
  796. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/fasteruby.rhtml +0 -15
  797. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example.eruby +0 -9
  798. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rb +0 -8
  799. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter-example2.rhtml +0 -10
  800. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example.result +0 -11
  801. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/headerfooter_example2.result +0 -13
  802. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/interpolation_example.result +0 -9
  803. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.rb +0 -8
  804. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/main_program1.result +0 -6
  805. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.rb +0 -8
  806. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/main_program2.result +0 -6
  807. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/nocode-example.eruby +0 -14
  808. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/nocode-php.result +0 -20
  809. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/nocode_example.result +0 -15
  810. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/normal-eruby-test.eruby +0 -9
  811. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/normal_eruby_test.result +0 -11
  812. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.eruby +0 -14
  813. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/notext-example.php +0 -19
  814. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/notext-php.result +0 -20
  815. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/notext_example.result +0 -16
  816. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/percentline-example.rhtml +0 -6
  817. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/percentline_example.result +0 -9
  818. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rb +0 -9
  819. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline-example.rhtml +0 -6
  820. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/prefixedline_example.result +0 -9
  821. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/printenable_example.result +0 -4
  822. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.eruby +0 -3
  823. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/printenabled-example.rb +0 -8
  824. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/printstatement_example.result +0 -8
  825. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/simplify_example.result +0 -9
  826. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/stderr.log +0 -3
  827. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/stdout_exmple.result +0 -9
  828. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/stringbuffer_example.result +0 -9
  829. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/tail_260.result +0 -4
  830. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/tailnewline.rhtml +0 -3
  831. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/template1.rhtml +0 -4
  832. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/data/users-guide/template2.rhtml +0 -4
  833. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/test-engines.rb +0 -425
  834. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/test-enhancers.rb +0 -646
  835. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/test-erubis.rb +0 -887
  836. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/test-index-cgi.rb +0 -191
  837. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/test-main.rb +0 -752
  838. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/test-users-guide.rb +0 -73
  839. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/test.rb +0 -45
  840. data/bundle/ruby/2.5.0/gems/erubis-2.7.0/test/testutil.rb +0 -111
  841. data/bundle/ruby/2.5.0/gems/haml-4.0.7/CHANGELOG.md +0 -1363
  842. data/bundle/ruby/2.5.0/gems/haml-4.0.7/FAQ.md +0 -157
  843. data/bundle/ruby/2.5.0/gems/haml-4.0.7/MIT-LICENSE +0 -20
  844. data/bundle/ruby/2.5.0/gems/haml-4.0.7/README.md +0 -173
  845. data/bundle/ruby/2.5.0/gems/haml-4.0.7/REFERENCE.md +0 -1294
  846. data/bundle/ruby/2.5.0/gems/haml-4.0.7/Rakefile +0 -134
  847. data/bundle/ruby/2.5.0/gems/haml-4.0.7/bin/haml +0 -9
  848. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml.rb +0 -23
  849. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/buffer.rb +0 -345
  850. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/compiler.rb +0 -540
  851. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/engine.rb +0 -245
  852. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/error.rb +0 -61
  853. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/exec.rb +0 -329
  854. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/filters.rb +0 -404
  855. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers.rb +0 -664
  856. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/action_view_extensions.rb +0 -58
  857. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb +0 -147
  858. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/action_view_xss_mods.rb +0 -58
  859. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/safe_erubis_template.rb +0 -29
  860. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/helpers/xss_mods.rb +0 -104
  861. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/options.rb +0 -279
  862. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/parser.rb +0 -764
  863. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/railtie.rb +0 -22
  864. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/sass_rails_filter.rb +0 -33
  865. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/template.rb +0 -32
  866. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/template/options.rb +0 -16
  867. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/template/plugin.rb +0 -41
  868. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/util.rb +0 -377
  869. data/bundle/ruby/2.5.0/gems/haml-4.0.7/lib/haml/version.rb +0 -3
  870. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/engine_test.rb +0 -2013
  871. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/erb/_av_partial_1.erb +0 -12
  872. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/erb/_av_partial_2.erb +0 -8
  873. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/erb/action_view.erb +0 -62
  874. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/erb/standard.erb +0 -55
  875. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/filters_test.rb +0 -254
  876. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.0.x +0 -5
  877. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.1.x +0 -6
  878. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-3.2.x +0 -5
  879. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/gemfiles/Gemfile.rails-4.0.x +0 -5
  880. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/haml-spec/LICENSE +0 -14
  881. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/haml-spec/README.md +0 -106
  882. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/haml-spec/lua_haml_spec.lua +0 -38
  883. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/haml-spec/perl_haml_test.pl +0 -81
  884. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/haml-spec/ruby_haml_test.rb +0 -23
  885. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/haml-spec/tests.json +0 -660
  886. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/helper_test.rb +0 -583
  887. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/markaby/standard.mab +0 -52
  888. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/mocks/article.rb +0 -6
  889. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/parser_test.rb +0 -105
  890. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/content_for_layout.xhtml +0 -12
  891. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/eval_suppressed.xhtml +0 -9
  892. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/helpers.xhtml +0 -70
  893. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/helpful.xhtml +0 -10
  894. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/just_stuff.xhtml +0 -70
  895. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/list.xhtml +0 -12
  896. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/nuke_inner_whitespace.xhtml +0 -40
  897. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/nuke_outer_whitespace.xhtml +0 -148
  898. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/original_engine.xhtml +0 -20
  899. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/partial_layout.xhtml +0 -5
  900. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/partial_layout_erb.xhtml +0 -5
  901. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/partials.xhtml +0 -21
  902. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/render_layout.xhtml +0 -3
  903. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/silent_script.xhtml +0 -74
  904. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/standard.xhtml +0 -162
  905. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/tag_parsing.xhtml +0 -23
  906. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/very_basic.xhtml +0 -5
  907. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/results/whitespace_handling.xhtml +0 -90
  908. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/template_test.rb +0 -354
  909. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_av_partial_1.haml +0 -9
  910. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_av_partial_1_ugly.haml +0 -9
  911. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_av_partial_2.haml +0 -5
  912. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_av_partial_2_ugly.haml +0 -5
  913. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_layout.erb +0 -3
  914. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_layout_for_partial.haml +0 -3
  915. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_partial.haml +0 -8
  916. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_text_area.haml +0 -3
  917. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/_text_area_helper.html.haml +0 -4
  918. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/action_view.haml +0 -47
  919. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/action_view_ugly.haml +0 -47
  920. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/breakage.haml +0 -8
  921. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/content_for_layout.haml +0 -8
  922. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/eval_suppressed.haml +0 -11
  923. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/helpers.haml +0 -55
  924. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/helpful.haml +0 -11
  925. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/just_stuff.haml +0 -85
  926. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/list.haml +0 -12
  927. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/nuke_inner_whitespace.haml +0 -32
  928. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/nuke_outer_whitespace.haml +0 -144
  929. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/original_engine.haml +0 -17
  930. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/partial_layout.haml +0 -3
  931. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/partial_layout_erb.erb +0 -4
  932. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/partialize.haml +0 -1
  933. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/partials.haml +0 -12
  934. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/render_layout.haml +0 -2
  935. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/silent_script.haml +0 -45
  936. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/standard.haml +0 -43
  937. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/standard_ugly.haml +0 -43
  938. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/tag_parsing.haml +0 -21
  939. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/very_basic.haml +0 -4
  940. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/templates/whitespace_handling.haml +0 -87
  941. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/test_helper.rb +0 -81
  942. data/bundle/ruby/2.5.0/gems/haml-4.0.7/test/util_test.rb +0 -63
  943. data/bundle/ruby/2.5.0/gems/highline-1.7.10/Changelog.md +0 -421
  944. data/bundle/ruby/2.5.0/gems/highline-1.7.10/Gemfile +0 -11
  945. data/bundle/ruby/2.5.0/gems/highline-1.7.10/INSTALL +0 -59
  946. data/bundle/ruby/2.5.0/gems/highline-1.7.10/README.rdoc +0 -74
  947. data/bundle/ruby/2.5.0/gems/highline-1.7.10/Rakefile +0 -30
  948. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/ansi_colors.rb +0 -38
  949. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/asking_for_arrays.rb +0 -18
  950. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/basic_usage.rb +0 -75
  951. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/color_scheme.rb +0 -32
  952. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/get_character.rb +0 -12
  953. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/limit.rb +0 -12
  954. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/menus.rb +0 -65
  955. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/overwrite.rb +0 -19
  956. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/page_and_wrap.rb +0 -322
  957. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/password.rb +0 -7
  958. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/repeat_entry.rb +0 -21
  959. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/trapping_eof.rb +0 -22
  960. data/bundle/ruby/2.5.0/gems/highline-1.7.10/examples/using_readline.rb +0 -17
  961. data/bundle/ruby/2.5.0/gems/highline-1.7.10/highline.gemspec +0 -37
  962. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline.rb +0 -1048
  963. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/color_scheme.rb +0 -134
  964. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/compatibility.rb +0 -16
  965. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/import.rb +0 -41
  966. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/menu.rb +0 -381
  967. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/question.rb +0 -480
  968. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/simulate.rb +0 -48
  969. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/string_extensions.rb +0 -111
  970. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/style.rb +0 -192
  971. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/system_extensions.rb +0 -254
  972. data/bundle/ruby/2.5.0/gems/highline-1.7.10/lib/highline/version.rb +0 -4
  973. data/bundle/ruby/2.5.0/gems/highline-1.7.10/setup.rb +0 -1360
  974. data/bundle/ruby/2.5.0/gems/highline-1.7.10/site/highline.css +0 -65
  975. data/bundle/ruby/2.5.0/gems/highline-1.7.10/site/images/logo.png +0 -0
  976. data/bundle/ruby/2.5.0/gems/highline-1.7.10/site/index.html +0 -58
  977. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/string_methods.rb +0 -32
  978. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/tc_color_scheme.rb +0 -96
  979. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/tc_highline.rb +0 -1402
  980. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/tc_import.rb +0 -52
  981. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/tc_menu.rb +0 -439
  982. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/tc_simulator.rb +0 -33
  983. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/tc_string_extension.rb +0 -33
  984. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/tc_string_highline.rb +0 -38
  985. data/bundle/ruby/2.5.0/gems/highline-1.7.10/test/tc_style.rb +0 -578
  986. data/bundle/ruby/2.5.0/gems/ruby2ruby-2.4.1/History.rdoc +0 -413
  987. data/bundle/ruby/2.5.0/gems/ruby2ruby-2.4.1/Rakefile +0 -93
  988. data/bundle/ruby/2.5.0/gems/ruby2ruby-2.4.1/bin/r2r_show +0 -33
  989. data/bundle/ruby/2.5.0/gems/ruby2ruby-2.4.1/lib/ruby2ruby.rb +0 -1301
  990. data/bundle/ruby/2.5.0/gems/ruby2ruby-2.4.1/test/test_ruby2ruby.rb +0 -847
  991. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/History.rdoc +0 -974
  992. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/Manifest.txt +0 -36
  993. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/README.rdoc +0 -109
  994. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/Rakefile +0 -247
  995. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/bin/ruby_parse +0 -96
  996. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/bin/ruby_parse_extract_error +0 -156
  997. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/compare/normalize.rb +0 -146
  998. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/rp_extensions.rb +0 -81
  999. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby18_parser.rb +0 -5793
  1000. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby18_parser.y +0 -1908
  1001. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby19_parser.rb +0 -6185
  1002. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby19_parser.y +0 -2116
  1003. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby20_parser.rb +0 -6687
  1004. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby20_parser.y +0 -2345
  1005. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby21_parser.rb +0 -6767
  1006. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby21_parser.y +0 -2362
  1007. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby22_parser.rb +0 -6803
  1008. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby22_parser.y +0 -2376
  1009. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby23_parser.rb +0 -6818
  1010. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby23_parser.y +0 -2378
  1011. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby24_parser.rb +0 -6818
  1012. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby24_parser.y +0 -2378
  1013. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby25_parser.rb +0 -6818
  1014. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby25_parser.y +0 -2378
  1015. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_lexer.rb +0 -1346
  1016. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_lexer.rex +0 -177
  1017. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_lexer.rex.rb +0 -323
  1018. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.rb +0 -88
  1019. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser.yy +0 -2477
  1020. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/lib/ruby_parser_extras.rb +0 -1377
  1021. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/test/test_ruby_lexer.rb +0 -2899
  1022. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/test/test_ruby_parser.rb +0 -3805
  1023. data/bundle/ruby/2.5.0/gems/ruby_parser-3.11.0/test/test_ruby_parser_extras.rb +0 -226
  1024. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/CHANGES.md +0 -149
  1025. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/Rakefile +0 -26
  1026. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/bin/safe_yaml +0 -75
  1027. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb +0 -35
  1028. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb +0 -3
  1029. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.2.yaml +0 -2
  1030. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/exploit.1.9.3.yaml +0 -2
  1031. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/issue48.txt +0 -20
  1032. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/issue49.yml +0 -0
  1033. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/libyaml_checker_spec.rb +0 -69
  1034. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/psych_resolver_spec.rb +0 -10
  1035. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/resolver_specs.rb +0 -278
  1036. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/safe_yaml_spec.rb +0 -731
  1037. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/spec_helper.rb +0 -42
  1038. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/support/exploitable_back_door.rb +0 -29
  1039. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/syck_resolver_spec.rb +0 -10
  1040. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb +0 -11
  1041. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/to_date_spec.rb +0 -60
  1042. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/to_float_spec.rb +0 -42
  1043. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/to_integer_spec.rb +0 -64
  1044. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/to_symbol_spec.rb +0 -51
  1045. data/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/yaml_spec.rb +0 -15
  1046. data/bundle/ruby/2.5.0/gems/sass-3.4.25/CODE_OF_CONDUCT.md +0 -10
  1047. data/bundle/ruby/2.5.0/gems/sass-3.4.25/CONTRIBUTING.md +0 -148
  1048. data/bundle/ruby/2.5.0/gems/sass-3.4.25/MIT-LICENSE +0 -20
  1049. data/bundle/ruby/2.5.0/gems/sass-3.4.25/README.md +0 -227
  1050. data/bundle/ruby/2.5.0/gems/sass-3.4.25/REVISION +0 -1
  1051. data/bundle/ruby/2.5.0/gems/sass-3.4.25/Rakefile +0 -453
  1052. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION +0 -1
  1053. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION_DATE +0 -1
  1054. data/bundle/ruby/2.5.0/gems/sass-3.4.25/VERSION_NAME +0 -1
  1055. data/bundle/ruby/2.5.0/gems/sass-3.4.25/bin/sass +0 -13
  1056. data/bundle/ruby/2.5.0/gems/sass-3.4.25/bin/sass-convert +0 -12
  1057. data/bundle/ruby/2.5.0/gems/sass-3.4.25/bin/scss +0 -13
  1058. data/bundle/ruby/2.5.0/gems/sass-3.4.25/extra/sass-spec-ref.sh +0 -32
  1059. data/bundle/ruby/2.5.0/gems/sass-3.4.25/extra/update_watch.rb +0 -13
  1060. data/bundle/ruby/2.5.0/gems/sass-3.4.25/init.rb +0 -18
  1061. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass.rb +0 -109
  1062. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores.rb +0 -15
  1063. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/base.rb +0 -88
  1064. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/chain.rb +0 -34
  1065. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/filesystem.rb +0 -60
  1066. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/memory.rb +0 -46
  1067. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/cache_stores/null.rb +0 -25
  1068. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/callbacks.rb +0 -67
  1069. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/css.rb +0 -408
  1070. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/deprecation.rb +0 -55
  1071. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/engine.rb +0 -1226
  1072. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/environment.rb +0 -215
  1073. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/error.rb +0 -198
  1074. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec.rb +0 -9
  1075. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/base.rb +0 -199
  1076. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/sass_convert.rb +0 -283
  1077. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/exec/sass_scss.rb +0 -440
  1078. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/features.rb +0 -47
  1079. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers.rb +0 -23
  1080. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/base.rb +0 -182
  1081. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/deprecated_path.rb +0 -51
  1082. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/importers/filesystem.rb +0 -219
  1083. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger.rb +0 -17
  1084. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/base.rb +0 -36
  1085. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/delayed.rb +0 -50
  1086. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/logger/log_level.rb +0 -45
  1087. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/media.rb +0 -210
  1088. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin.rb +0 -134
  1089. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/compiler.rb +0 -582
  1090. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/configuration.rb +0 -134
  1091. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/generic.rb +0 -15
  1092. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/merb.rb +0 -48
  1093. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/rack.rb +0 -60
  1094. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/rails.rb +0 -47
  1095. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/plugin/staleness_checker.rb +0 -199
  1096. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/railtie.rb +0 -10
  1097. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/repl.rb +0 -57
  1098. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/root.rb +0 -7
  1099. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script.rb +0 -66
  1100. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_lexer.rb +0 -33
  1101. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_parser.rb +0 -33
  1102. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/css_variable_warning.rb +0 -52
  1103. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/functions.rb +0 -2693
  1104. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/lexer.rb +0 -464
  1105. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/parser.rb +0 -832
  1106. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree.rb +0 -16
  1107. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/funcall.rb +0 -313
  1108. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/interpolation.rb +0 -223
  1109. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/list_literal.rb +0 -104
  1110. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/literal.rb +0 -49
  1111. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/map_literal.rb +0 -64
  1112. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/node.rb +0 -127
  1113. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/operation.rb +0 -156
  1114. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/selector.rb +0 -26
  1115. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/string_interpolation.rb +0 -125
  1116. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/unary_operation.rb +0 -69
  1117. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/tree/variable.rb +0 -57
  1118. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value.rb +0 -11
  1119. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/arg_list.rb +0 -36
  1120. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/base.rb +0 -241
  1121. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/bool.rb +0 -35
  1122. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/color.rb +0 -698
  1123. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/helpers.rb +0 -272
  1124. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/list.rb +0 -113
  1125. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/map.rb +0 -70
  1126. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/null.rb +0 -44
  1127. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/number.rb +0 -563
  1128. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/script/value/string.rb +0 -138
  1129. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss.rb +0 -14
  1130. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/css_parser.rb +0 -56
  1131. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/parser.rb +0 -1254
  1132. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/rx.rb +0 -140
  1133. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/scss/static_parser.rb +0 -373
  1134. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector.rb +0 -323
  1135. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/abstract_sequence.rb +0 -111
  1136. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/comma_sequence.rb +0 -191
  1137. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/pseudo.rb +0 -266
  1138. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/sequence.rb +0 -636
  1139. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/simple.rb +0 -117
  1140. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/selector/simple_sequence.rb +0 -344
  1141. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/shared.rb +0 -76
  1142. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/map.rb +0 -213
  1143. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/position.rb +0 -39
  1144. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/source/range.rb +0 -41
  1145. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/stack.rb +0 -120
  1146. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/supports.rb +0 -225
  1147. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/at_root_node.rb +0 -83
  1148. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/charset_node.rb +0 -22
  1149. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/comment_node.rb +0 -82
  1150. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/content_node.rb +0 -9
  1151. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/css_import_node.rb +0 -68
  1152. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/debug_node.rb +0 -18
  1153. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/directive_node.rb +0 -59
  1154. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/each_node.rb +0 -24
  1155. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/error_node.rb +0 -18
  1156. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/extend_node.rb +0 -43
  1157. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/for_node.rb +0 -36
  1158. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/function_node.rb +0 -44
  1159. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/if_node.rb +0 -52
  1160. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/import_node.rb +0 -75
  1161. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/keyframe_rule_node.rb +0 -15
  1162. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/media_node.rb +0 -48
  1163. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/mixin_def_node.rb +0 -38
  1164. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/mixin_node.rb +0 -52
  1165. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/node.rb +0 -240
  1166. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/prop_node.rb +0 -170
  1167. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/return_node.rb +0 -19
  1168. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/root_node.rb +0 -44
  1169. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/rule_node.rb +0 -155
  1170. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/supports_node.rb +0 -38
  1171. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/trace_node.rb +0 -33
  1172. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/variable_node.rb +0 -36
  1173. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/base.rb +0 -72
  1174. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/check_nesting.rb +0 -173
  1175. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/convert.rb +0 -351
  1176. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/cssize.rb +0 -373
  1177. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/deep_copy.rb +0 -107
  1178. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/extend.rb +0 -70
  1179. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/perform.rb +0 -564
  1180. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/set_options.rb +0 -139
  1181. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/visitors/to_css.rb +0 -409
  1182. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/warn_node.rb +0 -18
  1183. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/tree/while_node.rb +0 -18
  1184. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util.rb +0 -1375
  1185. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/cross_platform_random.rb +0 -19
  1186. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/multibyte_string_scanner.rb +0 -155
  1187. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/normalized_map.rb +0 -129
  1188. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/ordered_hash.rb +0 -192
  1189. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/subset_map.rb +0 -109
  1190. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/util/test.rb +0 -9
  1191. data/bundle/ruby/2.5.0/gems/sass-3.4.25/lib/sass/version.rb +0 -124
  1192. data/bundle/ruby/2.5.0/gems/sass-3.4.25/rails/init.rb +0 -1
  1193. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass-spec.yml +0 -3
  1194. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/cache_test.rb +0 -131
  1195. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/callbacks_test.rb +0 -61
  1196. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/compiler_test.rb +0 -236
  1197. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/conversion_test.rb +0 -2188
  1198. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/css2sass_test.rb +0 -526
  1199. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/css_variable_test.rb +0 -132
  1200. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/data/hsl-rgb.txt +0 -319
  1201. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/encoding_test.rb +0 -219
  1202. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/engine_test.rb +0 -3447
  1203. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/exec_test.rb +0 -96
  1204. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/extend_test.rb +0 -1733
  1205. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/fixtures/test_staleness_check_across_importers.css +0 -1
  1206. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/fixtures/test_staleness_check_across_importers.scss +0 -1
  1207. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/functions_test.rb +0 -1977
  1208. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/importer_test.rb +0 -421
  1209. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/logger_test.rb +0 -58
  1210. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/mock_importer.rb +0 -49
  1211. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/more_results/more1.css +0 -9
  1212. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/more_results/more1_with_line_comments.css +0 -26
  1213. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/more_results/more_import.css +0 -29
  1214. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/more_templates/_more_partial.sass +0 -2
  1215. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/more_templates/more1.sass +0 -23
  1216. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/more_templates/more_import.sass +0 -11
  1217. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/plugin_test.rb +0 -556
  1218. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/alt.css +0 -4
  1219. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/basic.css +0 -9
  1220. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/cached_import_option.css +0 -3
  1221. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/compact.css +0 -5
  1222. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/complex.css +0 -86
  1223. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/compressed.css +0 -1
  1224. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/expanded.css +0 -19
  1225. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/filename_fn.css +0 -3
  1226. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/if.css +0 -3
  1227. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/import.css +0 -31
  1228. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/import_charset.css +0 -5
  1229. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/import_charset_1_8.css +0 -5
  1230. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/import_charset_ibm866.css +0 -5
  1231. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/import_content.css +0 -1
  1232. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/line_numbers.css +0 -49
  1233. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/mixins.css +0 -95
  1234. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/multiline.css +0 -24
  1235. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/nested.css +0 -22
  1236. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/options.css +0 -1
  1237. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/parent_ref.css +0 -13
  1238. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/script.css +0 -16
  1239. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/scss_import.css +0 -31
  1240. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/scss_importee.css +0 -2
  1241. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/subdir/nested_subdir/nested_subdir.css +0 -1
  1242. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/subdir/subdir.css +0 -3
  1243. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/units.css +0 -11
  1244. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/warn.css +0 -0
  1245. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/results/warn_imported.css +0 -0
  1246. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/script_conversion_test.rb +0 -357
  1247. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/script_test.rb +0 -1431
  1248. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/scss/css_test.rb +0 -1281
  1249. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/scss/rx_test.rb +0 -160
  1250. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/scss/scss_test.rb +0 -4205
  1251. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/scss/test_helper.rb +0 -37
  1252. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/source_map_test.rb +0 -1055
  1253. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/superselector_test.rb +0 -210
  1254. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/_cached_import_option_partial.scss +0 -1
  1255. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/_double_import_loop2.sass +0 -1
  1256. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/_filename_fn_import.scss +0 -11
  1257. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/_imported_charset_ibm866.sass +0 -4
  1258. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/_imported_charset_utf8.sass +0 -4
  1259. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/_imported_content.sass +0 -3
  1260. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/_partial.sass +0 -2
  1261. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/_same_name_different_partiality.scss +0 -1
  1262. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/alt.sass +0 -16
  1263. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/basic.sass +0 -23
  1264. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/bork1.sass +0 -2
  1265. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/bork2.sass +0 -2
  1266. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/bork3.sass +0 -2
  1267. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/bork4.sass +0 -2
  1268. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/bork5.sass +0 -3
  1269. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/cached_import_option.scss +0 -3
  1270. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/compact.sass +0 -17
  1271. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/complex.sass +0 -305
  1272. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/compressed.sass +0 -15
  1273. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/double_import_loop1.sass +0 -1
  1274. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/expanded.sass +0 -17
  1275. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/filename_fn.scss +0 -18
  1276. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/if.sass +0 -11
  1277. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/import.sass +0 -12
  1278. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/import_charset.sass +0 -9
  1279. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/import_charset_1_8.sass +0 -6
  1280. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/import_charset_ibm866.sass +0 -11
  1281. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/import_content.sass +0 -4
  1282. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/importee.less +0 -2
  1283. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/importee.sass +0 -19
  1284. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/line_numbers.sass +0 -13
  1285. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/mixin_bork.sass +0 -5
  1286. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/mixins.sass +0 -76
  1287. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/multiline.sass +0 -20
  1288. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/nested.sass +0 -25
  1289. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/nested_bork1.sass +0 -2
  1290. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/nested_bork2.sass +0 -2
  1291. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/nested_bork3.sass +0 -2
  1292. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/nested_bork4.sass +0 -2
  1293. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/nested_import.sass +0 -2
  1294. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/nested_mixin_bork.sass +0 -6
  1295. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/options.sass +0 -2
  1296. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/parent_ref.sass +0 -25
  1297. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/same_name_different_ext.sass +0 -2
  1298. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/same_name_different_ext.scss +0 -1
  1299. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/same_name_different_partiality.scss +0 -1
  1300. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/script.sass +0 -101
  1301. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/scss_import.scss +0 -12
  1302. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/scss_importee.scss +0 -1
  1303. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/single_import_loop.sass +0 -1
  1304. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/subdir/import_up1.scss +0 -1
  1305. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/subdir/import_up2.scss +0 -1
  1306. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +0 -2
  1307. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +0 -3
  1308. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/subdir/subdir.sass +0 -6
  1309. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/units.sass +0 -11
  1310. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/warn.sass +0 -3
  1311. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/templates/warn_imported.sass +0 -4
  1312. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/test_helper.rb +0 -8
  1313. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/util/multibyte_string_scanner_test.rb +0 -155
  1314. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/util/normalized_map_test.rb +0 -51
  1315. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/util/subset_map_test.rb +0 -91
  1316. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/util_test.rb +0 -438
  1317. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/sass/value_helpers_test.rb +0 -179
  1318. data/bundle/ruby/2.5.0/gems/sass-3.4.25/test/test_helper.rb +0 -110
  1319. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/CHANGELOG.md +0 -1
  1320. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/CONTRIBUTING.md +0 -38
  1321. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Gemfile +0 -20
  1322. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Guardfile +0 -8
  1323. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/LICENSE +0 -20
  1324. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/README.md +0 -349
  1325. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Rakefile +0 -5
  1326. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/Vagrantfile +0 -96
  1327. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen.rb +0 -54
  1328. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapter.rb +0 -327
  1329. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/bsd.rb +0 -75
  1330. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/darwin.rb +0 -48
  1331. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/linux.rb +0 -81
  1332. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/polling.rb +0 -58
  1333. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/adapters/windows.rb +0 -91
  1334. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/directory_record.rb +0 -406
  1335. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/listener.rb +0 -323
  1336. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/turnstile.rb +0 -32
  1337. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/lib/listen/version.rb +0 -3
  1338. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/listen.gemspec +0 -28
  1339. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapter_spec.rb +0 -149
  1340. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/bsd_spec.rb +0 -36
  1341. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/darwin_spec.rb +0 -37
  1342. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/linux_spec.rb +0 -47
  1343. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/polling_spec.rb +0 -68
  1344. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/adapters/windows_spec.rb +0 -30
  1345. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/directory_record_spec.rb +0 -1250
  1346. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/listener_spec.rb +0 -258
  1347. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen/turnstile_spec.rb +0 -56
  1348. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/listen_spec.rb +0 -67
  1349. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/spec_helper.rb +0 -25
  1350. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/adapter_helper.rb +0 -666
  1351. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/directory_record_helper.rb +0 -57
  1352. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/fixtures_helper.rb +0 -29
  1353. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/listeners_helper.rb +0 -179
  1354. data/bundle/ruby/2.5.0/gems/sass-3.4.25/vendor/listen/spec/support/platform_helper.rb +0 -15
  1355. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/History.rdoc +0 -360
  1356. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/Manifest.txt +0 -14
  1357. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/Rakefile +0 -17
  1358. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/lib/pt_testcase.rb +0 -3130
  1359. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/lib/sexp.rb +0 -1420
  1360. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/lib/sexp_processor.rb +0 -754
  1361. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/lib/strict_sexp.rb +0 -126
  1362. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/test/test_composite_sexp_processor.rb +0 -66
  1363. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/test/test_environment.rb +0 -94
  1364. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/test/test_sexp.rb +0 -1643
  1365. data/bundle/ruby/2.5.0/gems/sexp_processor-4.11.0/test/test_sexp_processor.rb +0 -399
  1366. data/bundle/ruby/2.5.0/gems/slim-3.0.7/CHANGES +0 -431
  1367. data/bundle/ruby/2.5.0/gems/slim-3.0.7/Gemfile +0 -69
  1368. data/bundle/ruby/2.5.0/gems/slim-3.0.7/LICENSE +0 -21
  1369. data/bundle/ruby/2.5.0/gems/slim-3.0.7/README.jp.md +0 -1230
  1370. data/bundle/ruby/2.5.0/gems/slim-3.0.7/README.md +0 -1230
  1371. data/bundle/ruby/2.5.0/gems/slim-3.0.7/Rakefile +0 -100
  1372. data/bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/context.rb +0 -11
  1373. data/bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/profile-parser.rb +0 -10
  1374. data/bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/profile-render.rb +0 -12
  1375. data/bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/run-benchmarks.rb +0 -126
  1376. data/bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/run-diffbench.rb +0 -21
  1377. data/bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/view.erb +0 -23
  1378. data/bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/view.haml +0 -18
  1379. data/bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/view.slim +0 -17
  1380. data/bundle/ruby/2.5.0/gems/slim-3.0.7/bin/slimrb +0 -6
  1381. data/bundle/ruby/2.5.0/gems/slim-3.0.7/doc/include.md +0 -20
  1382. data/bundle/ruby/2.5.0/gems/slim-3.0.7/doc/jp/include.md +0 -20
  1383. data/bundle/ruby/2.5.0/gems/slim-3.0.7/doc/jp/logic_less.md +0 -137
  1384. data/bundle/ruby/2.5.0/gems/slim-3.0.7/doc/jp/smart.md +0 -102
  1385. data/bundle/ruby/2.5.0/gems/slim-3.0.7/doc/jp/translator.md +0 -28
  1386. data/bundle/ruby/2.5.0/gems/slim-3.0.7/doc/logic_less.md +0 -137
  1387. data/bundle/ruby/2.5.0/gems/slim-3.0.7/doc/smart.md +0 -103
  1388. data/bundle/ruby/2.5.0/gems/slim-3.0.7/doc/translator.md +0 -28
  1389. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/command.rb +0 -128
  1390. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/embedded.rb +0 -273
  1391. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/engine.rb +0 -39
  1392. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/filter.rb +0 -30
  1393. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/grammar.rb +0 -20
  1394. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/logic_less/context.rb +0 -127
  1395. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/parser.rb +0 -537
  1396. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/smart/parser.rb +0 -36
  1397. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/splat/builder.rb +0 -101
  1398. data/bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/version.rb +0 -5
  1399. data/bundle/ruby/2.5.0/gems/slim-3.0.7/slim.gemspec +0 -24
  1400. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/helper.rb +0 -211
  1401. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_code_blocks.rb +0 -183
  1402. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_code_escaping.rb +0 -150
  1403. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_code_evaluation.rb +0 -180
  1404. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_code_output.rb +0 -168
  1405. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_code_structure.rb +0 -186
  1406. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_commands.rb +0 -223
  1407. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_embedded_engines.rb +0 -242
  1408. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_encoding.rb +0 -28
  1409. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_erb_converter.rb +0 -67
  1410. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_html_attributes.rb +0 -268
  1411. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_html_escaping.rb +0 -65
  1412. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_html_structure.rb +0 -553
  1413. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_parser_errors.rb +0 -148
  1414. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_pretty.rb +0 -166
  1415. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_ruby_errors.rb +0 -207
  1416. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_slim_template.rb +0 -77
  1417. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_tabs.rb +0 -169
  1418. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_text_interpolation.rb +0 -79
  1419. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_thread_options.rb +0 -18
  1420. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/core/test_unicode.rb +0 -16
  1421. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/include/files/recursive.slim +0 -1
  1422. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/include/files/slimfile.slim +0 -3
  1423. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/include/files/subdir/test.slim +0 -1
  1424. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/include/files/textfile +0 -1
  1425. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/include/test_include.rb +0 -24
  1426. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/literate/TESTS.md +0 -1290
  1427. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/literate/helper.rb +0 -15
  1428. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/literate/run.rb +0 -92
  1429. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/logic_less/test_logic_less.rb +0 -295
  1430. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/Rakefile +0 -7
  1431. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/controllers/application_controller.rb +0 -2
  1432. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/controllers/entries_controller.rb +0 -5
  1433. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/controllers/slim_controller.rb +0 -40
  1434. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/helpers/application_helper.rb +0 -5
  1435. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/models/entry.rb +0 -16
  1436. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/entries/edit.html.slim +0 -3
  1437. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/layouts/application.html.slim +0 -10
  1438. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/_partial.html.slim +0 -1
  1439. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/content_for.html.slim +0 -7
  1440. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/erb.html.erb +0 -1
  1441. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/form_for.html.slim +0 -2
  1442. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/helper.html.slim +0 -4
  1443. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/integers.html.slim +0 -1
  1444. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/no_layout.html.slim +0 -1
  1445. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/normal.html.slim +0 -1
  1446. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/partial.html.slim +0 -2
  1447. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/splat.html.slim +0 -2
  1448. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/thread_options.html.slim +0 -1
  1449. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/variables.html.slim +0 -1
  1450. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/app/views/slim/xml.slim +0 -1
  1451. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config.ru +0 -4
  1452. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/application.rb +0 -44
  1453. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/boot.rb +0 -10
  1454. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/environment.rb +0 -5
  1455. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/environments/test.rb +0 -34
  1456. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/initializers/backtrace_silencers.rb +0 -7
  1457. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/initializers/inflections.rb +0 -10
  1458. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/initializers/mime_types.rb +0 -5
  1459. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/initializers/secret_token.rb +0 -7
  1460. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/initializers/session_store.rb +0 -8
  1461. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/locales/en.yml +0 -5
  1462. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/config/routes.rb +0 -60
  1463. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/script/rails +0 -6
  1464. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/test/helper.rb +0 -31
  1465. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/rails/test/test_slim.rb +0 -90
  1466. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/smart/test_smart_text.rb +0 -296
  1467. data/bundle/ruby/2.5.0/gems/slim-3.0.7/test/translator/test_translator.rb +0 -76
  1468. data/bundle/ruby/2.5.0/gems/temple-0.7.7/CHANGES +0 -240
  1469. data/bundle/ruby/2.5.0/gems/temple-0.7.7/EXPRESSIONS.md +0 -261
  1470. data/bundle/ruby/2.5.0/gems/temple-0.7.7/README.md +0 -267
  1471. data/bundle/ruby/2.5.0/gems/temple-0.7.7/Rakefile +0 -25
  1472. data/bundle/ruby/2.5.0/gems/temple-0.7.7/lib/temple.rb +0 -66
  1473. data/bundle/ruby/2.5.0/gems/temple-0.7.7/lib/temple/filters/static_analyzer.rb +0 -87
  1474. data/bundle/ruby/2.5.0/gems/temple-0.7.7/lib/temple/filters/string_splitter.rb +0 -130
  1475. data/bundle/ruby/2.5.0/gems/temple-0.7.7/lib/temple/mixins/dispatcher.rb +0 -160
  1476. data/bundle/ruby/2.5.0/gems/temple-0.7.7/lib/temple/templates/rails.rb +0 -26
  1477. data/bundle/ruby/2.5.0/gems/temple-0.7.7/lib/temple/version.rb +0 -3
  1478. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_code_merger.rb +0 -38
  1479. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_control_flow.rb +0 -90
  1480. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_dynamic_inliner.rb +0 -95
  1481. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_eraser.rb +0 -55
  1482. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_escapable.rb +0 -49
  1483. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_multi_flattener.rb +0 -33
  1484. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_static_analyzer.rb +0 -23
  1485. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_static_merger.rb +0 -41
  1486. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/filters/test_string_splitter.rb +0 -18
  1487. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/helper.rb +0 -30
  1488. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/html/test_attribute_merger.rb +0 -76
  1489. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/html/test_attribute_remover.rb +0 -43
  1490. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/html/test_attribute_sorter.rb +0 -48
  1491. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/html/test_fast.rb +0 -97
  1492. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/html/test_pretty.rb +0 -55
  1493. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/mixins/test_dispatcher.rb +0 -70
  1494. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/mixins/test_grammar_dsl.rb +0 -86
  1495. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/test_engine.rb +0 -189
  1496. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/test_erb.rb +0 -61
  1497. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/test_filter.rb +0 -29
  1498. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/test_generator.rb +0 -158
  1499. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/test_grammar.rb +0 -47
  1500. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/test_map.rb +0 -39
  1501. data/bundle/ruby/2.5.0/gems/temple-0.7.7/test/test_utils.rb +0 -39
  1502. data/bundle/ruby/2.5.0/gems/terminal-table-1.8.0/Rakefile +0 -15
  1503. data/bundle/ruby/2.5.0/gems/terminal-table-1.8.0/examples/examples.rb +0 -83
  1504. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/CHANGELOG.md +0 -127
  1505. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/Gemfile +0 -65
  1506. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/HACKING +0 -16
  1507. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/README.md +0 -233
  1508. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/Rakefile +0 -106
  1509. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/bin/tilt +0 -122
  1510. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/docs/TEMPLATES.md +0 -555
  1511. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/docs/common.css +0 -14
  1512. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt.rb +0 -166
  1513. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/commonmarker.rb +0 -21
  1514. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/erb.rb +0 -57
  1515. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/haml.rb +0 -86
  1516. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/sass.rb +0 -41
  1517. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/lib/tilt/template.rb +0 -302
  1518. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/man/index.txt +0 -2
  1519. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/man/tilt.1.ronn +0 -59
  1520. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/markaby/locals.mab +0 -1
  1521. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/markaby/markaby.mab +0 -1
  1522. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/markaby/markaby_other_static.mab +0 -1
  1523. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/markaby/render_twice.mab +0 -1
  1524. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/markaby/scope.mab +0 -1
  1525. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/markaby/yielding.mab +0 -2
  1526. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/mytemplate.rb +0 -2
  1527. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/test_helper.rb +0 -64
  1528. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_asciidoctor_test.rb +0 -50
  1529. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_babeltemplate.rb +0 -33
  1530. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_blueclothtemplate_test.rb +0 -33
  1531. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_buildertemplate_test.rb +0 -72
  1532. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_cache_test.rb +0 -43
  1533. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_coffeescripttemplate_test.rb +0 -141
  1534. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_commonmarkertemplate_test.rb +0 -20
  1535. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_compilesite_test.rb +0 -51
  1536. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_creoletemplate_test.rb +0 -24
  1537. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_csv_test.rb +0 -77
  1538. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_erbtemplate_test.rb +0 -239
  1539. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_erubistemplate_test.rb +0 -151
  1540. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_erubitemplate_test.rb +0 -158
  1541. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_etannitemplate_test.rb +0 -174
  1542. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_hamltemplate_test.rb +0 -166
  1543. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_kramdown_test.rb +0 -20
  1544. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_lesstemplate_test.less +0 -1
  1545. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_lesstemplate_test.rb +0 -42
  1546. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_liquidtemplate_test.rb +0 -87
  1547. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_livescripttemplate_test.rb +0 -37
  1548. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_mapping_test.rb +0 -232
  1549. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_markaby_test.rb +0 -88
  1550. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_markdown_test.rb +0 -186
  1551. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_marukutemplate_test.rb +0 -36
  1552. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_metadata_test.rb +0 -42
  1553. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_nokogiritemplate_test.rb +0 -87
  1554. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_pandoctemplate_test.rb +0 -67
  1555. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_prawntemplate.prawn +0 -1
  1556. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_prawntemplate_test.rb +0 -75
  1557. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_radiustemplate_test.rb +0 -75
  1558. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_rdiscounttemplate_test.rb +0 -43
  1559. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_rdoctemplate_test.rb +0 -29
  1560. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_redcarpettemplate_test.rb +0 -54
  1561. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_redclothtemplate_test.rb +0 -36
  1562. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_rstpandoctemplate_test.rb +0 -32
  1563. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_sasstemplate_test.rb +0 -41
  1564. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_sigil_test.rb +0 -41
  1565. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_stringtemplate_test.rb +0 -171
  1566. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_template_test.rb +0 -314
  1567. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_test.rb +0 -60
  1568. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_typescript_test.rb +0 -38
  1569. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_wikiclothtemplate_test.rb +0 -32
  1570. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/test/tilt_yajltemplate_test.rb +0 -101
  1571. data/bundle/ruby/2.5.0/gems/tilt-2.0.8/tilt.gemspec +0 -130
  1572. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/CHANGELOG.md +0 -113
  1573. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/MIT-LICENSE.txt +0 -22
  1574. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/README.md +0 -124
  1575. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/Rakefile +0 -64
  1576. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/data/display_width.marshal.gz +0 -0
  1577. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width.rb +0 -51
  1578. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width/constants.rb +0 -8
  1579. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/spec/display_width_spec.rb +0 -156
  1580. data/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/unicode-display_width.gemspec +0 -18
@@ -0,0 +1,15 @@
1
+ History.rdoc
2
+ Manifest.txt
3
+ README.rdoc
4
+ Rakefile
5
+ lib/composite_sexp_processor.rb
6
+ lib/pt_testcase.rb
7
+ lib/sexp.rb
8
+ lib/sexp_matcher.rb
9
+ lib/sexp_processor.rb
10
+ lib/strict_sexp.rb
11
+ lib/unique.rb
12
+ test/test_composite_sexp_processor.rb
13
+ test/test_environment.rb
14
+ test/test_sexp.rb
15
+ test/test_sexp_processor.rb
@@ -0,0 +1,3128 @@
1
+ # encoding: US-ASCII
2
+
3
+ $TESTING = true
4
+ # :stopdoc:
5
+
6
+ require "minitest/test"
7
+ require "sexp_processor" # for deep_clone
8
+
9
+ # key:
10
+ # wwtt = what were they thinking?
11
+
12
+ class Examples
13
+ attr_reader :reader
14
+ attr_writer :writer
15
+
16
+ def a_method x; x+1; end
17
+ alias an_alias a_method
18
+
19
+ define_method(:bmethod_noargs) do
20
+ x + 1
21
+ end
22
+
23
+ define_method(:unsplatted) do |x|
24
+ x + 1
25
+ end
26
+
27
+ define_method :splatted do |*args|
28
+ y = args.first
29
+ y + 42
30
+ end
31
+
32
+ define_method :dmethod_added, instance_method(:a_method) if
33
+ RUBY_VERSION < "1.9"
34
+ end
35
+
36
+ class ParseTreeTestCase < Minitest::Test
37
+ attr_accessor :processor # to be defined by subclass
38
+
39
+ def setup
40
+ super
41
+ @processor = nil
42
+ end
43
+
44
+ def after_process_hook klass, node, data, input_name, output_name
45
+ end
46
+
47
+ def before_process_hook klass, node, data, input_name, output_name
48
+ end
49
+
50
+ def self.add_test name, data, klass = self.name[4..-1]
51
+ name = name.to_s
52
+ klass = klass.to_s
53
+
54
+ if testcases.has_key? name then
55
+ if testcases[name].has_key? klass then
56
+ warn "testcase #{klass}##{name} already has data"
57
+ else
58
+ testcases[name][klass] = data
59
+ end
60
+ else
61
+ warn "testcase #{name} does not exist"
62
+ end
63
+ end
64
+
65
+ def self.add_tests name, hash
66
+ name = name.to_s
67
+
68
+ hash.each do |klass, data|
69
+ warn "testcase #{klass}##{name} already has data" if
70
+ testcases[name].has_key? klass
71
+ testcases[name][klass] = data
72
+ end
73
+ end
74
+
75
+ def self.add_18tests name, hash
76
+ add_tests "#{name}__18", hash
77
+ end
78
+
79
+ def self.add_19tests name, hash
80
+ add_tests "#{name}__19_20_21_22_23_24_25_26_27", hash # HACK?
81
+ end
82
+
83
+ def self.add_19edgecases ruby, sexp, cases
84
+ cases.each do |name, code|
85
+ add_19tests name, "Ruby" => code, "ParseTree" => sexp, "Ruby2Ruby" => ruby
86
+ end
87
+ end
88
+
89
+ def self.clone_same
90
+ @@testcases.each do |node, data|
91
+ data.each do |key, val|
92
+ if val == :same then
93
+ prev_key = self.previous(key)
94
+ data[key] = data[prev_key].deep_clone
95
+ end
96
+ end
97
+ end
98
+ end
99
+
100
+ def self.copy_test_case nonverbose, klass
101
+ verbose = nonverbose + "_mri_verbose_flag"
102
+ testcases[verbose][klass] = testcases[nonverbose][klass]
103
+ end
104
+
105
+ VER_RE = "(1[89]|2[01234567])"
106
+
107
+ def self.generate_test klass, node, data, input_name, output_name
108
+ klass.send :define_method, "test_#{node}" do
109
+ flunk "Processor is nil" if processor.nil?
110
+
111
+ tversions = node[/(?:_#{VER_RE})+$/]
112
+ if tversions then
113
+ cversion = self.class.name[/#{VER_RE}/]
114
+
115
+ assert true # shut up prove_it!
116
+
117
+ # can't push this up because it may be generating into an
118
+ # abstract test class and the actual subclass is versioned.
119
+ return "version specific test" unless tversions.include? cversion if cversion
120
+ end
121
+
122
+ assert data.has_key?(input_name), "Unknown input data"
123
+ assert data.has_key?(output_name), "Missing test data"
124
+
125
+ $missing[node] << output_name unless data.has_key? output_name
126
+
127
+ input = data[input_name].deep_clone
128
+ expected = data[output_name].deep_clone
129
+
130
+ case expected
131
+ when :unsupported then
132
+ assert_raises(UnsupportedNodeError) do
133
+ processor.process(input)
134
+ end
135
+ else
136
+ extra_expected = []
137
+ extra_input = []
138
+
139
+ _, expected, extra_expected = *expected if
140
+ Array === expected and expected.sexp_type == :defx
141
+ _, input, extra_input = *input if
142
+ Array === input and input.sexp_type == :defx
143
+
144
+ # OMG... I can't believe I have to do this this way. these
145
+ # hooks are here instead of refactoring this define_method
146
+ # body into an assertion. It'll allow subclasses to hook in
147
+ # and add behavior before or after the processor does it's
148
+ # thing. If you go the body refactor route, some of the
149
+ # RawParseTree test cases fail for completely bogus reasons.
150
+
151
+ before_process_hook klass, node, data, input_name, output_name
152
+ refute_nil data[input_name], "testcase does not exist?"
153
+ @result = processor.process input
154
+ assert_equal(expected, @result,
155
+ "failed on input: #{data[input_name].inspect}")
156
+ after_process_hook klass, node, data, input_name, output_name
157
+
158
+ extra_input.each do |extra|
159
+ processor.process(extra)
160
+ end
161
+ extra = processor.extra_methods rescue []
162
+ assert_equal extra_expected, extra
163
+ end
164
+ end
165
+ end
166
+
167
+ def self.generate_tests klass
168
+ install_missing_reporter
169
+ clone_same
170
+
171
+ output_name = klass.name.to_s.sub(/^Test/, "")
172
+
173
+ input_name = self.previous(output_name)
174
+
175
+ @@testcases.each do |node, data|
176
+ next if [:skip, :unsupported].include? data[input_name]
177
+ next if data[output_name] == :skip
178
+
179
+ generate_test klass, node, data, input_name, output_name
180
+ end
181
+ end
182
+
183
+ def self.inherited klass
184
+ super
185
+
186
+ generate_tests klass unless klass.name =~ /TestCase/
187
+ end
188
+
189
+ def self.install_missing_reporter
190
+ unless defined? $missing then
191
+ $missing = Hash.new { |h,k| h[k] = [] }
192
+ at_exit {
193
+ at_exit {
194
+ warn ""
195
+ $missing.sort.each do |name, klasses|
196
+ warn "add_tests(#{name.inspect},"
197
+ klasses.map! { |klass| " #{klass.inspect} => :same" }
198
+ warn klasses.join("\n") + ")"
199
+ end
200
+ warn ""
201
+ }
202
+ }
203
+ end
204
+ end
205
+
206
+ def self.previous key, extra=0 # FIX: remove R2C code
207
+ idx = @@testcase_order.index(key)
208
+
209
+ raise "Unknown class #{key} in @@testcase_order" if idx.nil?
210
+
211
+ case key
212
+ when "RubyToRubyC" then
213
+ idx -= 1
214
+ end
215
+ @@testcase_order[idx - 1 - extra]
216
+ end
217
+
218
+ def self.testcase_order; @@testcase_order; end
219
+ def self.testcases; @@testcases; end
220
+
221
+ def self.unsupported_tests *tests
222
+ tests.flatten.each do |name|
223
+ add_test name, :unsupported
224
+ end
225
+ end
226
+
227
+ ############################################################
228
+ # Shared TestCases:
229
+
230
+ @@testcase_order = %w(Ruby ParseTree)
231
+
232
+ @@testcases = Hash.new { |h,k| h[k] = {} }
233
+
234
+ ###
235
+ # 1.8 specific tests
236
+
237
+ add_18tests("call_arglist_norm_hash_splat",
238
+ "Ruby" => "o.m(42, :a => 1, :b => 2, *c)",
239
+ "ParseTree" => s(:call,
240
+ s(:call, nil, :o), :m,
241
+ s(:lit, 42),
242
+ s(:hash,
243
+ s(:lit, :a), s(:lit, 1),
244
+ s(:lit, :b), s(:lit, 2)),
245
+ s(:splat, s(:call, nil, :c))))
246
+
247
+ add_18tests("call_arglist_space",
248
+ "Ruby" => "a (1,2,3)",
249
+ "ParseTree" => s(:call, nil, :a,
250
+ s(:lit, 1), s(:lit, 2), s(:lit, 3)),
251
+ "Ruby2Ruby" => "a(1, 2, 3)")
252
+
253
+ add_18tests("fcall_arglist_norm_hash_splat",
254
+ "Ruby" => "m(42, :a => 1, :b => 2, *c)",
255
+ "ParseTree" => s(:call, nil, :m,
256
+ s(:lit, 42),
257
+ s(:hash,
258
+ s(:lit, :a), s(:lit, 1),
259
+ s(:lit, :b), s(:lit, 2)),
260
+ s(:splat, s(:call, nil, :c))))
261
+
262
+ add_18tests("if_args_no_space_symbol",
263
+ "Ruby" => "x if y:z",
264
+ "ParseTree" => s(:if,
265
+ s(:call, nil, :y, s(:lit, :z)),
266
+ s(:call, nil, :x),
267
+ nil),
268
+ "Ruby2Ruby" => "x if y(:z)")
269
+
270
+ add_18tests("if_post_not",
271
+ "Ruby" => "a if not b",
272
+ "ParseTree" => s(:if, s(:call, nil, :b), nil,
273
+ s(:call, nil, :a)),
274
+ "Ruby2Ruby" => "a unless b")
275
+
276
+ add_18tests("if_pre_not",
277
+ "Ruby" => "if not b then a end",
278
+ "ParseTree" => s(:if, s(:call, nil, :b), nil,
279
+ s(:call, nil, :a)),
280
+ "Ruby2Ruby" => "a unless b")
281
+
282
+ add_18tests("iter_args_ivar",
283
+ "Ruby" => "a { |@a| 42 }",
284
+ "ParseTree" => s(:iter,
285
+ s(:call, nil, :a),
286
+ s(:args, :@a),
287
+ s(:lit, 42)))
288
+
289
+ add_18tests("iter_masgn_args_ivar",
290
+ "Ruby" => "a { |a, @b| 42 }",
291
+ "ParseTree" => s(:iter,
292
+ s(:call, nil, :a),
293
+ s(:args, :a, :@b),
294
+ s(:lit, 42)))
295
+
296
+ add_18tests("not",
297
+ "Ruby" => "(not true)",
298
+ "ParseTree" => s(:not, s(:true)))
299
+
300
+ add_18tests("str_question_control",
301
+ "Ruby" => '?\M-\C-a',
302
+ "ParseTree" => s(:lit, 129),
303
+ "Ruby2Ruby" => "129")
304
+
305
+ add_18tests("str_question_escape",
306
+ "Ruby" => '?\n',
307
+ "ParseTree" => s(:lit, 10),
308
+ "Ruby2Ruby" => "10")
309
+
310
+ add_18tests("str_question_literal",
311
+ "Ruby" => "?a",
312
+ "ParseTree" => s(:lit, 97),
313
+ "Ruby2Ruby" => "97")
314
+
315
+ add_18tests("unless_post_not",
316
+ "Ruby" => "a unless not b",
317
+ "ParseTree" => s(:if, s(:call, nil, :b),
318
+ s(:call, nil, :a), nil),
319
+ "Ruby2Ruby" => "a if b")
320
+
321
+ add_18tests("unless_pre_not",
322
+ "Ruby" => "unless not b then a end",
323
+ "ParseTree" => s(:if, s(:call, nil, :b),
324
+ s(:call, nil, :a), nil),
325
+ "Ruby2Ruby" => "a if b")
326
+
327
+ add_18tests("until_post_not",
328
+ "Ruby" => "begin\n (1 + 1)\nend until not true",
329
+ "ParseTree" => s(:while, s(:true),
330
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), false),
331
+ "Ruby2Ruby" => "begin\n (1 + 1)\nend while true")
332
+
333
+ add_18tests("until_pre_not",
334
+ "Ruby" => "until not true do\n (1 + 1)\nend",
335
+ "ParseTree" => s(:while, s(:true),
336
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
337
+ "Ruby2Ruby" => "while true do\n (1 + 1)\nend")
338
+
339
+ add_18tests("until_pre_not_mod",
340
+ "Ruby" => "(1 + 1) until not true",
341
+ "ParseTree" => s(:while, s(:true),
342
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
343
+ "Ruby2Ruby" => "while true do\n (1 + 1)\nend")
344
+
345
+ add_18tests("while_post_not",
346
+ "Ruby" => "begin\n (1 + 1)\nend while not true",
347
+ "ParseTree" => s(:until, s(:true),
348
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), false),
349
+ "Ruby2Ruby" => "begin\n (1 + 1)\nend until true")
350
+
351
+ add_18tests("while_pre_not",
352
+ "Ruby" => "while not true do\n (1 + 1)\nend",
353
+ "ParseTree" => s(:until, s(:true),
354
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
355
+ "Ruby2Ruby" => "until true do\n (1 + 1)\nend")
356
+
357
+ add_18tests("while_pre_not_mod",
358
+ "Ruby" => "(1 + 1) while not true",
359
+ "ParseTree" => s(:until, s(:true),
360
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
361
+ "Ruby2Ruby" => "until true do\n (1 + 1)\nend") # FIX
362
+
363
+ ###
364
+ # 1.9 specific tests
365
+
366
+ add_19edgecases("-> () { (x + 1) }",
367
+ s(:iter,
368
+ s(:lambda),
369
+ s(:args),
370
+ s(:call, s(:call, nil, :x), :+, s(:lit, 1))),
371
+ "stabby_args" => "->() { (x + 1) }",
372
+ "stabby_args_doend" => "->() do (x + 1) end")
373
+
374
+ add_19edgecases("-> { (x + 1) }",
375
+ s(:iter,
376
+ s(:lambda),
377
+ 0,
378
+ s(:call, s(:call, nil, :x), :+, s(:lit, 1))),
379
+ "stabby_args_0_no_parens" => "-> { (x + 1) }",
380
+ "stabby_args_0_no_parens_doend" => "-> do (x + 1) end",
381
+ "stabby_args_0_spacebar_broken" => "->{x+1}") # I hate you
382
+
383
+ add_19edgecases("-> (x, y) { (x + y) }",
384
+ s(:iter,
385
+ s(:lambda),
386
+ s(:args, :x, :y),
387
+ s(:call, s(:lvar, :x), :+, s(:lvar, :y))),
388
+ "stabby_args_2" => "->(x, y) { (x + y) }",
389
+ "stabby_args_2_doend" => "->(x, y) do (x + y) end",
390
+ "stabby_args_2_no_parens" => "-> x, y { (x + y) }",
391
+ "stabby_args_2_no_parens_doend" => "-> x, y do (x + y) end")
392
+
393
+ add_19edgecases("-> (x) { (x + 1) }",
394
+ s(:iter,
395
+ s(:lambda),
396
+ s(:args, :x),
397
+ s(:call, s(:lvar, :x), :+, s(:lit, 1))),
398
+ "stabby_args_1" => "->(x) { (x + 1) }",
399
+ "stabby_args_1_doend" => "->(x) do (x + 1) end",
400
+ "stabby_args_1_no_parens" => "-> x { (x + 1) }",
401
+ "stabby_args_1_no_parens_doend" => "-> x do (x + 1) end")
402
+
403
+ add_19tests("array_bare_hash",
404
+ "Ruby" => "[:a, :b => :c]",
405
+ "ParseTree" => s(:array,
406
+ s(:lit, :a),
407
+ s(:hash,
408
+ s(:lit, :b),
409
+ s(:lit, :c))),
410
+ "Ruby2Ruby" => "[:a, { :b => :c }]")
411
+
412
+ add_19tests("array_bare_hash_labels",
413
+ "Ruby" => "[:a, b: :c]",
414
+ "ParseTree" => s(:array,
415
+ s(:lit, :a),
416
+ s(:hash,
417
+ s(:lit, :b),
418
+ s(:lit, :c))),
419
+ "Ruby2Ruby" => "[:a, { :b => :c }]")
420
+
421
+ add_19tests("call_arglist_norm_hash_colons",
422
+ "Ruby" => "o.m(42, a: 1, b: 2)",
423
+ "ParseTree" => s(:call,
424
+ s(:call, nil, :o),
425
+ :m,
426
+ s(:lit, 42),
427
+ s(:hash,
428
+ s(:lit, :a), s(:lit, 1),
429
+ s(:lit, :b), s(:lit, 2))),
430
+ "Ruby2Ruby" => "o.m(42, :a => 1, :b => 2)")
431
+
432
+ add_19tests("call_arglist_trailing_comma",
433
+ "Ruby" => "a(1,2,3,)",
434
+ "ParseTree" => s(:call,
435
+ nil,
436
+ :a,
437
+ s(:lit, 1), s(:lit, 2), s(:lit, 3)),
438
+ "Ruby2Ruby" => "a(1, 2, 3)")
439
+
440
+ add_19tests("call_bang",
441
+ "Ruby" => "!a",
442
+ "ParseTree" => s(:call,
443
+ s(:call, nil, :a),
444
+ :"!"),
445
+ "Ruby2Ruby" => "(not a)")
446
+
447
+ add_19tests("call_bang_empty",
448
+ "Ruby" => "! ()",
449
+ "ParseTree" => s(:call, s(:nil), :"!"),
450
+ "Ruby2Ruby" => "(not nil)")
451
+
452
+ add_19tests("call_fonz",
453
+ "Ruby" => "a.()",
454
+ "ParseTree" => s(:call, s(:call, nil, :a), :call),
455
+ "Ruby2Ruby" => "a.call")
456
+
457
+ add_19tests("call_fonz_cm",
458
+ "Ruby" => "a::()",
459
+ "ParseTree" => s(:call, s(:call, nil, :a), :call),
460
+ "Ruby2Ruby" => "a.call")
461
+
462
+ add_19tests("call_not",
463
+ "Ruby" => "not (42)",
464
+ "ParseTree" => s(:call, s(:lit, 42), :"!"),
465
+ "Ruby2Ruby" => "(not 42)")
466
+
467
+ # add_19tests("call_not_empty",
468
+ # "Ruby" => "not ()",
469
+ # "ParseTree" => s(:call, s(:lit, 42), :"!"))
470
+
471
+ add_19tests("call_not_equal",
472
+ "Ruby" => "a != b",
473
+ "ParseTree" => s(:call,
474
+ s(:call, nil, :a),
475
+ :"!=",
476
+ s(:call, nil, :b)),
477
+ "Ruby2Ruby" => "(a != b)")
478
+
479
+ add_19tests("call_splat_mid",
480
+ "Ruby" => "def f(a = nil, *b, c)\n # do nothing\nend",
481
+ "ParseTree" => s(:defn, :f,
482
+ s(:args, s(:lasgn, :a, s(:nil)), :"*b", :c),
483
+ s(:nil)))
484
+
485
+ add_19tests("defn_args_mand_opt_mand",
486
+ "Ruby" => "def f(mand1, opt = 42, mand2)\n # do nothing\nend",
487
+ "ParseTree" => s(:defn, :f,
488
+ s(:args, :mand1, s(:lasgn, :opt, s(:lit, 42)), :mand2),
489
+ s(:nil)))
490
+
491
+ add_19tests("defn_args_mand_opt_splat_mand",
492
+ "Ruby" => "def f(mand1, opt = 42, *rest, mand2)\n # do nothing\nend",
493
+ "ParseTree" => s(:defn, :f,
494
+ s(:args, :mand1, s(:lasgn, :opt, s(:lit, 42)), :"*rest", :mand2),
495
+ s(:nil)))
496
+
497
+ add_19tests("defn_args_opt_mand",
498
+ "Ruby" => "def f(opt = 42, mand)\n # do nothing\nend",
499
+ "ParseTree" => s(:defn, :f,
500
+ s(:args, s(:lasgn, :opt, s(:lit, 42)), :mand),
501
+ s(:nil)))
502
+
503
+ add_19tests("defn_args_opt_splat_mand",
504
+ "Ruby" => "def f(opt = 42, *rest, mand)\n # do nothing\nend",
505
+ "ParseTree" => s(:defn, :f,
506
+ s(:args, s(:lasgn, :opt, s(:lit, 42)), :"*rest", :mand),
507
+ s(:nil)))
508
+
509
+ add_19tests("defn_args_splat_mand",
510
+ "Ruby" => "def f(*rest, mand)\n # do nothing\nend",
511
+ "ParseTree" => s(:defn, :f,
512
+ s(:args, :"*rest", :mand),
513
+ s(:nil)))
514
+
515
+ add_19tests("defn_args_splat_middle",
516
+ "Ruby" => "def f(first, *middle, last)\n # do nothing\nend",
517
+ "ParseTree" => s(:defn, :f,
518
+ s(:args, :first, :"*middle", :last),
519
+ s(:nil)))
520
+
521
+ add_19tests("fcall_arglist_hash_colons",
522
+ "Ruby" => "m(a: 1, b: 2)",
523
+ "ParseTree" => s(:call, nil, :m,
524
+ s(:hash,
525
+ s(:lit, :a), s(:lit, 1),
526
+ s(:lit, :b), s(:lit, 2))),
527
+ "Ruby2Ruby" => "m(:a => 1, :b => 2)")
528
+
529
+ add_19tests("hash_new",
530
+ "Ruby" => "{ a: 1, b: 2 }",
531
+ "ParseTree" => s(:hash,
532
+ s(:lit, :a), s(:lit, 1),
533
+ s(:lit, :b), s(:lit, 2)),
534
+ "Ruby2Ruby" => "{ :a => 1, :b => 2 }")
535
+
536
+ add_19tests("hash_new_no_space",
537
+ "Ruby" => "{a:1,b:2}",
538
+ "ParseTree" => s(:hash,
539
+ s(:lit, :a), s(:lit, 1),
540
+ s(:lit, :b), s(:lit, 2)),
541
+ "Ruby2Ruby" => "{ :a => 1, :b => 2 }")
542
+
543
+ add_19tests("hash_new_with_keyword",
544
+ "Ruby" => "{ true: 1, b: 2 }",
545
+ "ParseTree" => s(:hash,
546
+ s(:lit, :true), s(:lit, 1),
547
+ s(:lit, :b), s(:lit, 2)),
548
+ "Ruby2Ruby" => "{ :true => 1, :b => 2 }")
549
+
550
+ add_19tests("if_post_not",
551
+ "Ruby" => "a if not b",
552
+ "ParseTree" => s(:if, s(:call, s(:call, nil, :b), :"!"),
553
+ s(:call, nil, :a),
554
+ nil),
555
+ "Ruby2Ruby" => "a unless b")
556
+
557
+ add_19tests("if_pre_not",
558
+ "Ruby" => "if not b then a end",
559
+ "ParseTree" => s(:if, s(:call, s(:call, nil, :b), :"!"),
560
+ s(:call, nil, :a),
561
+ nil),
562
+ "Ruby2Ruby" => "a unless b")
563
+
564
+ add_19tests("label_in_bare_hash_in_array_in_ternary",
565
+ "Ruby" => "1 ? [:a, b: 2] : 1",
566
+ "ParseTree" => s(:if, s(:lit, 1),
567
+ s(:array,
568
+ s(:lit, :a),
569
+ s(:hash, s(:lit, :b), s(:lit, 2))),
570
+ s(:lit, 1)),
571
+ "Ruby2Ruby" => "1 ? ([:a, { :b => 2 }]) : (1)")
572
+
573
+ add_19tests("label_in_callargs_in_ternary",
574
+ "Ruby" => "1 ? m(a: 2) : 1",
575
+ "ParseTree" => s(:if, s(:lit, 1),
576
+ s(:call, nil, :m,
577
+ s(:hash, s(:lit, :a), s(:lit, 2))),
578
+ s(:lit, 1)),
579
+ "Ruby2Ruby" => "1 ? (m(:a => 2)) : (1)")
580
+
581
+ add_19tests("not",
582
+ "Ruby" => "(not true)",
583
+ "ParseTree" => s(:call, s(:true), :"!"))
584
+
585
+ add_19tests("splat_fcall_middle",
586
+ "Ruby" => "meth(1, *[2], 3)",
587
+ "ParseTree" => s(:call,
588
+ nil,
589
+ :meth,
590
+ s(:lit, 1),
591
+ s(:splat, s(:array, s(:lit, 2))),
592
+ s(:lit, 3)))
593
+
594
+ add_19tests("str_question_control",
595
+ "Ruby" => '?\M-\C-a',
596
+ "ParseTree" => s(:str, "\x81"),
597
+ "Ruby2Ruby" => "\"\\x81\"")
598
+
599
+ add_19tests("str_question_escape",
600
+ "Ruby" => '?\n',
601
+ "ParseTree" => s(:str, "\n"),
602
+ "Ruby2Ruby" => "\"\\n\"")
603
+
604
+ add_19tests("str_question_literal",
605
+ "Ruby" => "?a",
606
+ "ParseTree" => s(:str, "a"),
607
+ "Ruby2Ruby" => '"a"')
608
+
609
+ add_19tests("unless_post_not",
610
+ "Ruby" => "a unless not b",
611
+ "ParseTree" => s(:if, s(:call, s(:call, nil, :b), :"!"),
612
+ nil,
613
+ s(:call, nil, :a)),
614
+ "Ruby2Ruby" => "a if b")
615
+
616
+ add_19tests("unless_pre_not",
617
+ "Ruby" => "unless not b then a end",
618
+ "ParseTree" => s(:if, s(:call, s(:call, nil, :b), :"!"),
619
+ nil,
620
+ s(:call, nil, :a)),
621
+ "Ruby2Ruby" => "a if b")
622
+
623
+ add_19tests("until_post_not",
624
+ "Ruby" => "begin\n (1 + 1)\nend until not true",
625
+ "ParseTree" => s(:until, s(:call, s(:true), :"!"),
626
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), false),
627
+ "Ruby2Ruby" => "begin\n (1 + 1)\nend while true")
628
+
629
+ add_19tests("until_pre_not",
630
+ "Ruby" => "until not true do\n (1 + 1)\nend",
631
+ "ParseTree" => s(:until, s(:call, s(:true), :"!"),
632
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
633
+ "Ruby2Ruby" => "while true do\n (1 + 1)\nend")
634
+
635
+ add_19tests("until_pre_not_mod",
636
+ "Ruby" => "(1 + 1) until not true",
637
+ "ParseTree" => s(:until, s(:call, s(:true), :"!"),
638
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
639
+ "Ruby2Ruby" => "while true do\n (1 + 1)\nend")
640
+
641
+ add_19tests("while_post_not",
642
+ "Ruby" => "begin\n (1 + 1)\nend while not true",
643
+ "ParseTree" => s(:while, s(:call, s(:true), :"!"),
644
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), false),
645
+ "Ruby2Ruby" => "begin\n (1 + 1)\nend until true")
646
+
647
+ add_19tests("while_pre_not",
648
+ "Ruby" => "while not true do\n (1 + 1)\nend",
649
+ "ParseTree" => s(:while, s(:call, s(:true), :"!"),
650
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
651
+ "Ruby2Ruby" => "until true do\n (1 + 1)\nend")
652
+
653
+ add_19tests("while_pre_not_mod",
654
+ "Ruby" => "(1 + 1) while not true",
655
+ "ParseTree" => s(:while, s(:call, s(:true), :"!"),
656
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
657
+ "Ruby2Ruby" => "until true do\n (1 + 1)\nend") # FIX
658
+
659
+ ###
660
+ # Shared tests:
661
+
662
+ add_tests("alias",
663
+ "Ruby" => "class X\n alias :y :x\nend",
664
+ "ParseTree" => s(:class, :X, nil,
665
+ s(:alias, s(:lit, :y), s(:lit, :x))))
666
+
667
+ add_tests("alias_ugh",
668
+ "Ruby" => "class X\n alias y x\nend",
669
+ "ParseTree" => s(:class, :X, nil,
670
+ s(:alias, s(:lit, :y), s(:lit, :x))),
671
+ "Ruby2Ruby" => "class X\n alias :y :x\nend")
672
+
673
+ add_tests("and",
674
+ "Ruby" => "a and b",
675
+ "ParseTree" => s(:and,
676
+ s(:call, nil, :a),
677
+ s(:call, nil, :b)))
678
+
679
+ add_tests("argscat_inside",
680
+ "Ruby" => "a = [b, *c]",
681
+ "ParseTree" => s(:lasgn, :a,
682
+ s(:array,
683
+ s(:call, nil, :b),
684
+ s(:splat, s(:call, nil, :c)))))
685
+
686
+ add_tests("argscat_svalue",
687
+ "Ruby" => "a = b, c, *d",
688
+ "ParseTree" => s(:lasgn, :a,
689
+ s(:svalue,
690
+ s(:array,
691
+ s(:call, nil, :b),
692
+ s(:call, nil, :c),
693
+ s(:splat,
694
+ s(:call, nil, :d))))))
695
+
696
+ add_tests("argspush",
697
+ "Ruby" => "a[*b] = c",
698
+ "ParseTree" => s(:attrasgn,
699
+ s(:call, nil, :a),
700
+ :[]=,
701
+ s(:splat,
702
+ s(:call, nil, :b)),
703
+ s(:call, nil, :c)))
704
+
705
+ add_tests("array",
706
+ "Ruby" => "[1, :b, \"c\"]",
707
+ "ParseTree" => s(:array, s(:lit, 1), s(:lit, :b), s(:str, "c")))
708
+
709
+ add_tests("array_pct_W",
710
+ "Ruby" => "%W[a b c]",
711
+ "ParseTree" => s(:array,
712
+ s(:str, "a"), s(:str, "b"), s(:str, "c")),
713
+ "Ruby2Ruby" => "[\"a\", \"b\", \"c\"]")
714
+
715
+ add_tests("array_pct_W_dstr",
716
+ "Ruby" => "%W[a #\{@b} c]",
717
+ "ParseTree" => s(:array,
718
+ s(:str, "a"),
719
+ s(:dstr, "", s(:evstr, s(:ivar, :@b))),
720
+ s(:str, "c")),
721
+ "Ruby2Ruby" => "[\"a\", \"#\{@b}\", \"c\"]")
722
+
723
+ add_tests("array_pct_w",
724
+ "Ruby" => "%w[a b c]",
725
+ "ParseTree" => s(:array,
726
+ s(:str, "a"), s(:str, "b"), s(:str, "c")),
727
+ "Ruby2Ruby" => "[\"a\", \"b\", \"c\"]")
728
+
729
+ add_tests("array_pct_w_dstr",
730
+ "Ruby" => "%w[a #\{@b} c]",
731
+ "ParseTree" => s(:array,
732
+ s(:str, "a"),
733
+ s(:str, "#\{@b}"),
734
+ s(:str, "c")),
735
+ "Ruby2Ruby" => "[\"a\", \"\\\#{@b}\", \"c\"]") # TODO: huh?
736
+
737
+ add_tests("attrasgn",
738
+ "Ruby" => "y = 0\n42.method = y\n",
739
+ "ParseTree" => s(:block,
740
+ s(:lasgn, :y, s(:lit, 0)),
741
+ s(:attrasgn,
742
+ s(:lit, 42), :method=, s(:lvar, :y))))
743
+
744
+ add_tests("attrasgn_index_equals",
745
+ "Ruby" => "a[42] = 24",
746
+ "ParseTree" => s(:attrasgn,
747
+ s(:call, nil, :a),
748
+ :[]=,
749
+ s(:lit, 42), s(:lit, 24)))
750
+
751
+ add_tests("attrasgn_index_equals_space",
752
+ "Ruby" => "a = []; a [42] = 24",
753
+ "ParseTree" => s(:block,
754
+ s(:lasgn, :a, s(:array)),
755
+ s(:attrasgn, s(:lvar, :a), :[]=,
756
+ s(:lit, 42), s(:lit, 24))),
757
+ "Ruby2Ruby" => "a = []\na[42] = 24\n")
758
+
759
+ add_tests("back_ref",
760
+ "Ruby" => "[$&, $`, $', $+]",
761
+ "ParseTree" => s(:array,
762
+ s(:back_ref, :&),
763
+ s(:back_ref, :"`"),
764
+ s(:back_ref, :"'"),
765
+ s(:back_ref, :+)))
766
+
767
+ add_tests("begin",
768
+ "Ruby" => "begin\n (1 + 1)\nend",
769
+ "ParseTree" => s(:call, s(:lit, 1), :+, s(:lit, 1)),
770
+ "Ruby2Ruby" => "(1 + 1)")
771
+
772
+ add_tests("begin_def",
773
+ "Ruby" => "def m\n begin\n\n end\nend",
774
+ "ParseTree" => s(:defn, :m, s(:args), s(:nil)),
775
+ "Ruby2Ruby" => "def m\n # do nothing\nend")
776
+
777
+ add_tests("begin_rescue_ensure",
778
+ "Ruby" => "begin\n a\nrescue\n # do nothing\nensure\n # do nothing\nend",
779
+ "ParseTree" => s(:ensure,
780
+ s(:rescue,
781
+ s(:call, nil, :a),
782
+ s(:resbody, s(:array), nil)),
783
+ s(:nil)))
784
+
785
+ add_tests("begin_rescue_ensure_all_empty",
786
+ "Ruby" => "begin\n # do nothing\nrescue\n # do nothing\nensure\n # do nothing\nend",
787
+ "ParseTree" => s(:ensure,
788
+ s(:rescue,
789
+ s(:resbody, s(:array), nil)),
790
+ s(:nil)))
791
+
792
+ add_tests("begin_rescue_twice",
793
+ "Ruby" => "begin\n a\nrescue => mes\n # do nothing\nend\nbegin\n b\nrescue => mes\n # do nothing\nend\n",
794
+ "ParseTree" => s(:block,
795
+ s(:rescue,
796
+ s(:call, nil, :a),
797
+ s(:resbody,
798
+ s(:array, s(:lasgn, :mes, s(:gvar, :$!))),
799
+ nil)),
800
+ s(:rescue,
801
+ s(:call, nil, :b),
802
+ s(:resbody,
803
+ s(:array,
804
+ s(:lasgn, :mes, s(:gvar, :$!))),
805
+ nil))))
806
+ copy_test_case "begin_rescue_twice", "Ruby"
807
+ copy_test_case "begin_rescue_twice", "ParseTree"
808
+
809
+ add_tests("block_attrasgn",
810
+ "Ruby" => "def self.setup(ctx)\n bind = allocate\n bind.context = ctx\n return bind\nend",
811
+ "ParseTree" => s(:defs, s(:self), :setup,
812
+ s(:args, :ctx),
813
+ s(:lasgn, :bind, s(:call, nil, :allocate)),
814
+ s(:attrasgn,
815
+ s(:lvar, :bind), :context=, s(:lvar, :ctx)),
816
+ s(:return, s(:lvar, :bind))))
817
+
818
+ add_tests("block_lasgn",
819
+ "Ruby" => "x = (y = 1\n(y + 2))",
820
+ "ParseTree" => s(:lasgn, :x,
821
+ s(:block,
822
+ s(:lasgn, :y, s(:lit, 1)),
823
+ s(:call, s(:lvar, :y), :+, s(:lit, 2)))))
824
+
825
+ add_tests("block_mystery_block",
826
+ "Ruby" => "a(b) do\n if b then\n true\n else\n c = false\n d { |x| c = true }\n c\n end\nend",
827
+ "ParseTree" => s(:iter,
828
+ s(:call, nil, :a, s(:call, nil, :b)),
829
+ 0,
830
+ s(:if,
831
+ s(:call, nil, :b),
832
+ s(:true),
833
+ s(:block,
834
+ s(:lasgn, :c, s(:false)),
835
+ s(:iter,
836
+ s(:call, nil, :d),
837
+ s(:args, :x),
838
+ s(:lasgn, :c, s(:true))),
839
+ s(:lvar, :c)))))
840
+
841
+ add_tests("block_pass_args_and_splat",
842
+ "Ruby" => "def blah(*args, &block)\n other(42, *args, &block)\nend",
843
+ "ParseTree" => s(:defn, :blah, s(:args, :"*args", :"&block"),
844
+ s(:call, nil, :other,
845
+ s(:lit, 42),
846
+ s(:splat, s(:lvar, :args)),
847
+ s(:block_pass, s(:lvar, :block)))))
848
+
849
+ add_tests("block_pass_call_0",
850
+ "Ruby" => "a.b(&c)",
851
+ "ParseTree" => s(:call,
852
+ s(:call, nil, :a),
853
+ :b,
854
+ s(:block_pass, s(:call, nil, :c))))
855
+
856
+ add_tests("block_pass_call_1",
857
+ "Ruby" => "a.b(4, &c)",
858
+ "ParseTree" => s(:call,
859
+ s(:call, nil, :a),
860
+ :b,
861
+ s(:lit, 4),
862
+ s(:block_pass, s(:call, nil, :c))))
863
+
864
+ add_tests("block_pass_call_n",
865
+ "Ruby" => "a.b(1, 2, 3, &c)",
866
+ "ParseTree" => s(:call,
867
+ s(:call, nil, :a),
868
+ :b,
869
+ s(:lit, 1), s(:lit, 2), s(:lit, 3),
870
+ s(:block_pass, s(:call, nil, :c))))
871
+
872
+ add_tests("block_pass_fcall_0",
873
+ "Ruby" => "a(&b)",
874
+ "ParseTree" => s(:call, nil, :a,
875
+ s(:block_pass, s(:call, nil, :b))))
876
+
877
+ add_tests("block_pass_fcall_1",
878
+ "Ruby" => "a(4, &b)",
879
+ "ParseTree" => s(:call, nil, :a,
880
+ s(:lit, 4),
881
+ s(:block_pass, s(:call, nil, :b))))
882
+
883
+ add_tests("block_pass_fcall_n",
884
+ "Ruby" => "a(1, 2, 3, &b)",
885
+ "ParseTree" => s(:call, nil, :a,
886
+ s(:lit, 1), s(:lit, 2), s(:lit, 3),
887
+ s(:block_pass, s(:call, nil, :b))))
888
+
889
+ add_tests("block_pass_omgwtf",
890
+ "Ruby" => "define_attr_method(:x, :sequence_name, &Proc.new { |*args| nil })",
891
+ "ParseTree" => s(:call, nil, :define_attr_method,
892
+ s(:lit, :x),
893
+ s(:lit, :sequence_name),
894
+ s(:block_pass,
895
+ s(:iter,
896
+ s(:call, s(:const, :Proc), :new),
897
+ s(:args, :"*args"),
898
+ s(:nil)))))
899
+
900
+ add_tests("block_pass_splat",
901
+ "Ruby" => "def blah(*args, &block)\n other(*args, &block)\nend",
902
+ "ParseTree" => s(:defn, :blah,
903
+ s(:args, :"*args", :"&block"),
904
+ s(:call, nil, :other,
905
+ s(:splat, s(:lvar, :args)),
906
+ s(:block_pass, s(:lvar, :block)))))
907
+
908
+ add_tests("block_pass_thingy",
909
+ "Ruby" => "r.read_body(dest, &block)",
910
+ "ParseTree" => s(:call,
911
+ s(:call, nil, :r),
912
+ :read_body,
913
+ s(:call, nil, :dest),
914
+ s(:block_pass, s(:call, nil, :block))))
915
+
916
+ add_tests("block_stmt_after",
917
+ "Ruby" => "def f\n begin\n b\n rescue\n c\n end\n\n d\nend",
918
+ "ParseTree" => s(:defn, :f, s(:args),
919
+ s(:rescue,
920
+ s(:call, nil, :b),
921
+ s(:resbody,
922
+ s(:array),
923
+ s(:call, nil, :c))),
924
+ s(:call, nil, :d)),
925
+ "Ruby2Ruby" => "def f\n b rescue c\n d\nend")
926
+ copy_test_case "block_stmt_after", "Ruby"
927
+ copy_test_case "block_stmt_after", "ParseTree"
928
+ copy_test_case "block_stmt_after", "Ruby2Ruby"
929
+
930
+ add_tests("block_stmt_before",
931
+ "Ruby" => "def f\n a\n begin\n b\n rescue\n c\n end\nend",
932
+ "ParseTree" => s(:defn, :f, s(:args),
933
+ s(:call, nil, :a),
934
+ s(:rescue, s(:call, nil, :b),
935
+ s(:resbody,
936
+ s(:array),
937
+ s(:call, nil, :c)))),
938
+ "Ruby2Ruby" => "def f\n a\n b rescue c\nend")
939
+ # oddly... this one doesn't HAVE any differences when verbose... new?
940
+ copy_test_case "block_stmt_before", "Ruby"
941
+ copy_test_case "block_stmt_before", "ParseTree"
942
+ copy_test_case "block_stmt_before", "Ruby2Ruby"
943
+
944
+ add_tests("block_stmt_both",
945
+ "Ruby" => "def f\n a\n begin\n b\n rescue\n c\n end\n d\nend",
946
+ "ParseTree" => s(:defn, :f, s(:args),
947
+ s(:call, nil, :a),
948
+ s(:rescue,
949
+ s(:call, nil, :b),
950
+ s(:resbody,
951
+ s(:array),
952
+ s(:call, nil, :c))),
953
+ s(:call, nil, :d)),
954
+ "Ruby2Ruby" => "def f\n a\n b rescue c\n d\nend")
955
+ copy_test_case "block_stmt_both", "Ruby"
956
+ copy_test_case "block_stmt_both", "ParseTree"
957
+ copy_test_case "block_stmt_both", "Ruby2Ruby"
958
+
959
+ add_tests("bmethod",
960
+ "Ruby" => [Examples, :unsplatted],
961
+ "ParseTree" => s(:defn, :unsplatted, s(:args, :x),
962
+ s(:call, s(:lvar, :x), :+, s(:lit, 1))),
963
+ "Ruby2Ruby" => "def unsplatted(x)\n (x + 1)\nend")
964
+
965
+ add_tests("bmethod_noargs",
966
+ "Ruby" => [Examples, :bmethod_noargs],
967
+ "ParseTree" => s(:defn, :bmethod_noargs, s(:args),
968
+ s(:call,
969
+ s(:call, nil, :x),
970
+ :"+",
971
+ s(:lit, 1))),
972
+ "Ruby2Ruby" => "def bmethod_noargs\n (x + 1)\nend")
973
+
974
+ add_tests("bmethod_splat",
975
+ "Ruby" => [Examples, :splatted],
976
+ "ParseTree" => s(:defn, :splatted, s(:args, :"*args"),
977
+ s(:lasgn, :y,
978
+ s(:call, s(:lvar, :args), :first)),
979
+ s(:call, s(:lvar, :y), :+, s(:lit, 42))),
980
+ "Ruby2Ruby" => "def splatted(*args)\n y = args.first\n (y + 42)\nend")
981
+
982
+ add_tests("break",
983
+ "Ruby" => "loop { break if true }",
984
+ "ParseTree" => s(:iter,
985
+ s(:call, nil, :loop),
986
+ 0,
987
+ s(:if, s(:true), s(:break), nil)))
988
+
989
+ add_tests("break_arg",
990
+ "Ruby" => "loop { break 42 if true }",
991
+ "ParseTree" => s(:iter,
992
+ s(:call, nil, :loop),
993
+ 0,
994
+ s(:if, s(:true), s(:break, s(:lit, 42)), nil)))
995
+
996
+ add_tests("call",
997
+ "Ruby" => "self.method",
998
+ "ParseTree" => s(:call, s(:self), :method))
999
+
1000
+ add_tests("call_arglist",
1001
+ "Ruby" => "o.puts(42)",
1002
+ "ParseTree" => s(:call, s(:call, nil, :o), :puts, s(:lit, 42)))
1003
+
1004
+ add_tests("call_arglist_hash",
1005
+ "Ruby" => "o.m(:a => 1, :b => 2)",
1006
+ "ParseTree" => s(:call,
1007
+ s(:call, nil, :o), :m,
1008
+ s(:hash,
1009
+ s(:lit, :a), s(:lit, 1),
1010
+ s(:lit, :b), s(:lit, 2))))
1011
+
1012
+ add_tests("call_arglist_norm_hash",
1013
+ "Ruby" => "o.m(42, :a => 1, :b => 2)",
1014
+ "ParseTree" => s(:call,
1015
+ s(:call, nil, :o), :m,
1016
+ s(:lit, 42),
1017
+ s(:hash,
1018
+ s(:lit, :a), s(:lit, 1),
1019
+ s(:lit, :b), s(:lit, 2))))
1020
+
1021
+ add_tests("call_command",
1022
+ "Ruby" => "1.b(c)",
1023
+ "ParseTree" => s(:call,
1024
+ s(:lit, 1),
1025
+ :b,
1026
+ s(:call, nil, :c)))
1027
+
1028
+ add_tests("call_expr",
1029
+ "Ruby" => "(v = (1 + 1)).zero?",
1030
+ "ParseTree" => s(:call,
1031
+ s(:lasgn, :v,
1032
+ s(:call, s(:lit, 1), :+, s(:lit, 1))),
1033
+ :zero?))
1034
+
1035
+ add_tests("call_index",
1036
+ "Ruby" => "a = []\na[42]\n",
1037
+ "ParseTree" => s(:block,
1038
+ s(:lasgn, :a, s(:array)),
1039
+ s(:call, s(:lvar, :a), :[], s(:lit, 42))))
1040
+
1041
+ add_tests("call_index_no_args",
1042
+ "Ruby" => "a[]",
1043
+ "ParseTree" => s(:call, s(:call, nil, :a),
1044
+ :[]))
1045
+
1046
+ add_tests("call_index_space",
1047
+ "Ruby" => "a = []\na [42]\n",
1048
+ "ParseTree" => s(:block,
1049
+ s(:lasgn, :a, s(:array)),
1050
+ s(:call, s(:lvar, :a), :[], s(:lit, 42))),
1051
+ "Ruby2Ruby" => "a = []\na[42]\n")
1052
+
1053
+ add_tests("call_no_space_symbol",
1054
+ "Ruby" => "foo:bar",
1055
+ "ParseTree" => s(:call, nil, :foo, s(:lit, :bar)),
1056
+ "Ruby2Ruby" => "foo(:bar)")
1057
+
1058
+ add_tests("call_unary_neg",
1059
+ "Ruby" => "-2**31",
1060
+ "ParseTree" => s(:call,
1061
+ s(:call, s(:lit, 2), :**, s(:lit, 31)),
1062
+ :-@),
1063
+ "Ruby2Ruby" => "-(2 ** 31)")
1064
+
1065
+ add_tests("case",
1066
+ "Ruby" => "var = 2\nresult = \"\"\ncase var\nwhen 1 then\n puts(\"something\")\n result = \"red\"\nwhen 2, 3 then\n result = \"yellow\"\nwhen 4 then\n # do nothing\nelse\n result = \"green\"\nend\ncase result\nwhen \"red\" then\n var = 1\nwhen \"yellow\" then\n var = 2\nwhen \"green\" then\n var = 3\nelse\n # do nothing\nend\n",
1067
+ "ParseTree" => s(:block,
1068
+ s(:lasgn, :var, s(:lit, 2)),
1069
+ s(:lasgn, :result, s(:str, "")),
1070
+ s(:case,
1071
+ s(:lvar, :var),
1072
+ s(:when,
1073
+ s(:array, s(:lit, 1)),
1074
+ s(:call, nil, :puts, s(:str, "something")),
1075
+ s(:lasgn, :result, s(:str, "red"))),
1076
+ s(:when,
1077
+ s(:array, s(:lit, 2), s(:lit, 3)),
1078
+ s(:lasgn, :result, s(:str, "yellow"))),
1079
+ s(:when, s(:array, s(:lit, 4)), nil),
1080
+ s(:lasgn, :result, s(:str, "green"))),
1081
+ s(:case,
1082
+ s(:lvar, :result),
1083
+ s(:when, s(:array, s(:str, "red")),
1084
+ s(:lasgn, :var, s(:lit, 1))),
1085
+ s(:when, s(:array, s(:str, "yellow")),
1086
+ s(:lasgn, :var, s(:lit, 2))),
1087
+ s(:when, s(:array, s(:str, "green")),
1088
+ s(:lasgn, :var, s(:lit, 3))),
1089
+ nil)))
1090
+
1091
+ add_tests("case_nested",
1092
+ "Ruby" => "var1 = 1\nvar2 = 2\nresult = nil\ncase var1\nwhen 1 then\n case var2\n when 1 then\n result = 1\n when 2 then\n result = 2\n else\n result = 3\n end\nwhen 2 then\n case var2\n when 1 then\n result = 4\n when 2 then\n result = 5\n else\n result = 6\n end\nelse\n result = 7\nend\n",
1093
+ "ParseTree" => s(:block,
1094
+ s(:lasgn, :var1, s(:lit, 1)),
1095
+ s(:lasgn, :var2, s(:lit, 2)),
1096
+ s(:lasgn, :result, s(:nil)),
1097
+ s(:case,
1098
+ s(:lvar, :var1),
1099
+ s(:when, s(:array, s(:lit, 1)),
1100
+ s(:case,
1101
+ s(:lvar, :var2),
1102
+ s(:when, s(:array, s(:lit, 1)),
1103
+ s(:lasgn, :result, s(:lit, 1))),
1104
+ s(:when, s(:array, s(:lit, 2)),
1105
+ s(:lasgn, :result, s(:lit, 2))),
1106
+ s(:lasgn, :result, s(:lit, 3)))),
1107
+ s(:when, s(:array, s(:lit, 2)),
1108
+ s(:case,
1109
+ s(:lvar, :var2),
1110
+ s(:when, s(:array, s(:lit, 1)),
1111
+ s(:lasgn, :result, s(:lit, 4))),
1112
+ s(:when, s(:array, s(:lit, 2)),
1113
+ s(:lasgn, :result, s(:lit, 5))),
1114
+ s(:lasgn, :result, s(:lit, 6)))),
1115
+ s(:lasgn, :result, s(:lit, 7)))))
1116
+
1117
+ add_tests("case_nested_inner_no_expr",
1118
+ "Ruby" => "case a\nwhen b then\n case\n when (d and e) then\n f\n else\n # do nothing\n end\nelse\n # do nothing\nend",
1119
+ "ParseTree" => s(:case, s(:call, nil, :a),
1120
+ s(:when,
1121
+ s(:array, s(:call, nil, :b)),
1122
+ s(:case, nil,
1123
+ s(:when,
1124
+ s(:array,
1125
+ s(:and,
1126
+ s(:call, nil, :d),
1127
+ s(:call, nil, :e))),
1128
+ s(:call, nil, :f)),
1129
+ nil)),
1130
+ nil))
1131
+
1132
+ add_tests("case_no_expr",
1133
+ "Ruby" => "case\nwhen (a == 1) then\n :a\nwhen (a == 2) then\n :b\nelse\n :c\nend",
1134
+ "ParseTree" => s(:case, nil,
1135
+ s(:when,
1136
+ s(:array,
1137
+ s(:call,
1138
+ s(:call, nil, :a),
1139
+ :==,
1140
+ s(:lit, 1))),
1141
+ s(:lit, :a)),
1142
+ s(:when,
1143
+ s(:array,
1144
+ s(:call,
1145
+ s(:call, nil, :a),
1146
+ :==,
1147
+ s(:lit, 2))),
1148
+ s(:lit, :b)),
1149
+ s(:lit, :c)))
1150
+
1151
+ add_tests("case_splat",
1152
+ "Ruby" => "case a\nwhen :b, *c then\n d\nelse\n e\nend",
1153
+ "ParseTree" => s(:case, s(:call, nil, :a),
1154
+ s(:when,
1155
+ s(:array,
1156
+ s(:lit, :b),
1157
+ s(:splat, s(:call, nil, :c))),
1158
+ s(:call, nil, :d)),
1159
+ s(:call, nil, :e)))
1160
+
1161
+ add_tests("cdecl",
1162
+ "Ruby" => "X = 42",
1163
+ "ParseTree" => s(:cdecl, :X, s(:lit, 42)))
1164
+
1165
+ add_tests("class_plain",
1166
+ "Ruby" => "class X\n puts((1 + 1))\n \n def blah\n puts(\"hello\")\n end\nend",
1167
+ "ParseTree" => s(:class, :X, nil,
1168
+ s(:call, nil, :puts,
1169
+ s(:call, s(:lit, 1), :+, s(:lit, 1))),
1170
+ s(:defn, :blah, s(:args),
1171
+ s(:call, nil, :puts, s(:str, "hello")))))
1172
+
1173
+ add_tests("class_scoped",
1174
+ "Ruby" => "class X::Y\n c\nend",
1175
+ "ParseTree" => s(:class, s(:colon2, s(:const, :X), :Y), nil,
1176
+ s(:call, nil, :c)))
1177
+
1178
+ add_tests("class_scoped3",
1179
+ "Ruby" => "class ::Y\n c\nend",
1180
+ "ParseTree" => s(:class, s(:colon3, :Y), nil,
1181
+ s(:call, nil, :c)))
1182
+
1183
+ add_tests("class_super_array",
1184
+ "Ruby" => "class X < Array\nend",
1185
+ "ParseTree" => s(:class, :X, s(:const, :Array)))
1186
+
1187
+ add_tests("class_super_expr",
1188
+ "Ruby" => "class X < expr\nend",
1189
+ "ParseTree" => s(:class, :X, s(:call, nil, :expr)))
1190
+
1191
+ add_tests("class_super_object",
1192
+ "Ruby" => "class X < Object\nend",
1193
+ "ParseTree" => s(:class, :X, s(:const, :Object)))
1194
+
1195
+ add_tests("colon2",
1196
+ "Ruby" => "X::Y",
1197
+ "ParseTree" => s(:colon2, s(:const, :X), :Y))
1198
+
1199
+ add_tests("colon3",
1200
+ "Ruby" => "::X",
1201
+ "ParseTree" => s(:colon3, :X))
1202
+
1203
+ add_tests("const",
1204
+ "Ruby" => "X",
1205
+ "ParseTree" => s(:const, :X))
1206
+
1207
+ add_tests("constX",
1208
+ "Ruby" => "X = 1",
1209
+ "ParseTree" => s(:cdecl, :X, s(:lit, 1)))
1210
+
1211
+ add_tests("constY",
1212
+ "Ruby" => "::X = 1",
1213
+ "ParseTree" => s(:cdecl, s(:colon3, :X), s(:lit, 1)))
1214
+
1215
+ add_tests("constZ",
1216
+ "Ruby" => "X::Y = 1",
1217
+ "ParseTree" => s(:cdecl,
1218
+ s(:colon2, s(:const, :X), :Y),
1219
+ s(:lit, 1)))
1220
+
1221
+ add_tests("cvar",
1222
+ "Ruby" => "@@x",
1223
+ "ParseTree" => s(:cvar, :@@x))
1224
+
1225
+ add_tests("cvasgn",
1226
+ "Ruby" => "def x\n @@blah = 1\nend",
1227
+ "ParseTree" => s(:defn, :x, s(:args),
1228
+ s(:cvasgn, :@@blah, s(:lit, 1))))
1229
+
1230
+ add_tests("cvasgn_cls_method",
1231
+ "Ruby" => "def self.quiet_mode=(boolean)\n @@quiet_mode = boolean\nend",
1232
+ "ParseTree" => s(:defs, s(:self), :quiet_mode=,
1233
+ s(:args, :boolean),
1234
+ s(:cvasgn, :@@quiet_mode,
1235
+ s(:lvar, :boolean))))
1236
+
1237
+ add_tests("cvdecl",
1238
+ "Ruby" => "class X\n @@blah = 1\nend",
1239
+ "ParseTree" => s(:class, :X, nil,
1240
+ s(:cvdecl, :@@blah, s(:lit, 1))))
1241
+
1242
+ add_tests("dasgn_0",
1243
+ "Ruby" => "a.each { |x| b.each { |y| x = (x + 1) } if true }",
1244
+ "ParseTree" => s(:iter,
1245
+ s(:call, s(:call, nil, :a), :each),
1246
+ s(:args, :x),
1247
+ s(:if, s(:true),
1248
+ s(:iter,
1249
+ s(:call, s(:call, nil, :b), :each),
1250
+ s(:args, :y),
1251
+ s(:lasgn, :x,
1252
+ s(:call, s(:lvar, :x), :+, s(:lit, 1)))),
1253
+ nil)))
1254
+
1255
+ add_tests("dasgn_1",
1256
+ "Ruby" => "a.each { |x| b.each { |y| c = (c + 1) } if true }",
1257
+ "ParseTree" => s(:iter,
1258
+ s(:call, s(:call, nil, :a), :each),
1259
+ s(:args, :x),
1260
+ s(:if, s(:true),
1261
+ s(:iter,
1262
+ s(:call, s(:call, nil, :b), :each),
1263
+ s(:args, :y),
1264
+ s(:lasgn, :c,
1265
+ s(:call, s(:lvar, :c), :+, s(:lit, 1)))),
1266
+ nil)))
1267
+
1268
+ add_tests("dasgn_2",
1269
+ "Ruby" => "a.each do |x|\n if true then\n c = 0\n b.each { |y| c = (c + 1) }\n end\nend",
1270
+ "ParseTree" => s(:iter,
1271
+ s(:call, s(:call, nil, :a), :each),
1272
+ s(:args, :x),
1273
+ s(:if, s(:true),
1274
+ s(:block,
1275
+ s(:lasgn, :c, s(:lit, 0)),
1276
+ s(:iter,
1277
+ s(:call, s(:call, nil, :b), :each),
1278
+ s(:args, :y),
1279
+ s(:lasgn, :c,
1280
+ s(:call, s(:lvar, :c), :+,
1281
+ s(:lit, 1))))),
1282
+ nil)))
1283
+
1284
+ add_tests("dasgn_curr",
1285
+ "Ruby" => "data.each do |x, y|\n a = 1\n b = a\n b = a = x\nend",
1286
+ "ParseTree" => s(:iter,
1287
+ s(:call, s(:call, nil, :data), :each),
1288
+ s(:args, :x, :y),
1289
+ s(:block,
1290
+ s(:lasgn, :a, s(:lit, 1)),
1291
+ s(:lasgn, :b, s(:lvar, :a)),
1292
+ s(:lasgn, :b, s(:lasgn, :a, s(:lvar, :x))))))
1293
+
1294
+ add_tests("dasgn_icky",
1295
+ "Ruby" => "a do\n v = nil\n assert_block(full_message) do\n begin\n yield\n rescue Exception => v\n break\n end\n end\nend",
1296
+ "ParseTree" => s(:iter,
1297
+ s(:call, nil, :a),
1298
+ 0,
1299
+ s(:block,
1300
+ s(:lasgn, :v, s(:nil)),
1301
+ s(:iter,
1302
+ s(:call, nil, :assert_block,
1303
+ s(:call, nil, :full_message)),
1304
+ 0,
1305
+ s(:rescue,
1306
+ s(:yield),
1307
+ s(:resbody,
1308
+ s(:array,
1309
+ s(:const, :Exception),
1310
+ s(:lasgn, :v, s(:gvar, :$!))),
1311
+ s(:break)))))))
1312
+
1313
+ add_tests("dasgn_mixed",
1314
+ "Ruby" => "t = 0\nns.each { |n| t += n }\n",
1315
+ "ParseTree" => s(:block,
1316
+ s(:lasgn, :t, s(:lit, 0)),
1317
+ s(:iter,
1318
+ s(:call, s(:call, nil, :ns), :each),
1319
+ s(:args, :n),
1320
+ s(:lasgn, :t,
1321
+ s(:call, s(:lvar, :t), :+, s(:lvar, :n))))),
1322
+ "Ruby2Ruby" => "t = 0\nns.each { |n| t = (t + n) }\n")
1323
+
1324
+ add_tests("defined",
1325
+ "Ruby" => "defined? $x",
1326
+ "ParseTree" => s(:defined, s(:gvar, :$x)))
1327
+
1328
+ add_tests("defn_args_block", # TODO: make all the defn_args* p their arglist
1329
+ "Ruby" => "def f(&block)\n # do nothing\nend",
1330
+ "ParseTree" => s(:defn, :f, s(:args, :"&block"),
1331
+ s(:nil)))
1332
+
1333
+ add_tests("defn_args_mand",
1334
+ "Ruby" => "def f(mand)\n # do nothing\nend",
1335
+ "ParseTree" => s(:defn, :f, s(:args, :mand),
1336
+ s(:nil)))
1337
+
1338
+ add_tests("defn_args_mand_block",
1339
+ "Ruby" => "def f(mand, &block)\n # do nothing\nend",
1340
+ "ParseTree" => s(:defn, :f, s(:args, :mand, :"&block"),
1341
+ s(:nil)))
1342
+
1343
+ add_tests("defn_args_mand_opt",
1344
+ "Ruby" => "def f(mand, opt = 42)\n # do nothing\nend",
1345
+ "ParseTree" => s(:defn, :f,
1346
+ s(:args, :mand, s(:lasgn, :opt, s(:lit, 42))),
1347
+ s(:nil)))
1348
+
1349
+ add_tests("defn_args_mand_opt_block",
1350
+ "Ruby" => "def f(mand, opt = 42, &block)\n # do nothing\nend",
1351
+ "ParseTree" => s(:defn, :f,
1352
+ s(:args, :mand, s(:lasgn, :opt, s(:lit, 42)), :"&block"),
1353
+ s(:nil)))
1354
+
1355
+ add_tests("defn_args_mand_opt_splat",
1356
+ "Ruby" => "def f(mand, opt = 42, *rest)\n # do nothing\nend",
1357
+ "ParseTree" => s(:defn, :f,
1358
+ s(:args, :mand, s(:lasgn, :opt, s(:lit, 42)), :"*rest"),
1359
+ s(:nil)))
1360
+
1361
+ add_tests("defn_args_mand_opt_splat_block",
1362
+ "Ruby" => "def f(mand, opt = 42, *rest, &block)\n # do nothing\nend",
1363
+ "ParseTree" => s(:defn, :f,
1364
+ s(:args, :mand, s(:lasgn, :opt, s(:lit, 42)), :"*rest", :"&block"),
1365
+ s(:nil)))
1366
+
1367
+ add_tests("defn_args_mand_opt_splat_no_name",
1368
+ "Ruby" => "def x(a, b = 42, *)\n # do nothing\nend",
1369
+ "ParseTree" => s(:defn, :x,
1370
+ s(:args, :a, s(:lasgn, :b, s(:lit, 42)), :"*"),
1371
+ s(:nil)))
1372
+
1373
+ add_tests("defn_args_mand_splat",
1374
+ "Ruby" => "def f(mand, *rest)\n # do nothing\nend",
1375
+ "ParseTree" => s(:defn, :f,
1376
+ s(:args, :mand, :"*rest"),
1377
+ s(:nil)))
1378
+
1379
+ add_tests("defn_args_mand_splat_block",
1380
+ "Ruby" => "def f(mand, *rest, &block)\n # do nothing\nend",
1381
+ "ParseTree" => s(:defn, :f,
1382
+ s(:args, :mand, :"*rest", :"&block"),
1383
+ s(:nil)))
1384
+
1385
+ add_tests("defn_args_mand_splat_no_name",
1386
+ "Ruby" => "def x(a, *args)\n p(a, args)\nend",
1387
+ "ParseTree" => s(:defn, :x, s(:args, :a, :"*args"),
1388
+ s(:call, nil, :p,
1389
+ s(:lvar, :a), s(:lvar, :args))))
1390
+
1391
+ add_tests("defn_args_none",
1392
+ "Ruby" => "def empty\n # do nothing\nend",
1393
+ "ParseTree" => s(:defn, :empty, s(:args),
1394
+ s(:nil)))
1395
+
1396
+ add_tests("defn_args_opt",
1397
+ "Ruby" => "def f(opt = 42)\n # do nothing\nend",
1398
+ "ParseTree" => s(:defn, :f,
1399
+ s(:args, s(:lasgn, :opt, s(:lit, 42))),
1400
+ s(:nil)))
1401
+
1402
+ add_tests("defn_args_opt_block",
1403
+ "Ruby" => "def f(opt = 42, &block)\n # do nothing\nend",
1404
+ "ParseTree" => s(:defn, :f,
1405
+ s(:args, s(:lasgn, :opt, s(:lit, 42)), :"&block"),
1406
+ s(:nil)))
1407
+
1408
+ add_tests("defn_args_opt_splat",
1409
+ "Ruby" => "def f(opt = 42, *rest)\n # do nothing\nend",
1410
+ "ParseTree" => s(:defn, :f,
1411
+ s(:args, s(:lasgn, :opt, s(:lit, 42)), :"*rest"),
1412
+ s(:nil)))
1413
+
1414
+ add_tests("defn_args_opt_splat_block",
1415
+ "Ruby" => "def f(opt = 42, *rest, &block)\n # do nothing\nend",
1416
+ "ParseTree" => s(:defn, :f,
1417
+ s(:args,
1418
+ s(:lasgn, :opt, s(:lit, 42)),
1419
+ :"*rest", :"&block"),
1420
+ s(:nil)))
1421
+
1422
+ add_tests("defn_args_opt_splat_no_name",
1423
+ "Ruby" => "def x(b = 42, *)\n # do nothing\nend",
1424
+ "ParseTree" => s(:defn, :x,
1425
+ s(:args, s(:lasgn, :b, s(:lit, 42)), :"*"),
1426
+ s(:nil)))
1427
+
1428
+ add_tests("defn_args_splat",
1429
+ "Ruby" => "def f(*rest)\n # do nothing\nend",
1430
+ "ParseTree" => s(:defn, :f, s(:args, :"*rest"),
1431
+ s(:nil)))
1432
+
1433
+ add_tests("defn_args_splat_no_name",
1434
+ "Ruby" => "def x(*)\n # do nothing\nend",
1435
+ "ParseTree" => s(:defn, :x, s(:args, :"*"),
1436
+ s(:nil)))
1437
+
1438
+ add_tests("defn_or",
1439
+ "Ruby" => "def |(o)\n # do nothing\nend",
1440
+ "ParseTree" => s(:defn, :|, s(:args, :o),
1441
+ s(:nil)))
1442
+
1443
+ add_tests("defn_rescue",
1444
+ "Ruby" => "def eql?(resource)\n (self.uuid == resource.uuid)\nrescue\n false\nend",
1445
+ "ParseTree" => s(:defn, :eql?,
1446
+ s(:args, :resource),
1447
+ s(:rescue,
1448
+ s(:call,
1449
+ s(:call, s(:self), :uuid),
1450
+ :==,
1451
+ s(:call, s(:lvar, :resource), :uuid)),
1452
+ s(:resbody, s(:array), s(:false)))),
1453
+ "Ruby2Ruby" => "def eql?(resource)\n (self.uuid == resource.uuid) rescue false\nend")
1454
+
1455
+ add_tests("defn_rescue_mri_verbose_flag",
1456
+ "Ruby" => "def eql?(resource)\n (self.uuid == resource.uuid)\nrescue\n false\nend",
1457
+ "ParseTree" => s(:defn, :eql?,
1458
+ s(:args, :resource),
1459
+ s(:rescue,
1460
+ s(:call,
1461
+ s(:call, s(:self), :uuid),
1462
+ :==,
1463
+ s(:call, s(:lvar, :resource), :uuid)),
1464
+ s(:resbody, s(:array), s(:false)))),
1465
+ "Ruby2Ruby" => "def eql?(resource)\n (self.uuid == resource.uuid) rescue false\nend")
1466
+
1467
+ add_tests("defn_something_eh",
1468
+ "Ruby" => "def something?\n # do nothing\nend",
1469
+ "ParseTree" => s(:defn, :something?,
1470
+ s(:args),
1471
+ s(:nil)))
1472
+
1473
+ add_tests("defn_splat_no_name",
1474
+ "Ruby" => "def x(a, *)\n p(a)\nend",
1475
+ "ParseTree" => s(:defn, :x,
1476
+ s(:args, :a, :"*"),
1477
+ s(:call, nil, :p, s(:lvar, :a))))
1478
+
1479
+ add_tests("defn_zarray",
1480
+ "Ruby" => "def zarray\n a = []\n return a\nend",
1481
+ "ParseTree" => s(:defn, :zarray,
1482
+ s(:args),
1483
+ s(:lasgn, :a, s(:array)),
1484
+ s(:return, s(:lvar, :a))))
1485
+
1486
+ add_tests("defs",
1487
+ "Ruby" => "def self.x(y)\n (y + 1)\nend",
1488
+ "ParseTree" => s(:defs, s(:self), :x,
1489
+ s(:args, :y),
1490
+ s(:call, s(:lvar, :y), :+, s(:lit, 1))))
1491
+
1492
+ add_tests("defs_empty",
1493
+ "Ruby" => "def self.empty\n # do nothing\nend",
1494
+ "ParseTree" => s(:defs, s(:self), :empty, s(:args), s(:nil)))
1495
+
1496
+ add_tests("defs_empty_args",
1497
+ "Ruby" => "def self.empty(*)\n # do nothing\nend",
1498
+ "ParseTree" => s(:defs, s(:self), :empty,
1499
+ s(:args, :*),
1500
+ s(:nil)))
1501
+
1502
+ add_tests("defs_expr_wtf",
1503
+ "Ruby" => "def (a.b).empty(*)\n # do nothing\nend",
1504
+ "ParseTree" => s(:defs,
1505
+ s(:call, s(:call, nil, :a), :b),
1506
+ :empty,
1507
+ s(:args, :*),
1508
+ s(:nil)))
1509
+
1510
+ add_tests("dmethod",
1511
+ "Ruby" => [Examples, :dmethod_added],
1512
+ "ParseTree" => s(:defn, :dmethod_added,
1513
+ s(:args, :x),
1514
+ s(:call, s(:lvar, :x), :+, s(:lit, 1))),
1515
+ "Ruby2Ruby" => "def dmethod_added(x)\n (x + 1)\nend")
1516
+
1517
+ add_tests("dot2",
1518
+ "Ruby" => "(a..b)",
1519
+ "ParseTree" => s(:dot2,
1520
+ s(:call, nil, :a),
1521
+ s(:call, nil, :b)))
1522
+
1523
+ add_tests("dot3",
1524
+ "Ruby" => "(a...b)",
1525
+ "ParseTree" => s(:dot3,
1526
+ s(:call, nil, :a),
1527
+ s(:call, nil, :b)))
1528
+
1529
+ add_tests("dregx",
1530
+ "Ruby" => "/x#\{(1 + 1)}y/",
1531
+ "ParseTree" => s(:dregx, "x",
1532
+ s(:evstr,
1533
+ s(:call, s(:lit, 1), :+, s(:lit, 1))),
1534
+ s(:str, "y")))
1535
+
1536
+ add_tests("dregx_interp",
1537
+ "Ruby" => "/#\{@rakefile}/",
1538
+ "ParseTree" => s(:dregx, "", s(:evstr, s(:ivar, :@rakefile))))
1539
+
1540
+ add_tests("dregx_interp_empty",
1541
+ "Ruby" => "/a#\{}b/",
1542
+ "ParseTree" => s(:dregx, "a", s(:evstr), s(:str, "b")))
1543
+
1544
+ add_tests("dregx_n",
1545
+ "Ruby" => '/#{1}/n',
1546
+ "ParseTree" => s(:dregx, "",
1547
+ s(:evstr, s(:lit, 1)), /x/n.options))
1548
+
1549
+ add_tests("dregx_once",
1550
+ "Ruby" => "/x#\{(1 + 1)}y/o",
1551
+ "ParseTree" => s(:dregx_once, "x",
1552
+ s(:evstr,
1553
+ s(:call, s(:lit, 1), :+, s(:lit, 1))),
1554
+ s(:str, "y")))
1555
+
1556
+ add_tests("dregx_once_n_interp",
1557
+ "Ruby" => "/#\{IAC}#\{SB}/no",
1558
+ "ParseTree" => s(:dregx_once, "",
1559
+ s(:evstr, s(:const, :IAC)),
1560
+ s(:evstr, s(:const, :SB)), /x/n.options))
1561
+
1562
+ add_tests("dstr",
1563
+ "Ruby" => "argl = 1\n\"x#\{argl}y\"\n",
1564
+ "ParseTree" => s(:block,
1565
+ s(:lasgn, :argl, s(:lit, 1)),
1566
+ s(:dstr, "x", s(:evstr, s(:lvar, :argl)),
1567
+ s(:str, "y"))))
1568
+
1569
+ add_tests("dstr_2",
1570
+ "Ruby" => "argl = 1\n\"x#\{(\"%.2f\" % 3.14159)}y\"\n",
1571
+ "ParseTree" => s(:block,
1572
+ s(:lasgn, :argl, s(:lit, 1)),
1573
+ s(:dstr,
1574
+ "x",
1575
+ s(:evstr,
1576
+ s(:call, s(:str, "%.2f"), :%,
1577
+ s(:lit, 3.14159))),
1578
+ s(:str, "y"))))
1579
+
1580
+ add_tests("dstr_3",
1581
+ "Ruby" => "max = 2\nargl = 1\n\"x#\{(\"%.#\{max}f\" % 3.14159)}y\"\n",
1582
+ "ParseTree" => s(:block,
1583
+ s(:lasgn, :max, s(:lit, 2)),
1584
+ s(:lasgn, :argl, s(:lit, 1)),
1585
+ s(:dstr, "x",
1586
+ s(:evstr,
1587
+ s(:call,
1588
+ s(:dstr, "%.",
1589
+ s(:evstr, s(:lvar, :max)),
1590
+ s(:str, "f")),
1591
+ :%,
1592
+ s(:lit, 3.14159))),
1593
+ s(:str, "y"))))
1594
+
1595
+ add_tests("dstr_concat",
1596
+ "Ruby" => '"#{22}aa" "cd#{44}" "55" "#{66}"',
1597
+ "ParseTree" => s(:dstr,
1598
+ "",
1599
+ s(:evstr, s(:lit, 22)),
1600
+ s(:str, "aa"),
1601
+ s(:str, "cd"),
1602
+ s(:evstr, s(:lit, 44)),
1603
+ s(:str, "55"),
1604
+ s(:evstr, s(:lit, 66))),
1605
+ "Ruby2Ruby" => '"#{22}aacd#{44}55#{66}"')
1606
+
1607
+ add_tests("dstr_gross",
1608
+ "Ruby" => '"a #$global b #@ivar c #@@cvar d"',
1609
+ "ParseTree" => s(:dstr, "a ",
1610
+ s(:evstr, s(:gvar, :$global)),
1611
+ s(:str, " b "),
1612
+ s(:evstr, s(:ivar, :@ivar)),
1613
+ s(:str, " c "),
1614
+ s(:evstr, s(:cvar, :@@cvar)),
1615
+ s(:str, " d")),
1616
+ "Ruby2Ruby" => '"a #{$global} b #{@ivar} c #{@@cvar} d"')
1617
+
1618
+ add_tests("dstr_heredoc_expand",
1619
+ "Ruby" => "<<EOM\n blah\n#\{1 + 1}blah\nEOM\n",
1620
+ "ParseTree" => s(:dstr, " blah\n",
1621
+ s(:evstr, s(:call, s(:lit, 1), :+, s(:lit, 1))),
1622
+ s(:str, "blah\n")),
1623
+ "Ruby2Ruby" => "\" blah\\n#\{(1 + 1)}blah\\n\"")
1624
+
1625
+ add_tests("dstr_heredoc_windoze_sucks",
1626
+ "Ruby" => "<<-EOF\r\ndef test_#\{action}_valid_feed\r\n EOF\r\n",
1627
+ "ParseTree" => s(:dstr,
1628
+ "def test_",
1629
+ s(:evstr, s(:call, nil, :action)),
1630
+ s(:str, "_valid_feed\n")),
1631
+ "Ruby2Ruby" => "\"def test_#\{action}_valid_feed\\n\"")
1632
+
1633
+ add_tests("dstr_heredoc_yet_again",
1634
+ "Ruby" => "<<-EOF\ns1 '#\{RUBY_PLATFORM}' s2\n#\{__FILE__}\n EOF\n",
1635
+ "ParseTree" => s(:dstr, "s1 '",
1636
+ s(:evstr, s(:const, :RUBY_PLATFORM)),
1637
+ s(:str, "' s2\n"),
1638
+ s(:str, "(string)"),
1639
+ s(:str, "\n")),
1640
+ "Ruby2Ruby" => "\"s1 '#\{RUBY_PLATFORM}' s2\\n(string)\\n\"")
1641
+
1642
+ add_tests("dstr_nest",
1643
+ "Ruby" => "%Q[before [#\{nest}] after]",
1644
+ "ParseTree" => s(:dstr, "before [",
1645
+ s(:evstr, s(:call, nil, :nest)),
1646
+ s(:str, "] after")),
1647
+ "Ruby2Ruby" => "\"before [#\{nest}] after\"")
1648
+
1649
+ add_tests("dstr_str_lit_start",
1650
+ "Ruby" => '"#{"blah"}#{__FILE__}:#{__LINE__}: warning: #{$!.message} (#{$!.class})"',
1651
+ "ParseTree" => s(:dstr,
1652
+ "blah(string):",
1653
+ s(:evstr, s(:lit, 1)),
1654
+ s(:str, ": warning: "),
1655
+ s(:evstr, s(:call, s(:gvar, :$!), :message)),
1656
+ s(:str, " ("),
1657
+ s(:evstr, s(:call, s(:gvar, :$!), :class)),
1658
+ s(:str, ")")),
1659
+ "Ruby2Ruby" => '"blah(string):#{1}: warning: #{$!.message} (#{$!.class})"')
1660
+
1661
+ add_tests("dstr_the_revenge",
1662
+ "Ruby" => '"before #{from} middle #{to} (#{__FILE__}:#{__LINE__})"',
1663
+ "ParseTree" => s(:dstr,
1664
+ "before ",
1665
+ s(:evstr, s(:call, nil, :from)),
1666
+ s(:str, " middle "),
1667
+ s(:evstr, s(:call, nil, :to)),
1668
+ s(:str, " ("),
1669
+ s(:str, "(string)"),
1670
+ s(:str, ":"),
1671
+ s(:evstr, s(:lit, 1)),
1672
+ s(:str, ")")),
1673
+ "Ruby2Ruby" => '"before #{from} middle #{to} ((string):#{1})"')
1674
+
1675
+ add_tests("dsym",
1676
+ "Ruby" => ":\"x#\{(1 + 1)}y\"",
1677
+ "ParseTree" => s(:dsym, "x",
1678
+ s(:evstr, s(:call, s(:lit, 1), :+, s(:lit, 1))),
1679
+ s(:str, "y")))
1680
+
1681
+ add_tests("dxstr",
1682
+ "Ruby" => "t = 5\n`touch #\{t}`\n",
1683
+ "ParseTree" => s(:block,
1684
+ s(:lasgn, :t, s(:lit, 5)),
1685
+ s(:dxstr, "touch ", s(:evstr, s(:lvar, :t)))))
1686
+
1687
+ add_tests("ensure",
1688
+ "Ruby" => "begin\n (1 + 1)\nrescue SyntaxError => e1\n 2\nrescue Exception => e2\n 3\nelse\n 4\nensure\n 5\nend",
1689
+ "ParseTree" => s(:ensure,
1690
+ s(:rescue,
1691
+ s(:call, s(:lit, 1), :+, s(:lit, 1)),
1692
+ s(:resbody,
1693
+ s(:array,
1694
+ s(:const, :SyntaxError),
1695
+ s(:lasgn, :e1, s(:gvar, :$!))),
1696
+ s(:lit, 2)),
1697
+ s(:resbody,
1698
+ s(:array,
1699
+ s(:const, :Exception),
1700
+ s(:lasgn, :e2, s(:gvar, :$!))),
1701
+ s(:lit, 3)),
1702
+ s(:lit, 4)),
1703
+ s(:lit, 5)))
1704
+
1705
+ add_tests("false",
1706
+ "Ruby" => "false",
1707
+ "ParseTree" => s(:false))
1708
+
1709
+ add_tests("fbody",
1710
+ "Ruby" => [Examples, :an_alias],
1711
+ "ParseTree" => s(:defn, :an_alias, s(:args, :x),
1712
+ s(:call, s(:lvar, :x), :+, s(:lit, 1))),
1713
+ "Ruby2Ruby" => "def an_alias(x)\n (x + 1)\nend")
1714
+
1715
+ add_tests("fcall_arglist",
1716
+ "Ruby" => "m(42)",
1717
+ "ParseTree" => s(:call, nil, :m, s(:lit, 42)))
1718
+
1719
+ add_tests("fcall_arglist_hash",
1720
+ "Ruby" => "m(:a => 1, :b => 2)",
1721
+ "ParseTree" => s(:call, nil, :m,
1722
+ s(:hash,
1723
+ s(:lit, :a), s(:lit, 1),
1724
+ s(:lit, :b), s(:lit, 2))))
1725
+
1726
+ add_tests("fcall_arglist_norm_hash",
1727
+ "Ruby" => "m(42, :a => 1, :b => 2)",
1728
+ "ParseTree" => s(:call, nil, :m,
1729
+ s(:lit, 42),
1730
+ s(:hash,
1731
+ s(:lit, :a), s(:lit, 1),
1732
+ s(:lit, :b), s(:lit, 2))))
1733
+
1734
+ add_tests("fcall_block",
1735
+ "Ruby" => "a(:b) { :c }",
1736
+ "ParseTree" => s(:iter,
1737
+ s(:call, nil, :a, s(:lit, :b)),
1738
+ 0,
1739
+ s(:lit, :c)))
1740
+
1741
+ add_tests("fcall_index_space",
1742
+ "Ruby" => "a [42]",
1743
+ "ParseTree" => s(:call, nil, :a, s(:array, s(:lit, 42))),
1744
+ "Ruby2Ruby" => "a([42])")
1745
+
1746
+ add_tests("fcall_inside_parens",
1747
+ "Ruby" => "( a (b), c)",
1748
+ "ParseTree" => s(:call, nil, :a,
1749
+ s(:call, nil, :b), s(:call, nil, :c)),
1750
+ "Ruby2Ruby" => "a(b, c)")
1751
+
1752
+ add_tests("fcall_keyword",
1753
+ "Ruby" => "42 if block_given?",
1754
+ "ParseTree" => s(:if,
1755
+ s(:call, nil, :block_given?),
1756
+ s(:lit, 42), nil))
1757
+
1758
+ add_tests("flip2",
1759
+ "Ruby" => "x = if ((i % 4) == 0)..((i % 3) == 0) then\n i\nelse\n nil\nend",
1760
+ "ParseTree" => s(:lasgn,
1761
+ :x,
1762
+ s(:if,
1763
+ s(:flip2,
1764
+ s(:call,
1765
+ s(:call, s(:call, nil, :i),
1766
+ :%,
1767
+ s(:lit, 4)),
1768
+ :==,
1769
+ s(:lit, 0)),
1770
+ s(:call,
1771
+ s(:call, s(:call, nil, :i),
1772
+ :%,
1773
+ s(:lit, 3)),
1774
+ :==,
1775
+ s(:lit, 0))),
1776
+ s(:call, nil, :i),
1777
+ s(:nil))))
1778
+
1779
+ add_tests("flip2_method",
1780
+ "Ruby" => "if 1..2.a?(b) then\n nil\nend",
1781
+ "ParseTree" => s(:if,
1782
+ s(:flip2,
1783
+ s(:lit, 1),
1784
+ s(:call, s(:lit, 2), :a?, s(:call, nil, :b))),
1785
+ s(:nil),
1786
+ nil))
1787
+
1788
+ add_tests("flip3",
1789
+ "Ruby" => "x = if ((i % 4) == 0)...((i % 3) == 0) then\n i\nelse\n nil\nend",
1790
+ "ParseTree" => s(:lasgn,
1791
+ :x,
1792
+ s(:if,
1793
+ s(:flip3,
1794
+ s(:call,
1795
+ s(:call, s(:call, nil, :i),
1796
+ :%,
1797
+ s(:lit, 4)),
1798
+ :==,
1799
+ s(:lit, 0)),
1800
+ s(:call,
1801
+ s(:call, s(:call, nil, :i),
1802
+ :%,
1803
+ s(:lit, 3)),
1804
+ :==,
1805
+ s(:lit, 0))),
1806
+ s(:call, nil, :i),
1807
+ s(:nil))))
1808
+
1809
+ add_tests("for",
1810
+ "Ruby" => "for o in ary do\n puts(o)\nend",
1811
+ "ParseTree" => s(:for,
1812
+ s(:call, nil, :ary),
1813
+ s(:lasgn, :o),
1814
+ s(:call, nil, :puts, s(:lvar, :o))))
1815
+
1816
+ add_tests("for_no_body",
1817
+ "Ruby" => "for i in (0..max) do\n # do nothing\nend",
1818
+ "ParseTree" => s(:for,
1819
+ s(:dot2,
1820
+ s(:lit, 0),
1821
+ s(:call, nil, :max)),
1822
+ s(:lasgn, :i)))
1823
+
1824
+ add_tests("gasgn",
1825
+ "Ruby" => "$x = 42",
1826
+ "ParseTree" => s(:gasgn, :$x, s(:lit, 42)))
1827
+
1828
+ add_tests("global",
1829
+ "Ruby" => "$stderr",
1830
+ "ParseTree" => s(:gvar, :$stderr))
1831
+
1832
+ add_tests("gvar",
1833
+ "Ruby" => "$x",
1834
+ "ParseTree" => s(:gvar, :$x))
1835
+
1836
+ add_tests("gvar_underscore",
1837
+ "Ruby" => "$_",
1838
+ "ParseTree" => s(:gvar, :$_))
1839
+
1840
+ add_tests("gvar_underscore_blah",
1841
+ "Ruby" => "$__blah",
1842
+ "ParseTree" => s(:gvar, :$__blah))
1843
+
1844
+ add_tests("hash",
1845
+ "Ruby" => "{ 1 => 2, 3 => 4 }",
1846
+ "ParseTree" => s(:hash,
1847
+ s(:lit, 1), s(:lit, 2),
1848
+ s(:lit, 3), s(:lit, 4)))
1849
+
1850
+ add_tests("hash_rescue",
1851
+ "Ruby" => "{ 1 => (2 rescue 3) }",
1852
+ "ParseTree" => s(:hash,
1853
+ s(:lit, 1),
1854
+ s(:rescue,
1855
+ s(:lit, 2),
1856
+ s(:resbody, s(:array), s(:lit, 3)))))
1857
+
1858
+ add_tests("iasgn",
1859
+ "Ruby" => "@a = 4",
1860
+ "ParseTree" => s(:iasgn, :@a, s(:lit, 4)))
1861
+
1862
+ add_tests("if_block_condition",
1863
+ "Ruby" => "if (x = 5\n(x + 1)) then\n nil\nend",
1864
+ "ParseTree" => s(:if,
1865
+ s(:block,
1866
+ s(:lasgn, :x, s(:lit, 5)),
1867
+ s(:call, s(:lvar, :x), :+, s(:lit, 1))),
1868
+ s(:nil),
1869
+ nil))
1870
+
1871
+ add_tests("if_lasgn_short",
1872
+ "Ruby" => "if x = obj.x then\n x.do_it\nend",
1873
+ "ParseTree" => s(:if,
1874
+ s(:lasgn, :x,
1875
+ s(:call,
1876
+ s(:call, nil, :obj),
1877
+ :x)),
1878
+ s(:call, s(:lvar, :x), :do_it),
1879
+ nil))
1880
+
1881
+ add_tests("if_nested",
1882
+ "Ruby" => "return if false unless true",
1883
+ "ParseTree" => s(:if, s(:true), nil,
1884
+ s(:if, s(:false), s(:return), nil)))
1885
+
1886
+ add_tests("if_post",
1887
+ "Ruby" => "a if b",
1888
+ "ParseTree" => s(:if, s(:call, nil, :b),
1889
+ s(:call, nil, :a), nil))
1890
+
1891
+ add_tests("if_pre",
1892
+ "Ruby" => "if b then a end",
1893
+ "ParseTree" => s(:if, s(:call, nil, :b),
1894
+ s(:call, nil, :a), nil),
1895
+ "Ruby2Ruby" => "a if b")
1896
+
1897
+ add_tests("iter_call_arglist_space",
1898
+ "Ruby" => "a (1) {|c|d}",
1899
+ "ParseTree" => s(:iter,
1900
+ s(:call, nil, :a, s(:lit, 1)),
1901
+ s(:args, :c),
1902
+ s(:call, nil, :d)),
1903
+ "Ruby2Ruby" => "a(1) { |c| d }")
1904
+
1905
+ add_tests("iter_dasgn_curr_dasgn_madness",
1906
+ "Ruby" => "as.each { |a|\n b += a.b(false) }",
1907
+ "ParseTree" => s(:iter,
1908
+ s(:call, s(:call, nil, :as), :each),
1909
+ s(:args, :a),
1910
+ s(:lasgn, :b,
1911
+ s(:call,
1912
+ s(:lvar, :b),
1913
+ :+,
1914
+ s(:call, s(:lvar, :a), :b, s(:false))))),
1915
+ "Ruby2Ruby" => "as.each { |a| b = (b + a.b(false)) }")
1916
+
1917
+ add_tests("iter_downto",
1918
+ "Ruby" => "3.downto(1) { |n| puts(n.to_s) }",
1919
+ "ParseTree" => s(:iter,
1920
+ s(:call, s(:lit, 3), :downto, s(:lit, 1)),
1921
+ s(:args, :n),
1922
+ s(:call, nil, :puts,
1923
+ s(:call, s(:lvar, :n), :to_s))))
1924
+
1925
+ add_tests("iter_each_lvar",
1926
+ "Ruby" => "array = [1, 2, 3]\narray.each { |x| puts(x.to_s) }\n",
1927
+ "ParseTree" => s(:block,
1928
+ s(:lasgn, :array,
1929
+ s(:array,
1930
+ s(:lit, 1), s(:lit, 2), s(:lit, 3))),
1931
+ s(:iter,
1932
+ s(:call, s(:lvar, :array), :each),
1933
+ s(:args, :x),
1934
+ s(:call, nil, :puts,
1935
+ s(:call, s(:lvar, :x), :to_s)))))
1936
+
1937
+ add_tests("iter_each_nested",
1938
+ "Ruby" => "array1 = [1, 2, 3]\narray2 = [4, 5, 6, 7]\narray1.each do |x|\n array2.each do |y|\n puts(x.to_s)\n puts(y.to_s)\n end\nend\n",
1939
+ "ParseTree" => s(:block,
1940
+ s(:lasgn, :array1,
1941
+ s(:array,
1942
+ s(:lit, 1), s(:lit, 2), s(:lit, 3))),
1943
+ s(:lasgn, :array2,
1944
+ s(:array,
1945
+ s(:lit, 4), s(:lit, 5),
1946
+ s(:lit, 6), s(:lit, 7))),
1947
+ s(:iter,
1948
+ s(:call, s(:lvar, :array1), :each),
1949
+ s(:args, :x),
1950
+ s(:iter,
1951
+ s(:call, s(:lvar, :array2), :each),
1952
+ s(:args, :y),
1953
+ s(:block,
1954
+ s(:call, nil, :puts,
1955
+ s(:call, s(:lvar, :x), :to_s)),
1956
+ s(:call, nil, :puts,
1957
+ s(:call, s(:lvar, :y), :to_s)))))))
1958
+
1959
+ add_tests("iter_loop_empty",
1960
+ "Ruby" => "loop { }",
1961
+ "ParseTree" => s(:iter, s(:call, nil, :loop), 0))
1962
+
1963
+ add_tests("iter_masgn_2",
1964
+ "Ruby" => "a { |b, c| p(c) }",
1965
+ "ParseTree" => s(:iter,
1966
+ s(:call, nil, :a),
1967
+ s(:args, :b, :c),
1968
+ s(:call, nil, :p, s(:lvar, :c))))
1969
+
1970
+ add_tests("iter_masgn_args_splat",
1971
+ "Ruby" => "a { |b, c, *d| p(c) }",
1972
+ "ParseTree" => s(:iter,
1973
+ s(:call, nil, :a),
1974
+ s(:args, :b, :c, :"*d"),
1975
+ s(:call, nil, :p, s(:lvar, :c))))
1976
+
1977
+ add_tests("iter_masgn_args_splat_no_name",
1978
+ "Ruby" => "a { |b, c, *| p(c) }",
1979
+ "ParseTree" => s(:iter,
1980
+ s(:call, nil, :a),
1981
+ s(:args, :b, :c, :*),
1982
+ s(:call, nil, :p, s(:lvar, :c))))
1983
+
1984
+ add_tests("iter_masgn_splat",
1985
+ "Ruby" => "a { |*c| p(c) }",
1986
+ "ParseTree" => s(:iter,
1987
+ s(:call, nil, :a),
1988
+ s(:args, :"*c"),
1989
+ s(:call, nil, :p, s(:lvar, :c))))
1990
+
1991
+ add_tests("iter_masgn_splat_no_name",
1992
+ "Ruby" => "a { |*| p(c) }",
1993
+ "ParseTree" => s(:iter,
1994
+ s(:call, nil, :a),
1995
+ s(:args, :*),
1996
+ s(:call, nil, :p, s(:call, nil, :c))))
1997
+
1998
+ add_tests("iter_shadowed_var",
1999
+ "Ruby" => "a do |x|\n b do |x|\n puts x\n end\nend",
2000
+ "ParseTree" => s(:iter,
2001
+ s(:call, nil, :a),
2002
+ s(:args, :x),
2003
+ s(:iter,
2004
+ s(:call, nil, :b),
2005
+ s(:args, :x),
2006
+ s(:call, nil, :puts, s(:lvar, :x)))),
2007
+ "Ruby2Ruby" => "a { |x| b { |x| puts(x) } }")
2008
+
2009
+ add_tests("iter_upto",
2010
+ "Ruby" => "1.upto(3) { |n| puts(n.to_s) }",
2011
+ "ParseTree" => s(:iter,
2012
+ s(:call, s(:lit, 1), :upto, s(:lit, 3)),
2013
+ s(:args, :n),
2014
+ s(:call, nil, :puts,
2015
+ s(:call, s(:lvar, :n), :to_s))))
2016
+
2017
+ add_tests("iter_while",
2018
+ "Ruby" => "argl = 10\nwhile (argl >= 1) do\n puts(\"hello\")\n argl = (argl - 1)\nend\n",
2019
+ "ParseTree" => s(:block,
2020
+ s(:lasgn, :argl, s(:lit, 10)),
2021
+ s(:while,
2022
+ s(:call, s(:lvar, :argl), :">=", s(:lit, 1)),
2023
+ s(:block,
2024
+ s(:call, nil, :puts, s(:str, "hello")),
2025
+ s(:lasgn,
2026
+ :argl,
2027
+ s(:call, s(:lvar, :argl), :"-",
2028
+ s(:lit, 1)))),
2029
+ true)))
2030
+
2031
+ add_tests("ivar",
2032
+ "Ruby" => [Examples, :reader],
2033
+ "ParseTree" => s(:defn, :reader, s(:args),
2034
+ s(:ivar, :@reader)),
2035
+ "Ruby2Ruby" => "attr_reader :reader")
2036
+
2037
+ add_tests("lambda_args_anon_star",
2038
+ "Ruby" => "lambda { |*| nil }",
2039
+ "ParseTree" => s(:iter,
2040
+ s(:call, nil, :lambda),
2041
+ s(:args, :*),
2042
+ s(:nil)))
2043
+
2044
+ add_tests("lambda_args_anon_star_block",
2045
+ "Ruby" => "lambda { |*, &block| block }",
2046
+ "ParseTree" => s(:iter,
2047
+ s(:call, nil, :lambda),
2048
+ s(:args, :*, :"&block"),
2049
+ s(:lvar, :block)))
2050
+
2051
+ add_tests("lambda_args_block",
2052
+ "Ruby" => "lambda { |&block| block }",
2053
+ "ParseTree" => s(:iter,
2054
+ s(:call, nil, :lambda),
2055
+ s(:args, :"&block"),
2056
+ s(:lvar, :block)))
2057
+
2058
+ add_tests("lambda_args_norm_anon_star",
2059
+ "Ruby" => "lambda { |a, *| a }",
2060
+ "ParseTree" => s(:iter,
2061
+ s(:call, nil, :lambda),
2062
+ s(:args, :a, :*),
2063
+ s(:lvar, :a)))
2064
+
2065
+ add_tests("lambda_args_norm_anon_star_block",
2066
+ "Ruby" => "lambda { |a, *, &block| block }",
2067
+ "ParseTree" => s(:iter,
2068
+ s(:call, nil, :lambda),
2069
+ s(:args, :a, :*, :"&block"),
2070
+ s(:lvar, :block)))
2071
+
2072
+ add_tests("lambda_args_norm_block",
2073
+ "Ruby" => "lambda { |a, &block| block }",
2074
+ "ParseTree" => s(:iter,
2075
+ s(:call, nil, :lambda),
2076
+ s(:args, :a, :"&block"),
2077
+ s(:lvar, :block)))
2078
+
2079
+ add_tests("lambda_args_norm_comma",
2080
+ "Ruby" => "lambda { |a,| a }",
2081
+ "ParseTree" => s(:iter,
2082
+ s(:call, nil, :lambda),
2083
+ s(:args, :a, nil),
2084
+ s(:lvar, :a)))
2085
+
2086
+ add_tests("lambda_args_norm_comma2",
2087
+ "Ruby" => "lambda { |a, b,| a }",
2088
+ "ParseTree" => s(:iter,
2089
+ s(:call, nil, :lambda),
2090
+ s(:args, :a, :b, nil),
2091
+ s(:lvar, :a)))
2092
+
2093
+ add_tests("lambda_args_norm_star",
2094
+ "Ruby" => "lambda { |a, *star| star }",
2095
+ "ParseTree" => s(:iter,
2096
+ s(:call, nil, :lambda),
2097
+ s(:args, :a, :"*star"),
2098
+ s(:lvar, :star)))
2099
+
2100
+ add_tests("lambda_args_norm_star_block",
2101
+ "Ruby" => "lambda { |a, *star, &block| block }",
2102
+ "ParseTree" => s(:iter,
2103
+ s(:call, nil, :lambda),
2104
+ s(:args, :a, :"*star", :"&block"),
2105
+ s(:lvar, :block)))
2106
+
2107
+ add_tests("lambda_args_star",
2108
+ "Ruby" => "lambda { |*star| star }",
2109
+ "ParseTree" => s(:iter,
2110
+ s(:call, nil, :lambda),
2111
+ s(:args, :"*star"),
2112
+ s(:lvar, :star)))
2113
+
2114
+ add_tests("lambda_args_star_block",
2115
+ "Ruby" => "lambda { |*star, &block| block }",
2116
+ "ParseTree" => s(:iter,
2117
+ s(:call, nil, :lambda),
2118
+ s(:args, :"*star", :"&block"),
2119
+ s(:lvar, :block)))
2120
+
2121
+ add_tests("lasgn_array",
2122
+ "Ruby" => "var = [\"foo\", \"bar\"]",
2123
+ "ParseTree" => s(:lasgn, :var,
2124
+ s(:array,
2125
+ s(:str, "foo"),
2126
+ s(:str, "bar"))))
2127
+
2128
+ add_tests("lasgn_call",
2129
+ "Ruby" => "c = (2 + 3)",
2130
+ "ParseTree" => s(:lasgn, :c,
2131
+ s(:call, s(:lit, 2), :+, s(:lit, 3))))
2132
+
2133
+ add_tests("lit_bool_false",
2134
+ "Ruby" => "false",
2135
+ "ParseTree" => s(:false))
2136
+
2137
+ add_tests("lit_bool_true",
2138
+ "Ruby" => "true",
2139
+ "ParseTree" => s(:true))
2140
+
2141
+ add_tests("lit_float",
2142
+ "Ruby" => "1.1",
2143
+ "ParseTree" => s(:lit, 1.1))
2144
+
2145
+ add_tests("lit_long",
2146
+ "Ruby" => "1",
2147
+ "ParseTree" => s(:lit, 1))
2148
+
2149
+ add_tests("lit_long_negative",
2150
+ "Ruby" => "-1",
2151
+ "ParseTree" => s(:lit, -1))
2152
+
2153
+ add_tests("lit_range2",
2154
+ "Ruby" => "(1..10)",
2155
+ "ParseTree" => s(:lit, 1..10))
2156
+
2157
+ add_tests("lit_range3",
2158
+ "Ruby" => "(1...10)",
2159
+ "ParseTree" => s(:lit, 1...10))
2160
+
2161
+ add_tests("lit_regexp",
2162
+ "Ruby" => "/x/",
2163
+ "ParseTree" => s(:lit, /x/))
2164
+
2165
+ add_tests("lit_regexp_i_wwtt",
2166
+ "Ruby" => "str.split(//i)",
2167
+ "ParseTree" => s(:call,
2168
+ s(:call, nil, :str),
2169
+ :split,
2170
+ s(:lit, //i)))
2171
+
2172
+ add_tests("lit_regexp_n",
2173
+ "Ruby" => "/x/n", # HACK differs on 1.9 - this is easiest
2174
+ "ParseTree" => s(:lit, /x/n),
2175
+ "Ruby2Ruby" => /x/n.inspect)
2176
+
2177
+ add_tests("lit_regexp_once",
2178
+ "Ruby" => "/x/o",
2179
+ "ParseTree" => s(:lit, /x/),
2180
+ "Ruby2Ruby" => "/x/")
2181
+
2182
+ add_tests("lit_sym",
2183
+ "Ruby" => ":x",
2184
+ "ParseTree" => s(:lit, :x))
2185
+
2186
+ add_tests("lit_sym_splat",
2187
+ "Ruby" => ":\"*args\"",
2188
+ "ParseTree" => s(:lit, :"*args"))
2189
+
2190
+ add_tests("lvar_def_boundary",
2191
+ "Ruby" => "b = 42\ndef a\n c do\n begin\n do_stuff\n rescue RuntimeError => b\n puts(b)\n end\n end\nend\n",
2192
+ "ParseTree" => s(:block,
2193
+ s(:lasgn, :b, s(:lit, 42)),
2194
+ s(:defn, :a, s(:args),
2195
+ s(:iter,
2196
+ s(:call, nil, :c),
2197
+ 0,
2198
+ s(:rescue,
2199
+ s(:call, nil, :do_stuff),
2200
+ s(:resbody,
2201
+ s(:array,
2202
+ s(:const, :RuntimeError),
2203
+ s(:lasgn, :b, s(:gvar, :$!))),
2204
+ s(:call, nil, :puts,
2205
+ s(:lvar, :b))))))))
2206
+
2207
+ add_tests("masgn",
2208
+ "Ruby" => "a, b = c, d",
2209
+ "ParseTree" => s(:masgn,
2210
+ s(:array, s(:lasgn, :a), s(:lasgn, :b)),
2211
+ s(:array, s(:call, nil, :c),
2212
+ s(:call, nil, :d))))
2213
+
2214
+ add_tests("masgn_argscat",
2215
+ "Ruby" => "a, b, *c = 1, 2, *[3, 4]",
2216
+ "ParseTree" => s(:masgn,
2217
+ s(:array,
2218
+ s(:lasgn, :a),
2219
+ s(:lasgn, :b),
2220
+ s(:splat, s(:lasgn, :c))),
2221
+ s(:array,
2222
+ s(:lit, 1), s(:lit, 2),
2223
+ s(:splat,
2224
+ s(:array, s(:lit, 3), s(:lit, 4))))))
2225
+
2226
+ add_tests("masgn_attrasgn",
2227
+ "Ruby" => "a, b.c = d, e",
2228
+ "ParseTree" => s(:masgn,
2229
+ s(:array,
2230
+ s(:lasgn, :a),
2231
+ s(:attrasgn,
2232
+ s(:call, nil, :b),
2233
+ :c=)),
2234
+ s(:array,
2235
+ s(:call, nil, :d),
2236
+ s(:call, nil, :e))))
2237
+
2238
+ add_tests("masgn_attrasgn_array_rhs",
2239
+ "Ruby" => "a.b, a.c, _ = q",
2240
+ "ParseTree" => s(:masgn,
2241
+ s(:array,
2242
+ s(:attrasgn,
2243
+ s(:call, nil, :a),
2244
+ :b=),
2245
+ s(:attrasgn,
2246
+ s(:call, nil, :a),
2247
+ :c=),
2248
+ s(:lasgn, :_)),
2249
+ s(:to_ary,
2250
+ s(:call, nil, :q))))
2251
+
2252
+ add_tests("masgn_attrasgn_idx",
2253
+ "Ruby" => "a, i, j = [], 1, 2\na[i], a[j] = a[j], a[i]\n",
2254
+ "ParseTree" => s(:block,
2255
+ s(:masgn,
2256
+ s(:array,
2257
+ s(:lasgn, :a),
2258
+ s(:lasgn, :i), s(:lasgn, :j)),
2259
+ s(:array, s(:array), s(:lit, 1), s(:lit, 2))),
2260
+ s(:masgn,
2261
+ s(:array,
2262
+ s(:attrasgn,
2263
+ s(:lvar, :a), :[]=, s(:lvar, :i)),
2264
+ s(:attrasgn,
2265
+ s(:lvar, :a), :[]=, s(:lvar, :j))),
2266
+ s(:array,
2267
+ s(:call,
2268
+ s(:lvar, :a), :[], s(:lvar, :j)),
2269
+ s(:call,
2270
+ s(:lvar, :a), :[], s(:lvar, :i))))))
2271
+
2272
+ add_tests("masgn_cdecl",
2273
+ "Ruby" => "A, B, C = 1, 2, 3",
2274
+ "ParseTree" => s(:masgn,
2275
+ s(:array, s(:cdecl, :A), s(:cdecl, :B),
2276
+ s(:cdecl, :C)),
2277
+ s(:array, s(:lit, 1), s(:lit, 2), s(:lit, 3))))
2278
+
2279
+ add_tests("masgn_iasgn",
2280
+ "Ruby" => "a, @b = c, d",
2281
+ "ParseTree" => s(:masgn,
2282
+ s(:array, s(:lasgn, :a), s(:iasgn, :"@b")),
2283
+ s(:array,
2284
+ s(:call, nil, :c),
2285
+ s(:call, nil, :d))))
2286
+
2287
+ add_tests("masgn_masgn",
2288
+ "Ruby" => "a, (b, c) = [1, [2, 3]]",
2289
+ "ParseTree" => s(:masgn,
2290
+ s(:array,
2291
+ s(:lasgn, :a),
2292
+ s(:masgn,
2293
+ s(:array,
2294
+ s(:lasgn, :b),
2295
+ s(:lasgn, :c)))),
2296
+ s(:to_ary,
2297
+ s(:array,
2298
+ s(:lit, 1),
2299
+ s(:array,
2300
+ s(:lit, 2),
2301
+ s(:lit, 3))))))
2302
+
2303
+ add_tests("masgn_splat_lhs",
2304
+ "Ruby" => "a, b, *c = d, e, f, g",
2305
+ "ParseTree" => s(:masgn,
2306
+ s(:array,
2307
+ s(:lasgn, :a),
2308
+ s(:lasgn, :b),
2309
+ s(:splat, s(:lasgn, :c))),
2310
+ s(:array,
2311
+ s(:call, nil, :d),
2312
+ s(:call, nil, :e),
2313
+ s(:call, nil, :f),
2314
+ s(:call, nil, :g))))
2315
+
2316
+ add_tests("masgn_splat_no_name_to_ary",
2317
+ "Ruby" => "a, b, * = c",
2318
+ "ParseTree" => s(:masgn,
2319
+ s(:array,
2320
+ s(:lasgn, :a),
2321
+ s(:lasgn, :b),
2322
+ s(:splat)),
2323
+ s(:to_ary, s(:call, nil, :c))))
2324
+
2325
+ add_tests("masgn_splat_no_name_trailing",
2326
+ "Ruby" => "a, b, = c",
2327
+ "ParseTree" => s(:masgn,
2328
+ s(:array, s(:lasgn, :a), s(:lasgn, :b)),
2329
+ s(:to_ary, s(:call, nil, :c))),
2330
+ "Ruby2Ruby" => "a, b = c") # TODO: check this is right
2331
+
2332
+ add_tests("masgn_splat_rhs_1",
2333
+ "Ruby" => "a, b = *c",
2334
+ "ParseTree" => s(:masgn,
2335
+ s(:array,
2336
+ s(:lasgn, :a),
2337
+ s(:lasgn, :b)),
2338
+ s(:splat, s(:call, nil, :c))))
2339
+
2340
+ add_tests("masgn_splat_rhs_n",
2341
+ "Ruby" => "a, b = c, d, *e",
2342
+ "ParseTree" => s(:masgn,
2343
+ s(:array,
2344
+ s(:lasgn, :a),
2345
+ s(:lasgn, :b)),
2346
+ s(:array,
2347
+ s(:call, nil, :c),
2348
+ s(:call, nil, :d),
2349
+ s(:splat, s(:call, nil, :e)))))
2350
+
2351
+ add_tests("masgn_splat_to_ary",
2352
+ "Ruby" => "a, b, *c = d",
2353
+ "ParseTree" => s(:masgn,
2354
+ s(:array,
2355
+ s(:lasgn, :a),
2356
+ s(:lasgn, :b),
2357
+ s(:splat, s(:lasgn, :c))),
2358
+ s(:to_ary, s(:call, nil, :d))))
2359
+
2360
+ add_tests("masgn_splat_to_ary2",
2361
+ "Ruby" => "a, b, *c = d.e(\"f\")",
2362
+ "ParseTree" => s(:masgn,
2363
+ s(:array,
2364
+ s(:lasgn, :a),
2365
+ s(:lasgn, :b),
2366
+ s(:splat, s(:lasgn, :c))),
2367
+ s(:to_ary,
2368
+ s(:call,
2369
+ s(:call, nil, :d),
2370
+ :e,
2371
+ s(:str, "f")))))
2372
+
2373
+ add_tests("match",
2374
+ "Ruby" => "1 if /x/",
2375
+ "ParseTree" => s(:if, s(:match, s(:lit, /x/)), s(:lit, 1), nil))
2376
+
2377
+ add_tests("match2",
2378
+ "Ruby" => "/x/ =~ \"blah\"",
2379
+ "ParseTree" => s(:match2, s(:lit, /x/), s(:str, "blah")))
2380
+
2381
+ add_tests("match3",
2382
+ "Ruby" => "\"blah\" =~ /x/",
2383
+ "ParseTree" => s(:match3, s(:lit, /x/), s(:str, "blah")))
2384
+
2385
+ add_tests("module",
2386
+ "Ruby" => "module X\n def y\n # do nothing\n end\nend",
2387
+ "ParseTree" => s(:module, :X,
2388
+ s(:defn, :y, s(:args), s(:nil))))
2389
+
2390
+ add_tests("module2",
2391
+ "Ruby" => "module X\n def y\n # do nothing\n end\n \n def z\n # do nothing\n end\nend",
2392
+ "ParseTree" => s(:module, :X,
2393
+ s(:defn, :y, s(:args), s(:nil)),
2394
+ s(:defn, :z, s(:args), s(:nil))))
2395
+
2396
+ add_tests("module_scoped",
2397
+ "Ruby" => "module X::Y\n c\nend",
2398
+ "ParseTree" => s(:module, s(:colon2, s(:const, :X), :Y),
2399
+ s(:call, nil, :c)))
2400
+
2401
+ add_tests("module_scoped3",
2402
+ "Ruby" => "module ::Y\n c\nend",
2403
+ "ParseTree" => s(:module, s(:colon3, :Y),
2404
+ s(:call, nil, :c)))
2405
+
2406
+ add_tests("next",
2407
+ "Ruby" => "loop { next if false }",
2408
+ "ParseTree" => s(:iter,
2409
+ s(:call, nil, :loop),
2410
+ 0,
2411
+ s(:if, s(:false), s(:next), nil)))
2412
+
2413
+ add_tests("next_arg",
2414
+ "Ruby" => "loop { next 42 if false }",
2415
+ "ParseTree" => s(:iter,
2416
+ s(:call, nil, :loop),
2417
+ 0,
2418
+ s(:if, s(:false), s(:next, s(:lit, 42)), nil)))
2419
+
2420
+ add_tests("nth_ref",
2421
+ "Ruby" => "$1",
2422
+ "ParseTree" => s(:nth_ref, 1))
2423
+
2424
+ add_tests("op_asgn1",
2425
+ "Ruby" => "b = []\nb[1] ||= 10\nb[2] &&= 11\nb[3] += 12\n",
2426
+ "ParseTree" => s(:block,
2427
+ s(:lasgn, :b, s(:array)),
2428
+ s(:op_asgn1, s(:lvar, :b),
2429
+ s(:arglist, s(:lit, 1)), :"||", s(:lit, 10)),
2430
+ s(:op_asgn1, s(:lvar, :b),
2431
+ s(:arglist, s(:lit, 2)), :"&&", s(:lit, 11)),
2432
+ s(:op_asgn1, s(:lvar, :b),
2433
+ s(:arglist, s(:lit, 3)), :+, s(:lit, 12))))
2434
+
2435
+ add_tests("op_asgn1_ivar",
2436
+ "Ruby" => "@b = []\n@b[1] ||= 10\n@b[2] &&= 11\n@b[3] += 12\n",
2437
+ "ParseTree" => s(:block,
2438
+ s(:iasgn, :@b, s(:array)),
2439
+ s(:op_asgn1, s(:ivar, :@b),
2440
+ s(:arglist, s(:lit, 1)), :"||", s(:lit, 10)),
2441
+ s(:op_asgn1, s(:ivar, :@b),
2442
+ s(:arglist, s(:lit, 2)), :"&&", s(:lit, 11)),
2443
+ s(:op_asgn1, s(:ivar, :@b),
2444
+ s(:arglist, s(:lit, 3)), :+, s(:lit, 12))))
2445
+
2446
+ add_tests("op_asgn2",
2447
+ "Ruby" => "s = Struct.new(:var)\nc = s.new(nil)\nc.var ||= 20\nc.var &&= 21\nc.var += 22\nc.d.e.f ||= 42\n",
2448
+ "ParseTree" => s(:block,
2449
+ s(:lasgn, :s,
2450
+ s(:call,
2451
+ s(:const, :Struct),
2452
+ :new,
2453
+ s(:lit, :var))),
2454
+ s(:lasgn, :c,
2455
+ s(:call, s(:lvar, :s), :new, s(:nil))),
2456
+ s(:op_asgn2, s(:lvar, :c),
2457
+ :var=, :"||", s(:lit, 20)),
2458
+ s(:op_asgn2, s(:lvar, :c),
2459
+ :var=, :"&&", s(:lit, 21)),
2460
+ s(:op_asgn2, s(:lvar, :c),
2461
+ :var=, :+, s(:lit, 22)),
2462
+ s(:op_asgn2,
2463
+ s(:call,
2464
+ s(:call, s(:lvar, :c), :d),
2465
+ :e),
2466
+ :f=, :"||", s(:lit, 42))))
2467
+
2468
+ add_tests("op_asgn2_self",
2469
+ "Ruby" => "self.Bag ||= Bag.new",
2470
+ "ParseTree" => s(:op_asgn2, s(:self), :"Bag=", :"||",
2471
+ s(:call, s(:const, :Bag), :new)))
2472
+
2473
+ add_tests("op_asgn_and",
2474
+ "Ruby" => "a = 0\na &&= 2\n",
2475
+ "ParseTree" => s(:block,
2476
+ s(:lasgn, :a, s(:lit, 0)),
2477
+ s(:op_asgn_and,
2478
+ s(:lvar, :a), s(:lasgn, :a, s(:lit, 2)))))
2479
+
2480
+ add_tests("op_asgn_and_ivar2",
2481
+ "Ruby" => "@fetcher &&= new(Gem.configuration[:http_proxy])",
2482
+ "ParseTree" => s(:op_asgn_and,
2483
+ s(:ivar, :@fetcher),
2484
+ s(:iasgn,
2485
+ :@fetcher,
2486
+ s(:call, nil,
2487
+ :new,
2488
+ s(:call,
2489
+ s(:call, s(:const, :Gem), :configuration),
2490
+ :[],
2491
+ s(:lit, :http_proxy))))))
2492
+
2493
+ add_tests("op_asgn_or",
2494
+ "Ruby" => "a = 0\na ||= 1\n",
2495
+ "ParseTree" => s(:block,
2496
+ s(:lasgn, :a, s(:lit, 0)),
2497
+ s(:op_asgn_or,
2498
+ s(:lvar, :a), s(:lasgn, :a, s(:lit, 1)))))
2499
+
2500
+ add_tests("op_asgn_or_block",
2501
+ "Ruby" => "a ||= begin\n b\n rescue\n c\n end",
2502
+ "ParseTree" => s(:op_asgn_or,
2503
+ s(:lvar, :a),
2504
+ s(:lasgn, :a,
2505
+ s(:rescue,
2506
+ s(:call, nil, :b),
2507
+ s(:resbody, s(:array),
2508
+ s(:call, nil, :c))))),
2509
+ "Ruby2Ruby" => "a ||= b rescue c")
2510
+
2511
+ add_tests("op_asgn_or_ivar",
2512
+ "Ruby" => "@v ||= {}",
2513
+ "ParseTree" => s(:op_asgn_or,
2514
+ s(:ivar, :@v),
2515
+ s(:iasgn, :@v, s(:hash))))
2516
+
2517
+ add_tests("op_asgn_or_ivar2",
2518
+ "Ruby" => "@fetcher ||= new(Gem.configuration[:http_proxy])",
2519
+ "ParseTree" => s(:op_asgn_or,
2520
+ s(:ivar, :@fetcher),
2521
+ s(:iasgn,
2522
+ :@fetcher,
2523
+ s(:call, nil, :new,
2524
+ s(:call,
2525
+ s(:call, s(:const, :Gem), :configuration),
2526
+ :[],
2527
+ s(:lit, :http_proxy))))))
2528
+
2529
+ add_tests("or",
2530
+ "Ruby" => "(a or b)",
2531
+ "ParseTree" => s(:or,
2532
+ s(:call, nil, :a),
2533
+ s(:call, nil, :b)))
2534
+
2535
+ add_tests("or_big",
2536
+ "Ruby" => "((a or b) or (c and d))",
2537
+ "ParseTree" => s(:or,
2538
+ s(:or,
2539
+ s(:call, nil, :a),
2540
+ s(:call, nil, :b)),
2541
+ s(:and,
2542
+ s(:call, nil, :c),
2543
+ s(:call, nil, :d))))
2544
+
2545
+ add_tests("or_big2",
2546
+ "Ruby" => "((a || b) || (c && d))",
2547
+ "ParseTree" => s(:or,
2548
+ s(:or,
2549
+ s(:call, nil, :a),
2550
+ s(:call, nil, :b)),
2551
+ s(:and,
2552
+ s(:call, nil, :c),
2553
+ s(:call, nil, :d))),
2554
+ "Ruby2Ruby" => "((a or b) or (c and d))")
2555
+
2556
+ add_tests("parse_floats_as_args",
2557
+ "Ruby" => "def x(a=0.0,b=0.0)\n a+b\nend",
2558
+ "ParseTree" => s(:defn, :x,
2559
+ s(:args,
2560
+ s(:lasgn, :a, s(:lit, 0.0)),
2561
+ s(:lasgn, :b, s(:lit, 0.0))),
2562
+ s(:call, s(:lvar, :a), :+, s(:lvar, :b))),
2563
+ "Ruby2Ruby" => "def x(a = 0.0, b = 0.0)\n (a + b)\nend")
2564
+
2565
+ add_tests("postexe",
2566
+ "Ruby" => "END { 1 }",
2567
+ "ParseTree" => s(:iter, s(:postexe), 0, s(:lit, 1)))
2568
+
2569
+ add_tests("proc_args_0",
2570
+ "Ruby" => "proc { || (x + 1) }",
2571
+ "ParseTree" => s(:iter,
2572
+ s(:call, nil, :proc),
2573
+ s(:args),
2574
+ s(:call, s(:call, nil, :x), :+, s(:lit, 1))))
2575
+
2576
+ add_tests("proc_args_1",
2577
+ "Ruby" => "proc { |x| (x + 1) }",
2578
+ "ParseTree" => s(:iter,
2579
+ s(:call, nil, :proc),
2580
+ s(:args, :x),
2581
+ s(:call, s(:lvar, :x), :+, s(:lit, 1))))
2582
+
2583
+ add_tests("proc_args_2",
2584
+ "Ruby" => "proc { |x, y| (x + y) }",
2585
+ "ParseTree" => s(:iter,
2586
+ s(:call, nil, :proc),
2587
+ s(:args, :x, :y),
2588
+ s(:call, s(:lvar, :x), :+, s(:lvar, :y))))
2589
+
2590
+ add_tests("proc_args_no",
2591
+ "Ruby" => "proc { (x + 1) }",
2592
+ "ParseTree" => s(:iter,
2593
+ s(:call, nil, :proc),
2594
+ 0,
2595
+ s(:call, s(:call, nil, :x), :+, s(:lit, 1))))
2596
+
2597
+ add_tests("redo",
2598
+ "Ruby" => "loop { redo if false }",
2599
+ "ParseTree" => s(:iter,
2600
+ s(:call, nil, :loop),
2601
+ 0,
2602
+ s(:if, s(:false), s(:redo), nil)))
2603
+
2604
+ add_tests("rescue", # TODO: need a resbody w/ multiple classes and a splat
2605
+ "Ruby" => "blah rescue nil",
2606
+ "ParseTree" => s(:rescue,
2607
+ s(:call, nil, :blah),
2608
+ s(:resbody, s(:array), s(:nil))))
2609
+
2610
+ add_tests("rescue_block_body",
2611
+ "Ruby" => "begin\n a\nrescue => e\n c\n d\nend",
2612
+ "ParseTree" => s(:rescue,
2613
+ s(:call, nil, :a),
2614
+ s(:resbody,
2615
+ s(:array, s(:lasgn, :e, s(:gvar, :$!))),
2616
+ s(:call, nil, :c),
2617
+ s(:call, nil, :d))))
2618
+
2619
+ add_tests("rescue_block_body_3",
2620
+ "Ruby" => "begin\n a\nrescue A\n b\nrescue B\n c\nrescue C\n d\nend",
2621
+ "ParseTree" => s(:rescue,
2622
+ s(:call, nil, :a),
2623
+ s(:resbody, s(:array, s(:const, :A)),
2624
+ s(:call, nil, :b)),
2625
+ s(:resbody, s(:array, s(:const, :B)),
2626
+ s(:call, nil, :c)),
2627
+ s(:resbody, s(:array, s(:const, :C)),
2628
+ s(:call, nil, :d))))
2629
+
2630
+ add_tests("rescue_block_body_ivar",
2631
+ "Ruby" => "begin\n a\nrescue => @e\n c\n d\nend",
2632
+ "ParseTree" => s(:rescue,
2633
+ s(:call, nil, :a),
2634
+ s(:resbody,
2635
+ s(:array, s(:iasgn, :@e, s(:gvar, :$!))),
2636
+ s(:call, nil, :c),
2637
+ s(:call, nil, :d))))
2638
+
2639
+ add_tests("rescue_block_nada",
2640
+ "Ruby" => "begin\n blah\nrescue\n # do nothing\nend",
2641
+ "ParseTree" => s(:rescue,
2642
+ s(:call, nil, :blah),
2643
+ s(:resbody, s(:array), nil)))
2644
+
2645
+ add_tests("rescue_exceptions",
2646
+ "Ruby" => "begin\n blah\nrescue RuntimeError => r\n # do nothing\nend",
2647
+ "ParseTree" => s(:rescue,
2648
+ s(:call, nil, :blah),
2649
+ s(:resbody,
2650
+ s(:array,
2651
+ s(:const, :RuntimeError),
2652
+ s(:lasgn, :r, s(:gvar, :$!))),
2653
+ nil)))
2654
+
2655
+ add_tests("rescue_iasgn_var_empty",
2656
+ "Ruby" => "begin\n 1\nrescue => @e\n # do nothing\nend",
2657
+ "ParseTree" => s(:rescue,
2658
+ s(:lit, 1),
2659
+ s(:resbody,
2660
+ s(:array, s(:iasgn, :@e, s(:gvar, :$!))),
2661
+ nil)))
2662
+
2663
+ add_tests("rescue_lasgn",
2664
+ "Ruby" => "begin\n 1\nrescue\n var = 2\nend",
2665
+ "ParseTree" => s(:rescue,
2666
+ s(:lit, 1),
2667
+ s(:resbody,
2668
+ s(:array),
2669
+ s(:lasgn, :var, s(:lit, 2)))),
2670
+ "Ruby2Ruby" => "1 rescue var = 2")
2671
+
2672
+ add_tests("rescue_lasgn_var",
2673
+ "Ruby" => "begin\n 1\nrescue => e\n var = 2\nend",
2674
+ "ParseTree" => s(:rescue,
2675
+ s(:lit, 1),
2676
+ s(:resbody,
2677
+ s(:array, s(:lasgn, :e, s(:gvar, :$!))),
2678
+ s(:lasgn, :var, s(:lit, 2)))))
2679
+
2680
+ add_tests("rescue_lasgn_var_empty",
2681
+ "Ruby" => "begin\n 1\nrescue => e\n # do nothing\nend",
2682
+ "ParseTree" => s(:rescue,
2683
+ s(:lit, 1),
2684
+ s(:resbody,
2685
+ s(:array, s(:lasgn, :e, s(:gvar, :$!))),
2686
+ nil)))
2687
+
2688
+ add_tests("retry",
2689
+ "Ruby" => "retry",
2690
+ "ParseTree" => s(:retry))
2691
+
2692
+ add_tests("return_0",
2693
+ "Ruby" => "return",
2694
+ "ParseTree" => s(:return))
2695
+
2696
+ add_tests("return_1",
2697
+ "Ruby" => "return 1",
2698
+ "ParseTree" => s(:return, s(:lit, 1)))
2699
+
2700
+ add_tests("return_1_splatted",
2701
+ "Ruby" => "return *1",
2702
+ "ParseTree" => s(:return, s(:svalue, s(:splat, s(:lit, 1)))))
2703
+
2704
+ add_tests("return_n",
2705
+ "Ruby" => "return 1, 2, 3",
2706
+ "ParseTree" => s(:return, s(:array,
2707
+ s(:lit, 1), s(:lit, 2), s(:lit, 3))),
2708
+ "Ruby2Ruby" => "return [1, 2, 3]")
2709
+
2710
+ add_tests("sclass",
2711
+ "Ruby" => "class << self\n 42\nend",
2712
+ "ParseTree" => s(:sclass, s(:self), s(:lit, 42)))
2713
+
2714
+ add_tests("sclass_multiple",
2715
+ "Ruby" => "class << self\n x\n y\nend",
2716
+ "ParseTree" => s(:sclass, s(:self),
2717
+ s(:call, nil, :x), s(:call, nil, :y)))
2718
+
2719
+ add_tests("sclass_trailing_class",
2720
+ "Ruby" => "class A\n class << self\n a\n end\n \n class B\n end\nend",
2721
+ "ParseTree" => s(:class, :A, nil,
2722
+ s(:sclass, s(:self),
2723
+ s(:call, nil, :a)),
2724
+ s(:class, :B, nil)))
2725
+
2726
+ add_tests("splat",
2727
+ "Ruby" => "def x(*b)\n a(*b)\nend",
2728
+ "ParseTree" => s(:defn, :x,
2729
+ s(:args, :"*b"),
2730
+ s(:call, nil, :a, s(:splat, s(:lvar, :b)))))
2731
+
2732
+ add_tests("splat_array",
2733
+ "Ruby" => "[*[1]]",
2734
+ "ParseTree" => s(:array, s(:splat, s(:array, s(:lit, 1)))))
2735
+
2736
+ add_tests("splat_break",
2737
+ "Ruby" => "break *[1]",
2738
+ "ParseTree" => s(:break, s(:svalue, s(:splat, s(:array, s(:lit, 1))))))
2739
+
2740
+ add_tests("splat_break_array",
2741
+ "Ruby" => "break [*[1]]",
2742
+ "ParseTree" => s(:break, s(:array, s(:splat, s(:array, s(:lit, 1))))))
2743
+
2744
+ add_tests("splat_fcall",
2745
+ "Ruby" => "meth(*[1])",
2746
+ "ParseTree" => s(:call,
2747
+ nil,
2748
+ :meth,
2749
+ s(:splat, s(:array, s(:lit, 1)))))
2750
+
2751
+ add_tests("splat_fcall_array",
2752
+ "Ruby" => "meth([*[1]])",
2753
+ "ParseTree" => s(:call, nil, :meth,
2754
+ s(:array, s(:splat, s(:array, s(:lit, 1))))))
2755
+
2756
+ add_tests("splat_lasgn",
2757
+ "Ruby" => "x = *[1]",
2758
+ "ParseTree" => s(:lasgn, :x, s(:svalue, s(:splat, s(:array, s(:lit, 1))))))
2759
+
2760
+ add_tests("splat_lasgn_array",
2761
+ "Ruby" => "x = [*[1]]",
2762
+ "ParseTree" => s(:lasgn, :x, s(:array, s(:splat, s(:array, s(:lit, 1))))))
2763
+
2764
+ add_tests("splat_lit_1",
2765
+ "Ruby" => "[*1]",
2766
+ # UGH - damn MRI
2767
+ "ParseTree" => s(:array, s(:splat, s(:lit, 1))))
2768
+
2769
+ add_tests("splat_lit_n",
2770
+ "Ruby" => "[1, *2]",
2771
+ "ParseTree" => s(:array, s(:lit, 1), s(:splat, s(:lit, 2))))
2772
+
2773
+ add_tests("splat_next",
2774
+ "Ruby" => "next *[1]",
2775
+ "ParseTree" => s(:next, s(:svalue, s(:splat, s(:array, s(:lit, 1))))))
2776
+
2777
+ add_tests("splat_next_array",
2778
+ "Ruby" => "next [*[1]]",
2779
+ "ParseTree" => s(:next, s(:array, s(:splat, s(:array, s(:lit, 1))))))
2780
+
2781
+ add_tests("splat_return",
2782
+ "Ruby" => "return *[1]",
2783
+ "ParseTree" => s(:return, s(:svalue, s(:splat, s(:array, s(:lit, 1))))))
2784
+
2785
+ add_tests("splat_return_array",
2786
+ "Ruby" => "return [*[1]]",
2787
+ "ParseTree" => s(:return, s(:array, s(:splat, s(:array, s(:lit, 1))))))
2788
+
2789
+ add_tests("splat_super",
2790
+ "Ruby" => "super(*[1])",
2791
+ "ParseTree" => s(:super, s(:splat, s(:array, s(:lit, 1)))))
2792
+
2793
+ add_tests("splat_super_array",
2794
+ "Ruby" => "super([*[1]])",
2795
+ "ParseTree" => s(:super, s(:array, s(:splat, s(:array, s(:lit, 1))))))
2796
+
2797
+ add_tests("splat_yield",
2798
+ "Ruby" => "yield(*[1])",
2799
+ "ParseTree" => s(:yield, s(:splat, s(:array, s(:lit, 1)))))
2800
+
2801
+ add_tests("splat_yield_array",
2802
+ "Ruby" => "yield([*[1]])",
2803
+ "ParseTree" => s(:yield, s(:array, s(:splat, s(:array, s(:lit, 1))))))
2804
+
2805
+ add_tests("str",
2806
+ "Ruby" => '"x"',
2807
+ "ParseTree" => s(:str, "x"))
2808
+
2809
+ add_tests("str_concat_newline", # FIX? make prettier? possible?
2810
+ "Ruby" => '"before" \\
2811
+ " after"',
2812
+ "ParseTree" => s(:str, "before after"),
2813
+ "Ruby2Ruby" => '"before after"')
2814
+
2815
+ add_tests("str_concat_space",
2816
+ "Ruby" => '"before" " after"',
2817
+ "ParseTree" => s(:str, "before after"),
2818
+ "Ruby2Ruby" => '"before after"')
2819
+
2820
+ add_tests("str_heredoc",
2821
+ "Ruby" => "<<'EOM'\n blah\nblah\nEOM",
2822
+ "ParseTree" => s(:str, " blah\nblah\n"),
2823
+ "Ruby2Ruby" => "\" blah\\nblah\\n\"")
2824
+
2825
+ add_tests("str_heredoc_call",
2826
+ "Ruby" => "<<'EOM'.strip\n blah\nblah\nEOM",
2827
+ "ParseTree" => s(:call, s(:str, " blah\nblah\n"),
2828
+ :strip),
2829
+ "Ruby2Ruby" => "\" blah\\nblah\\n\".strip")
2830
+
2831
+ add_tests("str_heredoc_double",
2832
+ "Ruby" => "a += <<-H1 + b + <<-H2\n first\nH1\n second\nH2",
2833
+ "ParseTree" => s(:lasgn, :a,
2834
+ s(:call,
2835
+ s(:lvar, :a),
2836
+ :+,
2837
+ s(:call,
2838
+ s(:call,
2839
+ s(:str, " first\n"),
2840
+ :+,
2841
+ s(:call, nil, :b)),
2842
+ :+,
2843
+ s(:str, " second\n")))),
2844
+ "Ruby2Ruby" => "a = (a + ((\" first\\n\" + b) + \" second\\n\"))")
2845
+
2846
+ add_tests("str_heredoc_empty", # yes... tarded
2847
+ "Ruby" => "<<'EOM'\nEOM",
2848
+ "ParseTree" => s(:str, ""),
2849
+ "Ruby2Ruby" => '""')
2850
+
2851
+ add_tests("str_heredoc_indent",
2852
+ "Ruby" => "<<-EOM\n blah\nblah\n\n EOM",
2853
+ "ParseTree" => s(:str, " blah\nblah\n\n"),
2854
+ "Ruby2Ruby" => "\" blah\\nblah\\n\\n\"")
2855
+
2856
+ add_tests("str_interp_file",
2857
+ "Ruby" => '"file = #{__FILE__}\n"',
2858
+ "ParseTree" => s(:str, "file = (string)\n"),
2859
+ "Ruby2Ruby" => '"file = (string)\\n"')
2860
+
2861
+ add_tests("structure_extra_block_for_dvar_scoping",
2862
+ "Ruby" => "a.b do |c, d|\n unless e.f(c) then\n g = false\n d.h { |x, i| g = true }\n end\nend",
2863
+ "ParseTree" => s(:iter,
2864
+ s(:call, s(:call, nil, :a), :b),
2865
+ s(:args, :c, :d),
2866
+ s(:if,
2867
+ s(:call, s(:call, nil, :e), :f, s(:lvar, :c)),
2868
+ nil,
2869
+ s(:block,
2870
+ s(:lasgn, :g, s(:false)),
2871
+ s(:iter,
2872
+ s(:call, s(:lvar, :d), :h),
2873
+ s(:args, :x, :i),
2874
+ s(:lasgn, :g, s(:true)))))))
2875
+
2876
+ add_tests("structure_remove_begin_1",
2877
+ "Ruby" => "a << begin\n b\n rescue\n c\n end",
2878
+ "ParseTree" => s(:call, s(:call, nil, :a), :<<,
2879
+ s(:rescue,
2880
+ s(:call, nil, :b),
2881
+ s(:resbody, s(:array),
2882
+ s(:call, nil, :c)))),
2883
+ "Ruby2Ruby" => "(a << (b rescue c))")
2884
+
2885
+ add_tests("structure_remove_begin_2",
2886
+ "Ruby" => "a = if c\n begin\n b\n rescue\n nil\n end\n end\na",
2887
+ "ParseTree" => s(:block,
2888
+ s(:lasgn,
2889
+ :a,
2890
+ s(:if, s(:call, nil, :c),
2891
+ s(:rescue, s(:call, nil, :b),
2892
+ s(:resbody,
2893
+ s(:array), s(:nil))),
2894
+ nil)),
2895
+ s(:lvar, :a)),
2896
+ "Ruby2Ruby" => "a = b rescue nil if c\na\n") # OMG that's awesome
2897
+
2898
+ add_tests("super_0",
2899
+ "Ruby" => "def x\n super()\nend",
2900
+ "ParseTree" => s(:defn, :x, s(:args), s(:super)))
2901
+
2902
+ add_tests("super_1",
2903
+ "Ruby" => "def x\n super(4)\nend",
2904
+ "ParseTree" => s(:defn, :x, s(:args),
2905
+ s(:super, s(:lit, 4))))
2906
+
2907
+ add_tests("super_1_array",
2908
+ "Ruby" => "def x\n super([24, 42])\nend",
2909
+ "ParseTree" => s(:defn, :x, s(:args),
2910
+ s(:super, s(:array, s(:lit, 24), s(:lit, 42)))))
2911
+
2912
+ add_tests("super_block_pass",
2913
+ "Ruby" => "super(a, &b)",
2914
+ "ParseTree" => s(:super,
2915
+ s(:call, nil, :a),
2916
+ s(:block_pass,
2917
+ s(:call, nil, :b))))
2918
+
2919
+ add_tests("super_block_splat",
2920
+ "Ruby" => "super(a, *b)",
2921
+ "ParseTree" => s(:super,
2922
+ s(:call, nil, :a),
2923
+ s(:splat, s(:call, nil, :b))))
2924
+
2925
+ add_tests("super_n",
2926
+ "Ruby" => "def x\n super(24, 42)\nend",
2927
+ "ParseTree" => s(:defn, :x, s(:args),
2928
+ s(:super, s(:lit, 24), s(:lit, 42))))
2929
+
2930
+ add_tests("svalue",
2931
+ "Ruby" => "a = *b",
2932
+ "ParseTree" => s(:lasgn, :a,
2933
+ s(:svalue,
2934
+ s(:splat, s(:call, nil, :b)))))
2935
+
2936
+ add_tests("ternary_nil_no_space",
2937
+ "Ruby" => "1 ? nil: 1",
2938
+ "ParseTree" => s(:if, s(:lit, 1), s(:nil), s(:lit, 1)),
2939
+ "Ruby2Ruby" => "1 ? (nil) : (1)")
2940
+
2941
+ add_tests("ternary_symbol_no_spaces",
2942
+ "Ruby" => "1?:x:1",
2943
+ "ParseTree" => s(:if, s(:lit, 1), s(:lit, :x), s(:lit, 1)),
2944
+ "Ruby2Ruby" => "1 ? (:x) : (1)")
2945
+
2946
+ add_tests("to_ary",
2947
+ "Ruby" => "a, b = c",
2948
+ "ParseTree" => s(:masgn,
2949
+ s(:array, s(:lasgn, :a), s(:lasgn, :b)),
2950
+ s(:to_ary, s(:call, nil, :c))))
2951
+
2952
+ add_tests("true",
2953
+ "Ruby" => "true",
2954
+ "ParseTree" => s(:true))
2955
+
2956
+ add_tests("undef",
2957
+ "Ruby" => "undef :x",
2958
+ "ParseTree" => s(:undef, s(:lit, :x)))
2959
+
2960
+ add_tests("undef_2",
2961
+ "Ruby" => "undef :x, :y",
2962
+ "ParseTree" => s(:block,
2963
+ s(:undef, s(:lit, :x)),
2964
+ s(:undef, s(:lit, :y))),
2965
+ "Ruby2Ruby" => "undef :x\nundef :y\n")
2966
+
2967
+ add_tests("undef_3",
2968
+ "Ruby" => "undef :x, :y, :z",
2969
+ "ParseTree" => s(:block,
2970
+ s(:undef, s(:lit, :x)),
2971
+ s(:undef, s(:lit, :y)),
2972
+ s(:undef, s(:lit, :z))),
2973
+ "Ruby2Ruby" => "undef :x\nundef :y\nundef :z\n")
2974
+
2975
+ add_tests("undef_block_1",
2976
+ "Ruby" => "f1\nundef :x\n", # TODO: don't like the extra return
2977
+ "ParseTree" => s(:block,
2978
+ s(:call, nil, :f1),
2979
+ s(:undef, s(:lit, :x))))
2980
+
2981
+ add_tests("undef_block_2",
2982
+ "Ruby" => "f1\nundef :x, :y",
2983
+ "ParseTree" => s(:block,
2984
+ s(:call, nil, :f1),
2985
+ s(:block,
2986
+ s(:undef, s(:lit, :x)),
2987
+ s(:undef, s(:lit, :y)))),
2988
+ "Ruby2Ruby" => "f1\n(undef :x\nundef :y)\n")
2989
+
2990
+ add_tests("undef_block_3",
2991
+ "Ruby" => "f1\nundef :x, :y, :z",
2992
+ "ParseTree" => s(:block,
2993
+ s(:call, nil, :f1),
2994
+ s(:block,
2995
+ s(:undef, s(:lit, :x)),
2996
+ s(:undef, s(:lit, :y)),
2997
+ s(:undef, s(:lit, :z)))),
2998
+ "Ruby2Ruby" => "f1\n(undef :x\nundef :y\nundef :z)\n")
2999
+
3000
+ add_tests("undef_block_3_post",
3001
+ "Ruby" => "undef :x, :y, :z\nf2",
3002
+ "ParseTree" => s(:block,
3003
+ s(:undef, s(:lit, :x)),
3004
+ s(:undef, s(:lit, :y)),
3005
+ s(:undef, s(:lit, :z)),
3006
+ s(:call, nil, :f2)),
3007
+ "Ruby2Ruby" => "undef :x\nundef :y\nundef :z\nf2\n")
3008
+
3009
+ add_tests("undef_block_wtf",
3010
+ "Ruby" => "f1\nundef :x, :y, :z\nf2",
3011
+ "ParseTree" => s(:block,
3012
+ s(:call, nil, :f1),
3013
+ s(:block,
3014
+ s(:undef, s(:lit, :x)),
3015
+ s(:undef, s(:lit, :y)),
3016
+ s(:undef, s(:lit, :z))),
3017
+ s(:call, nil, :f2)),
3018
+ "Ruby2Ruby" => "f1\n(undef :x\nundef :y\nundef :z)\nf2\n")
3019
+
3020
+ add_tests("unless_post",
3021
+ "Ruby" => "a unless b",
3022
+ "ParseTree" => s(:if, s(:call, nil, :b), nil,
3023
+ s(:call, nil, :a)))
3024
+
3025
+ add_tests("unless_pre",
3026
+ "Ruby" => "unless b then a end",
3027
+ "ParseTree" => s(:if, s(:call, nil, :b), nil,
3028
+ s(:call, nil, :a)),
3029
+ "Ruby2Ruby" => "a unless b")
3030
+
3031
+ add_tests("until_post",
3032
+ "Ruby" => "begin\n (1 + 1)\nend until false",
3033
+ "ParseTree" => s(:until, s(:false),
3034
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), false))
3035
+
3036
+ add_tests("until_pre",
3037
+ "Ruby" => "until false do\n (1 + 1)\nend",
3038
+ "ParseTree" => s(:until, s(:false),
3039
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true))
3040
+
3041
+ add_tests("until_pre_mod",
3042
+ "Ruby" => "(1 + 1) until false",
3043
+ "ParseTree" => s(:until, s(:false),
3044
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
3045
+ "Ruby2Ruby" => "until false do\n (1 + 1)\nend")
3046
+
3047
+ add_tests("valias",
3048
+ "Ruby" => "alias $y $x",
3049
+ "ParseTree" => s(:valias, :$y, :$x))
3050
+
3051
+ add_tests("vcall",
3052
+ "Ruby" => "method",
3053
+ "ParseTree" => s(:call, nil, :method))
3054
+
3055
+ add_tests("while_post",
3056
+ "Ruby" => "begin\n (1 + 1)\nend while false",
3057
+ "ParseTree" => s(:while, s(:false),
3058
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), false))
3059
+
3060
+ add_tests("while_post2",
3061
+ "Ruby" => "begin\n (1 + 2)\n (3 + 4)\nend while false",
3062
+ "ParseTree" => s(:while, s(:false),
3063
+ s(:block,
3064
+ s(:call, s(:lit, 1), :+, s(:lit, 2)),
3065
+ s(:call, s(:lit, 3), :+, s(:lit, 4))),
3066
+ false))
3067
+
3068
+ add_tests("while_pre",
3069
+ "Ruby" => "while false do\n (1 + 1)\nend",
3070
+ "ParseTree" => s(:while, s(:false),
3071
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true))
3072
+
3073
+ add_tests("while_pre_mod",
3074
+ "Ruby" => "(1 + 1) while false",
3075
+ "ParseTree" => s(:while, s(:false),
3076
+ s(:call, s(:lit, 1), :+, s(:lit, 1)), true),
3077
+ "Ruby2Ruby" => "while false do\n (1 + 1)\nend") # FIX can be one liner
3078
+
3079
+ add_tests("while_pre_nil",
3080
+ "Ruby" => "while false do\nend",
3081
+ "ParseTree" => s(:while, s(:false), nil, true))
3082
+
3083
+ add_tests("xstr",
3084
+ "Ruby" => "`touch 5`",
3085
+ "ParseTree" => s(:xstr, "touch 5"))
3086
+
3087
+ add_tests("yield_0",
3088
+ "Ruby" => "yield",
3089
+ "ParseTree" => s(:yield))
3090
+
3091
+ add_tests("yield_1",
3092
+ "Ruby" => "yield(42)",
3093
+ "ParseTree" => s(:yield, s(:lit, 42)))
3094
+
3095
+ add_tests("yield_array_0",
3096
+ "Ruby" => "yield([])",
3097
+ "ParseTree" => s(:yield, s(:array)))
3098
+
3099
+ add_tests("yield_array_1",
3100
+ "Ruby" => "yield([42])",
3101
+ "ParseTree" => s(:yield, s(:array, s(:lit, 42))))
3102
+
3103
+ add_tests("yield_array_n",
3104
+ "Ruby" => "yield([42, 24])",
3105
+ "ParseTree" => s(:yield, s(:array, s(:lit, 42), s(:lit, 24))))
3106
+
3107
+ add_tests("yield_n",
3108
+ "Ruby" => "yield(42, 24)",
3109
+ "ParseTree" => s(:yield, s(:lit, 42), s(:lit, 24)))
3110
+
3111
+ add_tests("zarray",
3112
+ "Ruby" => "a = []",
3113
+ "ParseTree" => s(:lasgn, :a, s(:array)))
3114
+
3115
+ add_tests("zsuper",
3116
+ "Ruby" => "def x\n super\nend",
3117
+ "ParseTree" => s(:defn, :x, s(:args), s(:zsuper)))
3118
+
3119
+ # TODO: discuss and decide which lit we like
3120
+ # it "converts a regexp to an sexp" do
3121
+ # "/blah/".to_sexp.should == s(:regex, "blah", 0)
3122
+ # "/blah/i".to_sexp.should == s(:regex, "blah", 1)
3123
+ # "/blah/u".to_sexp.should == s(:regex, "blah", 64)
3124
+ # end
3125
+
3126
+ end
3127
+
3128
+ # :startdoc: