brakeman 4.3.1 → 5.4.0

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