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