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,126 +0,0 @@
|
|
1
|
-
# :stopdoc:
|
2
|
-
|
3
|
-
##
|
4
|
-
# I'm starting to warm up to this idea!
|
5
|
-
# ENV["STRICT_SEXP"] turns on various levels of conformance checking
|
6
|
-
#
|
7
|
-
# 1 = sexp[0] => sexp_type
|
8
|
-
# 1 = sexp.first => sexp_type
|
9
|
-
# 1 = sexp[0] = x => sexp_type = x
|
10
|
-
# 1 = sexp[1..-1] => sexp_body
|
11
|
-
# 1 = sexp[1..-1] = x => sexp_body = x
|
12
|
-
# 1 = sexp[-1] => last
|
13
|
-
# 2 = sexp[1] => no
|
14
|
-
# 2 = sexp[1] = x => no
|
15
|
-
# 3 = sexp[n] => no
|
16
|
-
# 3 = sexp[n] = x => no
|
17
|
-
# 3 = sexp.node_name => no (ie, method_missing)
|
18
|
-
# 4 = sexp.replace x => no
|
19
|
-
# 4 = sexp.concat x => no
|
20
|
-
# 4 = sexp.collect! => no
|
21
|
-
# 4 = sexp.compact! => no
|
22
|
-
# 4 = sexp.flatten! => no
|
23
|
-
# 4 = sexp.map! => no
|
24
|
-
# 4 = sexp.reject! => no
|
25
|
-
# 4 = sexp.reverse! => no
|
26
|
-
# 4 = sexp.rotate! => no
|
27
|
-
# 4 = sexp.select! => no
|
28
|
-
# 4 = sexp.shuffle! => no
|
29
|
-
# 4 = sexp.slice! => no
|
30
|
-
# 4 = sexp.sort! => no
|
31
|
-
# 4 = sexp.sort_by! => no
|
32
|
-
# 4 = sexp.uniq! => no
|
33
|
-
# 4 = sexp.unshift => no
|
34
|
-
# 4 = sexp.push => no
|
35
|
-
# 4 = sexp.pop => no
|
36
|
-
# 4 = sexp << => no
|
37
|
-
|
38
|
-
class Sexp
|
39
|
-
alias :safe_idx :[]
|
40
|
-
alias :safe_asgn :[]=
|
41
|
-
alias :sexp_type= :sexp_type=
|
42
|
-
alias :sexp_body= :sexp_body=
|
43
|
-
alias :shift :shift
|
44
|
-
|
45
|
-
def self.nuke_method name, level
|
46
|
-
define_method name do |*args|
|
47
|
-
raise "no: %p.%s %p" % [self, name, args]
|
48
|
-
end if __strict >= level
|
49
|
-
end
|
50
|
-
|
51
|
-
def self.__strict
|
52
|
-
ENV["STRICT_SEXP"].to_i
|
53
|
-
end
|
54
|
-
|
55
|
-
def __strict
|
56
|
-
self.class.__strict
|
57
|
-
end
|
58
|
-
|
59
|
-
undef_method :method_missing if __strict > 2
|
60
|
-
|
61
|
-
def method_missing msg, *args
|
62
|
-
raise "don't call method_missing on Sexps: %p.(%s)" % [msg, args.inspect[1..-2]]
|
63
|
-
end if __strict > 2
|
64
|
-
|
65
|
-
def [] i
|
66
|
-
raise "no idx: #{inspect}[#{i}]" if __strict > 2
|
67
|
-
raise "no idx>1: #{inspect}[#{i}]" if Integer === i && i > 1 if __strict > 1
|
68
|
-
raise "use sexp_type" if i == 0
|
69
|
-
raise "use sexp_body" if i == (1..-1)
|
70
|
-
raise "use last" if i == -1
|
71
|
-
self.safe_idx i
|
72
|
-
end
|
73
|
-
|
74
|
-
def []= i, v
|
75
|
-
raise "use sexp_type=" if i == 0
|
76
|
-
raise "use sexp_body=" if i == (1..-1)
|
77
|
-
raise "no asgn>1: #{inspect}[#{i}] = #{v.inspect}" if Integer === i && i > 1 if
|
78
|
-
__strict > 1
|
79
|
-
raise "no asgn: #{inspect}[#{i}] = #{v.inspect}" if
|
80
|
-
__strict > 2
|
81
|
-
self.safe_asgn i, v
|
82
|
-
end
|
83
|
-
|
84
|
-
def first
|
85
|
-
raise "use sexp_type"
|
86
|
-
end
|
87
|
-
|
88
|
-
nuke_method :collect!, 4
|
89
|
-
nuke_method :compact!, 4
|
90
|
-
nuke_method :concat, 4
|
91
|
-
nuke_method :flatten!, 4
|
92
|
-
nuke_method :map!, 4
|
93
|
-
nuke_method :pop, 4
|
94
|
-
nuke_method :push, 4
|
95
|
-
nuke_method :reject!, 4
|
96
|
-
nuke_method :replace, 4
|
97
|
-
nuke_method :reverse!, 4
|
98
|
-
nuke_method :rotate!, 4
|
99
|
-
nuke_method :select!, 4
|
100
|
-
nuke_method :shuffle!, 4
|
101
|
-
nuke_method :slice!, 4
|
102
|
-
nuke_method :sort!, 4
|
103
|
-
nuke_method :sort_by!, 4
|
104
|
-
nuke_method :uniq!, 4
|
105
|
-
nuke_method :unshift, 4
|
106
|
-
nuke_method :<<, 5
|
107
|
-
nuke_method :shift, 5
|
108
|
-
|
109
|
-
def sexp_type
|
110
|
-
safe_idx 0
|
111
|
-
end
|
112
|
-
|
113
|
-
def sexp_body from = 1
|
114
|
-
safe_idx from..-1
|
115
|
-
end
|
116
|
-
|
117
|
-
def sexp_type= v
|
118
|
-
self.safe_asgn 0, v
|
119
|
-
end
|
120
|
-
|
121
|
-
def sexp_body= v
|
122
|
-
self.safe_asgn 1..-1, v
|
123
|
-
end
|
124
|
-
end unless Sexp.new.respond_to? :safe_asgn if ENV["STRICT_SEXP"]
|
125
|
-
|
126
|
-
# :startdoc:
|
@@ -1,66 +0,0 @@
|
|
1
|
-
$TESTING = true
|
2
|
-
|
3
|
-
require "composite_sexp_processor"
|
4
|
-
require "minitest/autorun"
|
5
|
-
|
6
|
-
class FakeProcessor1 < SexpProcessor # ZenTest SKIP
|
7
|
-
|
8
|
-
def initialize
|
9
|
-
super
|
10
|
-
self.warn_on_default = false
|
11
|
-
self.default_method = :default_processor
|
12
|
-
self.require_empty = false
|
13
|
-
self.expected = Array
|
14
|
-
end
|
15
|
-
|
16
|
-
def default_processor exp
|
17
|
-
t, *rest = exp
|
18
|
-
s(t, *rest.map { |s| "#{s} woot" })
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
class TestCompositeSexpProcessor < Minitest::Test
|
23
|
-
|
24
|
-
def setup
|
25
|
-
@p = CompositeSexpProcessor.new
|
26
|
-
end
|
27
|
-
|
28
|
-
def test_process_default
|
29
|
-
data = s(1, 2, 3)
|
30
|
-
result = @p.process(data.dup)
|
31
|
-
assert_equal(data.dup, result)
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_process_fake1
|
35
|
-
data = s(:x, 1, 2, 3)
|
36
|
-
@p << FakeProcessor1.new
|
37
|
-
result = @p.process(data.dup)
|
38
|
-
assert_equal [:x, "1 woot", "2 woot", "3 woot"], result
|
39
|
-
end
|
40
|
-
|
41
|
-
def test_process_fake1_twice
|
42
|
-
data = s(:x, 1, 2, 3)
|
43
|
-
@p << FakeProcessor1.new
|
44
|
-
@p << FakeProcessor1.new
|
45
|
-
result = @p.process(data.dup)
|
46
|
-
assert_equal [:x, "1 woot woot", "2 woot woot", "3 woot woot"], result
|
47
|
-
end
|
48
|
-
|
49
|
-
def test_processors
|
50
|
-
# everything is tested by test_append
|
51
|
-
skip
|
52
|
-
end
|
53
|
-
|
54
|
-
def test_append
|
55
|
-
assert_equal([], @p.processors)
|
56
|
-
|
57
|
-
assert_raises(ArgumentError) do
|
58
|
-
@p << 42
|
59
|
-
end
|
60
|
-
|
61
|
-
fp1 = FakeProcessor1.new
|
62
|
-
@p << fp1
|
63
|
-
assert_equal([fp1], @p.processors)
|
64
|
-
end
|
65
|
-
|
66
|
-
end
|
@@ -1,94 +0,0 @@
|
|
1
|
-
$TESTING = true
|
2
|
-
|
3
|
-
require "minitest/autorun"
|
4
|
-
require "sexp_processor"
|
5
|
-
|
6
|
-
class TestEnvironment < Minitest::Test
|
7
|
-
|
8
|
-
def setup
|
9
|
-
@env = SexpProcessor::Environment.new
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_all
|
13
|
-
@env.scope do
|
14
|
-
@env[:x] = 42
|
15
|
-
|
16
|
-
@env.scope do
|
17
|
-
@env[:y] = 3
|
18
|
-
@env[:x] = Math::PI
|
19
|
-
|
20
|
-
expected = { :x => Math::PI, :y => 3 }
|
21
|
-
assert_equal expected, @env.all
|
22
|
-
end
|
23
|
-
|
24
|
-
expected = { :x => Math::PI }
|
25
|
-
assert_equal expected, @env.all
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def test_depth
|
30
|
-
assert_equal 1, @env.depth
|
31
|
-
|
32
|
-
@env.scope do
|
33
|
-
assert_equal 2, @env.depth
|
34
|
-
end
|
35
|
-
|
36
|
-
assert_equal 1, @env.depth
|
37
|
-
end
|
38
|
-
|
39
|
-
def test_index
|
40
|
-
test_index_equals
|
41
|
-
end
|
42
|
-
|
43
|
-
def test_index_unknown
|
44
|
-
assert_nil @env[:unknown]
|
45
|
-
end
|
46
|
-
|
47
|
-
def test_index_out_of_scope
|
48
|
-
@env.scope do
|
49
|
-
@env[:var] = 42
|
50
|
-
assert_equal 42, @env[:var]
|
51
|
-
end
|
52
|
-
|
53
|
-
assert_nil @env[:var]
|
54
|
-
end
|
55
|
-
|
56
|
-
def test_index_equals
|
57
|
-
@env[:var] = 42
|
58
|
-
|
59
|
-
assert_equal 42, @env[:var]
|
60
|
-
end
|
61
|
-
|
62
|
-
def test_lookup_scope
|
63
|
-
@env[:var] = 42
|
64
|
-
assert_equal 42, @env[:var]
|
65
|
-
|
66
|
-
@env.scope do
|
67
|
-
assert_equal 42, @env[:var]
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
def test_scope
|
72
|
-
@env[:var] = 42
|
73
|
-
assert_equal 42, @env[:var]
|
74
|
-
|
75
|
-
@env.scope do
|
76
|
-
@env[:var] = Math::PI
|
77
|
-
assert_in_epsilon Math::PI, @env[:var]
|
78
|
-
end
|
79
|
-
|
80
|
-
assert_in_epsilon Math::PI, @env[:var]
|
81
|
-
end
|
82
|
-
|
83
|
-
def test_current_shadow
|
84
|
-
@env[:var] = 42
|
85
|
-
assert_equal 42, @env[:var]
|
86
|
-
|
87
|
-
@env.scope do
|
88
|
-
@env.current[:var] = 23
|
89
|
-
assert_equal 23, @env[:var]
|
90
|
-
end
|
91
|
-
|
92
|
-
assert_equal 42, @env[:var]
|
93
|
-
end
|
94
|
-
end
|
@@ -1,1643 +0,0 @@
|
|
1
|
-
$TESTING = true
|
2
|
-
|
3
|
-
if ENV["COV"]
|
4
|
-
require "simplecov"
|
5
|
-
SimpleCov.start do
|
6
|
-
add_filter "lib/sexp_processor"
|
7
|
-
add_filter "test"
|
8
|
-
end
|
9
|
-
warn "Running simplecov"
|
10
|
-
end
|
11
|
-
|
12
|
-
require "minitest/autorun"
|
13
|
-
require "minitest/hell" # beat these up
|
14
|
-
require "minitest/benchmark" if ENV["BENCH"]
|
15
|
-
require "sexp_processor" # for deep_clone (TODO: why is that on SP and not S?)
|
16
|
-
require "sexp"
|
17
|
-
|
18
|
-
def pyramid_sexp max
|
19
|
-
# s(:array,
|
20
|
-
# s(:array, s(:s, 1)),
|
21
|
-
# s(:array, s(:s, 1), s(:s, 2)),
|
22
|
-
# ...
|
23
|
-
# s(:array, s(:s, 1), s(:s, 2), ... s(:s, max-1)))
|
24
|
-
|
25
|
-
s(:array,
|
26
|
-
*(1...max).map { |n|
|
27
|
-
s(:array, *(1..n).map { |m|
|
28
|
-
s(:s, m) })})
|
29
|
-
end
|
30
|
-
|
31
|
-
class SexpTestCase < Minitest::Test
|
32
|
-
M = Sexp::Matcher
|
33
|
-
MC = Sexp::MatchCollection
|
34
|
-
MR = Sexp # ::MatchResult
|
35
|
-
|
36
|
-
CLASS_SEXP = s(:class, :cake, nil,
|
37
|
-
s(:defn, :foo, s(:args), s(:add, :a, :b)),
|
38
|
-
s(:defn, :bar, s(:args), s(:sub, :a, :b)))
|
39
|
-
|
40
|
-
def skip_if_strict n = 1
|
41
|
-
strict = ENV["STRICT_SEXP"].to_i
|
42
|
-
|
43
|
-
skip "Can't pass on STRICT_SEXP mode" if strict >= n
|
44
|
-
end
|
45
|
-
|
46
|
-
# KEY for regex tests
|
47
|
-
# :a == no change
|
48
|
-
# :b == will change (but sometimes ONLY once)
|
49
|
-
# :c == change to
|
50
|
-
|
51
|
-
def assert_equal3 x, y
|
52
|
-
skip_if_strict
|
53
|
-
|
54
|
-
assert_operator x, :===, y
|
55
|
-
end
|
56
|
-
|
57
|
-
def refute_equal3 x, y
|
58
|
-
refute_operator x, :===, y
|
59
|
-
end
|
60
|
-
|
61
|
-
def assert_pretty_print expect, input
|
62
|
-
assert_equal expect, input.pretty_inspect.chomp
|
63
|
-
end
|
64
|
-
|
65
|
-
def assert_inspect expect, input
|
66
|
-
assert_equal expect, input.inspect
|
67
|
-
end
|
68
|
-
|
69
|
-
def assert_search count, sexp, pattern
|
70
|
-
assert_equal count, sexp.search_each(pattern).count
|
71
|
-
end
|
72
|
-
|
73
|
-
def assert_satisfy pattern, sexp
|
74
|
-
assert_operator pattern, :satisfy?, sexp
|
75
|
-
end
|
76
|
-
|
77
|
-
def refute_satisfy pattern, sexp
|
78
|
-
refute_operator pattern, :satisfy?, sexp
|
79
|
-
end
|
80
|
-
end # class SexpTestCase
|
81
|
-
|
82
|
-
class MatcherTestCase < SexpTestCase
|
83
|
-
def self.abstract_test_case! klass = self # REFACTOR: push this up to minitest
|
84
|
-
extend Module.new {
|
85
|
-
define_method :run do |*args|
|
86
|
-
super(*args) unless self == klass
|
87
|
-
end
|
88
|
-
}
|
89
|
-
end
|
90
|
-
|
91
|
-
abstract_test_case!
|
92
|
-
|
93
|
-
def matcher
|
94
|
-
raise "Subclass responsibility"
|
95
|
-
end
|
96
|
-
|
97
|
-
def inspect_str
|
98
|
-
raise "Subclass responsibility"
|
99
|
-
end
|
100
|
-
|
101
|
-
def pretty_str
|
102
|
-
inspect_str
|
103
|
-
end
|
104
|
-
|
105
|
-
def sexp
|
106
|
-
s(:a)
|
107
|
-
end
|
108
|
-
|
109
|
-
def bad_sexp
|
110
|
-
s(:b)
|
111
|
-
end
|
112
|
-
|
113
|
-
def test_satisfy_eh
|
114
|
-
assert_equal3 matcher, sexp
|
115
|
-
end
|
116
|
-
|
117
|
-
def test_satisfy_eh_fail
|
118
|
-
skip "not applicable" unless bad_sexp
|
119
|
-
refute_equal3 matcher, bad_sexp
|
120
|
-
end
|
121
|
-
|
122
|
-
def test_greedy
|
123
|
-
refute_operator matcher, :greedy?
|
124
|
-
end
|
125
|
-
|
126
|
-
def test_inspect
|
127
|
-
assert_inspect inspect_str, matcher
|
128
|
-
end
|
129
|
-
|
130
|
-
def test_pretty_print
|
131
|
-
assert_pretty_print pretty_str, matcher
|
132
|
-
end
|
133
|
-
end # class MatcherTestCase
|
134
|
-
|
135
|
-
class TestSexp < SexpTestCase # ZenTest FULL
|
136
|
-
def setup
|
137
|
-
super
|
138
|
-
@sexp_class = Object.const_get(self.class.name[4..-1])
|
139
|
-
@sexp = @sexp_class.new(1, 2, 3)
|
140
|
-
@basic_sexp = s(:lasgn, :var, s(:lit, 42).line(1)).line(1)
|
141
|
-
@basic_sexp.each_sexp do |s|
|
142
|
-
s.file = "file.rb"
|
143
|
-
end
|
144
|
-
|
145
|
-
@complex_sexp = s(:block,
|
146
|
-
s(:lasgn, :foo, s(:str, "foo").line(1)).line(1),
|
147
|
-
s(:if, s(:and, s(:true).line(2), s(:lit, 1).line(2)).line(2),
|
148
|
-
s(:if, s(:lvar, :foo).line(3),
|
149
|
-
s(:str, "bar").line(3),
|
150
|
-
nil).line(3),
|
151
|
-
s(:true).line(5)).line(2)).line(1)
|
152
|
-
|
153
|
-
@re = s(:lit, 42)
|
154
|
-
@bad1 = s(:lit, 24)
|
155
|
-
@bad1 = s(:blah, 42)
|
156
|
-
end
|
157
|
-
|
158
|
-
def assert_from_array exp, input
|
159
|
-
assert_equal exp, Sexp.from_array(input)
|
160
|
-
end
|
161
|
-
|
162
|
-
def test_class_from_array
|
163
|
-
assert_from_array s(), []
|
164
|
-
assert_from_array s(:s), [:s]
|
165
|
-
assert_from_array s(:s, s(:m)), [:s, [:m]]
|
166
|
-
assert_from_array s(:s, s(:m)), [:s, s(:m)]
|
167
|
-
assert_from_array s(:s, s(:m, [:not_converted])), [:s, s(:m, [:not_converted])]
|
168
|
-
end
|
169
|
-
|
170
|
-
def test_compact
|
171
|
-
input = s(:a, nil, :b)
|
172
|
-
|
173
|
-
actual = input.compact
|
174
|
-
|
175
|
-
assert_equal s(:a, :b), actual
|
176
|
-
assert_same input, actual # returns mutated result
|
177
|
-
end
|
178
|
-
|
179
|
-
def test_array_type_eh
|
180
|
-
capture_io do # HACK
|
181
|
-
assert_equal false, s(:lit, 42).array_type?
|
182
|
-
assert_equal true, s(:array, 42).array_type?
|
183
|
-
end
|
184
|
-
end
|
185
|
-
|
186
|
-
def test_each_of_type
|
187
|
-
# TODO: huh... this tests fails if top level sexp :b is removed
|
188
|
-
@sexp = s(:b, s(:a, s(:b, s(:a), :a, s(:b, :a), s(:b, s(:a)))))
|
189
|
-
count = 0
|
190
|
-
@sexp.each_of_type :a do
|
191
|
-
count += 1
|
192
|
-
end
|
193
|
-
assert_equal(3, count, "must find 3 a's in #{@sexp.inspect}")
|
194
|
-
end
|
195
|
-
|
196
|
-
def test_equals2_array
|
197
|
-
refute_equal @sexp, [1, 2, 3] # Sexp == Array
|
198
|
-
assert_raises Minitest::Assertion do # Array == Sexp.
|
199
|
-
refute_equal [1, 2, 3], @sexp # This is a bug in ruby:
|
200
|
-
end
|
201
|
-
# TODO: test if it is calling to_ary first? seems not to
|
202
|
-
end
|
203
|
-
|
204
|
-
def test_equals2_not_body
|
205
|
-
sexp2 = s(1, 2, 5)
|
206
|
-
refute_equal(@sexp, sexp2)
|
207
|
-
end
|
208
|
-
|
209
|
-
def test_equals2_sexp
|
210
|
-
sexp2 = s(1, 2, 3)
|
211
|
-
if @sexp.class == Sexp then
|
212
|
-
skip "Not applicable to this target."
|
213
|
-
else
|
214
|
-
refute_equal(@sexp, sexp2)
|
215
|
-
end
|
216
|
-
end
|
217
|
-
|
218
|
-
def test_equal3_full_match
|
219
|
-
assert_equal3 s(), s() # 0
|
220
|
-
assert_equal3 s(:blah), s(:blah) # 1
|
221
|
-
assert_equal3 s(:a, :b), s(:a, :b) # 2
|
222
|
-
assert_equal3 @basic_sexp, @basic_sexp.dup # deeper structure
|
223
|
-
end
|
224
|
-
|
225
|
-
def test_equal3_mismatch
|
226
|
-
refute_equal3 s(), s(:a)
|
227
|
-
refute_equal3 s(:a), s()
|
228
|
-
refute_equal3 s(:blah1), s(:blah2)
|
229
|
-
refute_equal3 s(:a), s(:a, :b)
|
230
|
-
refute_equal3 s(:a, :b), s(:a)
|
231
|
-
refute_equal3 s(:a1, :b), s(:a2, :b)
|
232
|
-
refute_equal3 s(:a, :b1), s(:a, :b2)
|
233
|
-
end
|
234
|
-
|
235
|
-
def test_equal3_subset_match
|
236
|
-
assert_match s{s(:a)}, s(s(:a), s(:b)) # left - =~
|
237
|
-
assert_equal3 s{s(:a)}, s(s(:a), s(:b)) # left - ===
|
238
|
-
assert_equal3 s{s(:a)}, s(:blah, s(:a ), s(:b)) # mid 1
|
239
|
-
assert_equal3 s{s(:a, 1)}, s(:blah, s(:a, 1), s(:b)) # mid 2
|
240
|
-
assert_equal3 s{s(:a)}, s(:blah, s(:blah, s(:a))) # left deeper
|
241
|
-
end
|
242
|
-
|
243
|
-
def test_equalstilde_fancy
|
244
|
-
assert_match s{ s(:b) }, s(:a, s(:b), :c)
|
245
|
-
assert_match s(:a, s(:b), :c), s{ s(:b) }
|
246
|
-
|
247
|
-
e = assert_raises ArgumentError do
|
248
|
-
s(:b) =~ s(:a, s(:b), :c)
|
249
|
-
end
|
250
|
-
assert_equal "Not a pattern: s(:a, s(:b), :c)", e.message
|
251
|
-
|
252
|
-
e = assert_raises ArgumentError do
|
253
|
-
s(:a, s(:b), :c) =~ s(:b)
|
254
|
-
end
|
255
|
-
assert_equal "Not a pattern: s(:b)", e.message
|
256
|
-
end
|
257
|
-
|
258
|
-
def test_equalstilde_plain
|
259
|
-
s{ s(:re) } =~ s(:data) # pattern on LHS
|
260
|
-
s(:data) =~ s{ s(:re) } # pattern on RHS
|
261
|
-
|
262
|
-
e = assert_raises ArgumentError do
|
263
|
-
s(:re) =~ s(:data) # no pattern
|
264
|
-
end
|
265
|
-
|
266
|
-
assert_equal "Not a pattern: s(:data)", e.message
|
267
|
-
end
|
268
|
-
|
269
|
-
def test_find_and_replace_all
|
270
|
-
skip_if_strict 2
|
271
|
-
|
272
|
-
@sexp = s(:a, s(:a, :b, s(:a, :b), s(:a), :b, s(:a, s(:a))))
|
273
|
-
expected = s(:a, s(:a, :a, s(:a, :a), s(:a), :a, s(:a, s(:a))))
|
274
|
-
|
275
|
-
@sexp.find_and_replace_all(:b, :a)
|
276
|
-
|
277
|
-
assert_equal(expected, @sexp)
|
278
|
-
end
|
279
|
-
|
280
|
-
def assert_gsub exp, sexp, from, to
|
281
|
-
assert_equal exp, sexp.gsub(from, to)
|
282
|
-
end
|
283
|
-
|
284
|
-
def test_gsub
|
285
|
-
assert_gsub s(:c), s(:b), s(:b), s(:c)
|
286
|
-
assert_gsub s(:a), s(:a), s(:b), s(:c)
|
287
|
-
assert_gsub s(:a, s(:c)), s(:a, s(:b)), s(:b), s(:c)
|
288
|
-
end
|
289
|
-
|
290
|
-
def test_gsub_empty
|
291
|
-
assert_gsub s(:c), s(), s(), s(:c)
|
292
|
-
end
|
293
|
-
|
294
|
-
def test_gsub_multiple
|
295
|
-
assert_gsub s(:a, s(:c), s(:c)), s(:a, s(:b), s(:b)), s(:b), s(:c)
|
296
|
-
assert_gsub s(:a, s(:c), s(:a, s(:c))), s(:a, s(:b), s(:a, s(:b))), s(:b), s(:c)
|
297
|
-
end
|
298
|
-
|
299
|
-
def test_gsub_matcher
|
300
|
-
assert_gsub s(:a, :b, :c), s(:a, s(:b, 42), :c), s{ s(:b, _) }, :b
|
301
|
-
assert_gsub s(:a, s(:b), :c), s(:a, s(:b), :c), s{ s(:b, _) }, :b
|
302
|
-
assert_gsub s(:a, s(:c, :b), :d), s(:a, s(:c, s(:b, 42)), :d), s{ s(:b, _) }, :b
|
303
|
-
assert_gsub s(:a, s(:q), :c), s(:a, s(:q), :c), s{ s(:b, _) }, :b
|
304
|
-
end
|
305
|
-
|
306
|
-
def with_env key
|
307
|
-
old_val, ENV[key] = ENV[key], "1"
|
308
|
-
yield
|
309
|
-
ensure
|
310
|
-
ENV[key] = old_val
|
311
|
-
end
|
312
|
-
|
313
|
-
def with_verbose &block
|
314
|
-
with_env "VERBOSE", &block
|
315
|
-
end
|
316
|
-
|
317
|
-
def with_debug &block
|
318
|
-
with_env "DEBUG", &block
|
319
|
-
end
|
320
|
-
|
321
|
-
def test_inspect
|
322
|
-
k = @sexp_class
|
323
|
-
n = k.name[0].chr.downcase
|
324
|
-
assert_equal("#{n}()",
|
325
|
-
k.new().inspect)
|
326
|
-
assert_equal("#{n}(:a)",
|
327
|
-
k.new(:a).inspect)
|
328
|
-
assert_equal("#{n}(:a, :b)",
|
329
|
-
k.new(:a, :b).inspect)
|
330
|
-
assert_equal("#{n}(:a, #{n}(:b))",
|
331
|
-
k.new(:a, k.new(:b)).inspect)
|
332
|
-
|
333
|
-
with_verbose do
|
334
|
-
assert_equal("#{n}().line(42)",
|
335
|
-
k.new().line(42).inspect)
|
336
|
-
assert_equal("#{n}(:a).line(42)",
|
337
|
-
k.new(:a).line(42).inspect)
|
338
|
-
assert_equal("#{n}(:a, :b).line(42)",
|
339
|
-
k.new(:a, :b).line(42).inspect)
|
340
|
-
assert_equal("#{n}(:a, #{n}(:b).line(43)).line(42)",
|
341
|
-
k.new(:a, k.new(:b).line(43)).line(42).inspect)
|
342
|
-
end
|
343
|
-
end
|
344
|
-
|
345
|
-
def test_line
|
346
|
-
assert_nil @sexp.line
|
347
|
-
assert_equal 1, @basic_sexp.line
|
348
|
-
assert_equal 1, @complex_sexp.line
|
349
|
-
end
|
350
|
-
|
351
|
-
def test_line_max
|
352
|
-
assert_nil @sexp.line_max
|
353
|
-
assert_equal 1, @basic_sexp.line_max
|
354
|
-
assert_equal 5, @complex_sexp.line_max
|
355
|
-
end
|
356
|
-
|
357
|
-
def test_new
|
358
|
-
file = "file.rb"
|
359
|
-
|
360
|
-
old = s(:lasgn, :var, s(:lit, 42).line(2)).line(1)
|
361
|
-
old.file = file
|
362
|
-
old.each_sexp do |x|
|
363
|
-
x.file = file
|
364
|
-
end
|
365
|
-
old.comments = "do the thing"
|
366
|
-
|
367
|
-
assert_same file, old.file
|
368
|
-
assert_equal 1, old.line
|
369
|
-
assert_same file, old.last.file
|
370
|
-
assert_equal 2, old.last.line
|
371
|
-
|
372
|
-
new = old.new(1, 2, 3)
|
373
|
-
|
374
|
-
assert_equal s(1, 2, 3), new
|
375
|
-
|
376
|
-
assert_same file, new.file
|
377
|
-
assert_equal 1, new.line
|
378
|
-
assert_same old.comments, new.comments
|
379
|
-
end
|
380
|
-
|
381
|
-
def test_map
|
382
|
-
file = "file.rb"
|
383
|
-
|
384
|
-
old = s(:lasgn, :var, s(:lit, 42).line(2)).line(1)
|
385
|
-
old.file = file
|
386
|
-
old.each_sexp do |x|
|
387
|
-
x.file = file
|
388
|
-
end
|
389
|
-
old.comments = "do the thing"
|
390
|
-
|
391
|
-
assert_same file, old.file
|
392
|
-
assert_equal 1, old.line
|
393
|
-
assert_same file, old.last.file
|
394
|
-
assert_equal 2, old.last.line
|
395
|
-
|
396
|
-
new = old.map { |x| x }
|
397
|
-
|
398
|
-
assert_same file, new.file
|
399
|
-
assert_equal 1, new.line
|
400
|
-
assert_same file, new.last.file
|
401
|
-
assert_equal 2, new.last.line
|
402
|
-
assert_same old.comments, new.comments
|
403
|
-
end
|
404
|
-
|
405
|
-
def test_mass
|
406
|
-
assert_equal 1, s(:a).mass
|
407
|
-
assert_equal 3, s(:a, s(:b), s(:c)).mass
|
408
|
-
|
409
|
-
s = s(:iter,
|
410
|
-
s(:call, nil, :a, s(:arglist, s(:lit, 1))),
|
411
|
-
s(:lasgn, :c),
|
412
|
-
s(:call, nil, :d, s(:arglist)))
|
413
|
-
|
414
|
-
assert_equal 7, s.mass
|
415
|
-
end
|
416
|
-
|
417
|
-
def test_mass_auto_shift
|
418
|
-
assert_equal 1, s(:a).mass
|
419
|
-
assert_equal 3, s(s(:b), s(:c)).mass
|
420
|
-
|
421
|
-
s = s(s(:call, nil, :a, s(:arglist, s(:lit, 1))),
|
422
|
-
s(:lasgn, :c),
|
423
|
-
s(:call, nil, :d, s(:arglist)))
|
424
|
-
|
425
|
-
assert_equal 7, s.mass
|
426
|
-
end
|
427
|
-
|
428
|
-
def test_mass_huge
|
429
|
-
max = 100
|
430
|
-
sexp = pyramid_sexp max
|
431
|
-
|
432
|
-
exp = (max*max + max)/2 # pyramid number 1+2+3+...+m
|
433
|
-
|
434
|
-
assert_equal exp, sexp.mass
|
435
|
-
end
|
436
|
-
|
437
|
-
def test_method_missing
|
438
|
-
skip_if_strict 3
|
439
|
-
|
440
|
-
capture_io do
|
441
|
-
assert_nil @sexp.not_there
|
442
|
-
assert_equal s(:lit, 42), @basic_sexp.lit
|
443
|
-
end
|
444
|
-
end
|
445
|
-
|
446
|
-
def test_method_missing_missing
|
447
|
-
skip_if_strict 3
|
448
|
-
skip "debugging for now" if ENV["DEBUG"]
|
449
|
-
|
450
|
-
assert_silent do
|
451
|
-
assert_nil @basic_sexp.missing
|
452
|
-
end
|
453
|
-
end
|
454
|
-
|
455
|
-
def test_method_missing_missing_debug
|
456
|
-
skip_if_strict 3
|
457
|
-
|
458
|
-
exp = /#{Regexp.escape @basic_sexp.to_s}.method_missing\(:missing\) => nil from/
|
459
|
-
|
460
|
-
with_debug do
|
461
|
-
assert_output "", exp do
|
462
|
-
assert_nil @basic_sexp.missing
|
463
|
-
end
|
464
|
-
end
|
465
|
-
end
|
466
|
-
|
467
|
-
def test_method_missing_hit_debug_verbose
|
468
|
-
skip_if_strict 3
|
469
|
-
|
470
|
-
with_debug do
|
471
|
-
with_verbose do
|
472
|
-
exp = /#{Regexp.escape @basic_sexp.to_s}.method_missing\(:lit\) from/
|
473
|
-
|
474
|
-
assert_output "", exp do
|
475
|
-
assert_equal s(:lit, 42), @basic_sexp.lit
|
476
|
-
end
|
477
|
-
end
|
478
|
-
end
|
479
|
-
end
|
480
|
-
|
481
|
-
def test_method_missing_ambigious
|
482
|
-
skip_if_strict 3
|
483
|
-
|
484
|
-
assert_raises NoMethodError do
|
485
|
-
pirate = s(:says, s(:arrr!), s(:arrr!), s(:arrr!))
|
486
|
-
pirate.arrr!
|
487
|
-
end
|
488
|
-
end
|
489
|
-
|
490
|
-
def test_method_missing_deep
|
491
|
-
skip_if_strict 3
|
492
|
-
|
493
|
-
capture_io do
|
494
|
-
sexp = s(:blah, s(:a, s(:b, s(:c, :yay!))))
|
495
|
-
assert_equal(s(:c, :yay!), sexp.a.b.c)
|
496
|
-
end
|
497
|
-
end
|
498
|
-
|
499
|
-
def test_method_missing_delete
|
500
|
-
skip_if_strict 3
|
501
|
-
|
502
|
-
sexp = s(:blah, s(:a, s(:b, s(:c, :yay!))))
|
503
|
-
|
504
|
-
capture_io do
|
505
|
-
assert_equal(s(:c, :yay!), sexp.a.b.c(true))
|
506
|
-
assert_equal(s(:blah, s(:a, s(:b))), sexp)
|
507
|
-
end
|
508
|
-
end
|
509
|
-
|
510
|
-
def test_pretty_print
|
511
|
-
assert_pretty_print("s()",
|
512
|
-
s())
|
513
|
-
assert_pretty_print("s(:a)",
|
514
|
-
s(:a))
|
515
|
-
assert_pretty_print("s(:a, :b)",
|
516
|
-
s(:a, :b))
|
517
|
-
assert_pretty_print("s(:a, s(:b))",
|
518
|
-
s(:a, s(:b)))
|
519
|
-
end
|
520
|
-
|
521
|
-
def test_sexp_body
|
522
|
-
assert_equal [2, 3], @sexp.sexp_body
|
523
|
-
end
|
524
|
-
|
525
|
-
def test_shift
|
526
|
-
skip_if_strict 5
|
527
|
-
|
528
|
-
skip "https://github.com/MagLev/maglev/issues/250" if maglev?
|
529
|
-
|
530
|
-
assert_equal(1, @sexp.shift)
|
531
|
-
assert_equal(2, @sexp.shift)
|
532
|
-
assert_equal(3, @sexp.shift)
|
533
|
-
|
534
|
-
assert_raises(RuntimeError) do
|
535
|
-
@sexp.shift
|
536
|
-
end
|
537
|
-
end
|
538
|
-
|
539
|
-
def test_deep_clone
|
540
|
-
@sexp = s(:a, 1, 2, s(:b, 3, 4), 5, 6)
|
541
|
-
backup = @sexp.deep_clone
|
542
|
-
refute_same @sexp, backup, "deep clone is broken again?"
|
543
|
-
assert_equal @sexp, backup, "deep clone is broken again?"
|
544
|
-
end
|
545
|
-
|
546
|
-
def test_structure
|
547
|
-
@sexp = s(:a, 1, 2, s(:b, 3, 4), 5, 6)
|
548
|
-
backup = @sexp.deep_clone
|
549
|
-
refute_same @sexp, backup, "deep clone is broken again?"
|
550
|
-
assert_equal @sexp, backup, "deep clone is broken again?"
|
551
|
-
expected = s(:a, s(:b))
|
552
|
-
|
553
|
-
assert_equal(expected, @sexp.structure)
|
554
|
-
assert_equal(backup, @sexp)
|
555
|
-
end
|
556
|
-
|
557
|
-
def test_structure_deprecated
|
558
|
-
exp_err = "NOTE: form s(s(:subsexp)).structure is deprecated. Removing in 5.0\n"
|
559
|
-
|
560
|
-
assert_output "", exp_err do
|
561
|
-
sexp = s(s(:subsexp))
|
562
|
-
act = sexp.structure
|
563
|
-
|
564
|
-
assert_equal s(:bogus, s(:subsexp)), act
|
565
|
-
end
|
566
|
-
end
|
567
|
-
|
568
|
-
def test_sub
|
569
|
-
assert_equal s(:c), s(:b). sub(s(:b), s(:c))
|
570
|
-
assert_equal s(:a, s(:c), s(:b)), s(:a, s(:b), s(:b)). sub(s(:b), s(:c))
|
571
|
-
assert_equal s(:a, s(:c), s(:a)), s(:a, s(:b), s(:a)). sub(s(:b), s(:c))
|
572
|
-
end
|
573
|
-
|
574
|
-
def test_sub_miss
|
575
|
-
assert_equal s(:a), s(:a). sub(s(:b), s(:c))
|
576
|
-
assert_equal s(:a, s(:c)), s(:a, s(:c)). sub(s(:b), s(:c))
|
577
|
-
end
|
578
|
-
|
579
|
-
def test_sub_empty
|
580
|
-
assert_equal s(:c), s(). sub(s(), s(:c))
|
581
|
-
end
|
582
|
-
|
583
|
-
def assert_sub exp, sexp, from, to
|
584
|
-
assert_equal exp, sexp.sub(from, to)
|
585
|
-
end
|
586
|
-
|
587
|
-
def test_sub_matcher
|
588
|
-
assert_sub s(:c), s(:b), s{ s(:b) }, s(:c)
|
589
|
-
assert_sub s(:a, s(:c), s(:b)), s(:a, s(:b), s(:b)), s{ s(:b) }, s(:c)
|
590
|
-
assert_sub s(:a, s(:c), s(:a)), s(:a, s(:b), s(:a)), s{ s(:b) }, s(:c)
|
591
|
-
|
592
|
-
assert_sub s(:a, :b, :c), s(:a, s(:b, 42), :c), s{ s(:b, _) }, :b
|
593
|
-
assert_sub s(:a, s(:b), :c), s(:a, s(:b), :c), s{ s(:b, _) }, :b
|
594
|
-
assert_sub s(:a, s(:c, :b), :d), s(:a, s(:c, s(:b, 42)), :d), s{ s(:b, _) }, :b
|
595
|
-
assert_sub s(:a, s(:q), :c), s(:a, s(:q), :c), s{ s(:b, _) }, :b
|
596
|
-
end
|
597
|
-
|
598
|
-
def test_sub_structure
|
599
|
-
assert_sub s(:a, s(:c, s(:b))), s(:a, s(:b)), s(:b), s(:c, s(:b))
|
600
|
-
end
|
601
|
-
|
602
|
-
def test_sexp_type_eq
|
603
|
-
sexp = s(:bad_type, 42)
|
604
|
-
|
605
|
-
sexp.sexp_type = :good_type
|
606
|
-
|
607
|
-
assert_equal s(:good_type, 42), sexp
|
608
|
-
end
|
609
|
-
|
610
|
-
def test_sexp_body_eq
|
611
|
-
sexp = s(:type, 42)
|
612
|
-
|
613
|
-
sexp.sexp_body = [1, 2, 3]
|
614
|
-
|
615
|
-
assert_equal s(:type, 1, 2, 3), sexp
|
616
|
-
end
|
617
|
-
|
618
|
-
def test_to_a
|
619
|
-
assert_equal([1, 2, 3], @sexp.to_a)
|
620
|
-
end
|
621
|
-
|
622
|
-
def test_to_s
|
623
|
-
test_inspect
|
624
|
-
end
|
625
|
-
|
626
|
-
def test_each_sexp
|
627
|
-
result = []
|
628
|
-
@basic_sexp.each_sexp { |_, val| result << val }
|
629
|
-
assert_equal [42], result
|
630
|
-
end
|
631
|
-
|
632
|
-
def test_each_sexp_without_block
|
633
|
-
assert_kind_of Enumerator, @basic_sexp.each_sexp
|
634
|
-
assert_equal [42], @basic_sexp.each_sexp.map { |_, n| n }
|
635
|
-
end
|
636
|
-
|
637
|
-
def test_depth
|
638
|
-
assert_equal 1, s(:a).depth
|
639
|
-
assert_equal 2, s(:a, s(:b)).depth
|
640
|
-
assert_equal 3, s(:a, s(:b1, s(:c)), s(:b2)).depth
|
641
|
-
assert_equal 5, s(:a, s(:b, s(:c, s(:d, s(:e))))).depth
|
642
|
-
end
|
643
|
-
|
644
|
-
DEEP_EXP = [:lasgn, :str, :if,
|
645
|
-
:and, :true, :lit,
|
646
|
-
:if, :lvar, :str, :true]
|
647
|
-
|
648
|
-
def test_deep_each
|
649
|
-
act = []
|
650
|
-
|
651
|
-
@complex_sexp.deep_each { |s| act << s }
|
652
|
-
assert_equal DEEP_EXP, act.map { |k, _| k }
|
653
|
-
end
|
654
|
-
|
655
|
-
def test_deep_each_skip
|
656
|
-
exp = DEEP_EXP.first(3) + DEEP_EXP.last(4)
|
657
|
-
act = []
|
658
|
-
|
659
|
-
@complex_sexp.deep_each { |s| next :skip if s.sexp_type == :and; act << s }
|
660
|
-
assert_equal exp, act.map { |k, _| k }
|
661
|
-
end
|
662
|
-
|
663
|
-
def test_deep_each_without_block
|
664
|
-
assert_kind_of Enumerator, @complex_sexp.deep_each
|
665
|
-
assert_equal DEEP_EXP, @complex_sexp.deep_each.map(&:first)
|
666
|
-
end
|
667
|
-
|
668
|
-
def test_unary_not
|
669
|
-
skip "TODO?"
|
670
|
-
assert_equal M::Not.new(M.q(:a)), s{ !s(:a) }
|
671
|
-
end
|
672
|
-
|
673
|
-
def test_unary_not_outside
|
674
|
-
skip "TODO?"
|
675
|
-
assert_equal M::Not.new(s(:a)), !s(:a)
|
676
|
-
end
|
677
|
-
end # TestSexp
|
678
|
-
|
679
|
-
class TestSexpMatcher < SexpTestCase
|
680
|
-
def test_cls_s
|
681
|
-
assert_equal M.s(:x), s{ s(:x) }
|
682
|
-
end
|
683
|
-
|
684
|
-
def test_cls_underscore
|
685
|
-
assert_equal M::Wild.new, s{ _ }
|
686
|
-
end
|
687
|
-
|
688
|
-
def test_cls_underscore3
|
689
|
-
assert_equal M::Remaining.new, s{ ___ }
|
690
|
-
end
|
691
|
-
|
692
|
-
def test_cls_include
|
693
|
-
assert_equal M::Include.new(:a), s{ include(:a) }
|
694
|
-
end
|
695
|
-
|
696
|
-
def test_cls_atom
|
697
|
-
assert_equal M::Atom.new, s{ atom }
|
698
|
-
end
|
699
|
-
|
700
|
-
def test_cls_any
|
701
|
-
assert_equal M::Any.new(M.s(:a), M.s(:b)), s{ any(s(:a), s(:b)) }
|
702
|
-
end
|
703
|
-
|
704
|
-
def test_cls_all
|
705
|
-
assert_equal M::All.new(M.s(:a), M.s(:b)), s{ all(s(:a), s(:b)) }
|
706
|
-
end
|
707
|
-
|
708
|
-
def test_cls_not_eh
|
709
|
-
assert_equal M::Not.new(M.s(:a)), s{ not?(s(:a)) }
|
710
|
-
end
|
711
|
-
|
712
|
-
def test_cls_child
|
713
|
-
assert_equal M::Child.new(M.s(:a)), s{ child(s(:a)) }
|
714
|
-
end
|
715
|
-
|
716
|
-
def test_cls_t
|
717
|
-
assert_equal M::Type.new(:a), s{ t(:a) }
|
718
|
-
end
|
719
|
-
|
720
|
-
def test_cls_m
|
721
|
-
assert_equal M::Pattern.new(/a/), s{ m(/a/) }
|
722
|
-
assert_equal M::Pattern.new(/\Aa\Z/), s{ m(:a) }
|
723
|
-
assert_equal M::Pattern.new(/test_\w/), s{ m(/test_\w/) }
|
724
|
-
re = Regexp.union [/\w/, /\d/]
|
725
|
-
assert_equal M::Pattern.new(re), s{ m(/\w/,/\d/) }
|
726
|
-
end
|
727
|
-
|
728
|
-
def test_amp
|
729
|
-
m = s{ s(:a) & s(:b) }
|
730
|
-
e = M::All.new(M.s(:a), M.s(:b))
|
731
|
-
|
732
|
-
assert_equal e, m
|
733
|
-
end
|
734
|
-
|
735
|
-
def test_pipe
|
736
|
-
m = s{ s(:a) | s(:b) }
|
737
|
-
e = M::Any.new(M.s(:a), M.s(:b))
|
738
|
-
|
739
|
-
assert_equal e, m
|
740
|
-
end
|
741
|
-
|
742
|
-
def test_unary_minus
|
743
|
-
assert_equal M::Not.new(M.s(:a)), s{ -s(:a) }
|
744
|
-
end
|
745
|
-
|
746
|
-
def test_rchevron
|
747
|
-
assert_equal M::Sibling.new(M.s(:a), M.s(:b)), s{ s(:a) >> s(:b) }
|
748
|
-
end
|
749
|
-
|
750
|
-
def test_greedy_eh
|
751
|
-
refute_operator s{ s(:a) }, :greedy?
|
752
|
-
end
|
753
|
-
|
754
|
-
def test_inspect
|
755
|
-
assert_inspect "q(:a)", s{ s(:a) }
|
756
|
-
end
|
757
|
-
|
758
|
-
def test_pretty_print
|
759
|
-
assert_pretty_print "q(:a)", s{ s(:a) }
|
760
|
-
end
|
761
|
-
end # class TestSexpMatcher
|
762
|
-
|
763
|
-
class TestWild < MatcherTestCase
|
764
|
-
def matcher
|
765
|
-
s{ _ }
|
766
|
-
end
|
767
|
-
|
768
|
-
def bad_sexp
|
769
|
-
nil
|
770
|
-
end
|
771
|
-
|
772
|
-
def inspect_str
|
773
|
-
"_"
|
774
|
-
end
|
775
|
-
|
776
|
-
def test_wild_satisfy_eh # TODO: possibly remove
|
777
|
-
w = Sexp::Wild.new
|
778
|
-
|
779
|
-
assert_satisfy w, :a
|
780
|
-
assert_satisfy w, 1
|
781
|
-
assert_satisfy w, nil
|
782
|
-
assert_satisfy w, []
|
783
|
-
assert_satisfy w, s()
|
784
|
-
end
|
785
|
-
|
786
|
-
def test_wild_search # TODO: possibly remove
|
787
|
-
sexp = CLASS_SEXP.dup
|
788
|
-
|
789
|
-
assert_search 1, s(:add, :a, :b), s{ s(:add, _, :b) }
|
790
|
-
assert_search 1, sexp, s{ s(:defn, :bar, _, _) }
|
791
|
-
assert_search 2, sexp, s{ s(:defn, _, _, s(_, :a, :b) ) }
|
792
|
-
assert_search 1, s(:a, s()), s{ s(:a, _) }
|
793
|
-
assert_search 1, s(:a, :b, :c), s{ s(_, _, _) }
|
794
|
-
assert_search 7, sexp, s{ _ }
|
795
|
-
end
|
796
|
-
end
|
797
|
-
|
798
|
-
class TestRemaining < MatcherTestCase
|
799
|
-
def matcher
|
800
|
-
s{ ___ }
|
801
|
-
end
|
802
|
-
|
803
|
-
def bad_sexp
|
804
|
-
nil
|
805
|
-
end
|
806
|
-
|
807
|
-
def inspect_str
|
808
|
-
"___"
|
809
|
-
end
|
810
|
-
|
811
|
-
def test_remaining_satisfy_eh # TODO: possibly remove
|
812
|
-
assert_satisfy s{ ___ }, s(:a)
|
813
|
-
assert_satisfy s{ ___ }, s(:a, :b, :c)
|
814
|
-
assert_satisfy s{ s(:x, ___ ) }, s(:x, :y)
|
815
|
-
refute_satisfy s{ s(:y, ___ ) }, s(:x, :y)
|
816
|
-
end
|
817
|
-
|
818
|
-
def test_greedy
|
819
|
-
assert_operator matcher, :greedy?
|
820
|
-
end
|
821
|
-
end
|
822
|
-
|
823
|
-
class TestAny < MatcherTestCase
|
824
|
-
def matcher
|
825
|
-
s{ s(:a) | s(:c) }
|
826
|
-
end
|
827
|
-
|
828
|
-
def inspect_str
|
829
|
-
"q(:a) | q(:c)"
|
830
|
-
end
|
831
|
-
|
832
|
-
def pretty_str
|
833
|
-
"any(q(:a), q(:c))"
|
834
|
-
end
|
835
|
-
|
836
|
-
def test_any_search # TODO: possibly remove
|
837
|
-
assert_search 2, s(:foo, s(:a), s(:b)), s{ s(any(:a, :b)) }
|
838
|
-
assert_search 1, s(:foo, s(:a), s(:b)), s{ any( s(:a), s(:c)) }
|
839
|
-
end
|
840
|
-
|
841
|
-
def test_or_satisfy_eh # TODO: possibly remove
|
842
|
-
assert_satisfy s{ s(:a) | s(:b) }, s(:a)
|
843
|
-
refute_satisfy s{ s(:a) | s(:b) }, s(:c)
|
844
|
-
end
|
845
|
-
|
846
|
-
def test_or_search # TODO: possibly remove
|
847
|
-
sexp = CLASS_SEXP.dup
|
848
|
-
|
849
|
-
assert_search 2, s(:a, s(:b, :c), s(:b, :d)), s{ s(:b, :c) | s(:b, :d) }
|
850
|
-
assert_search 2, sexp, s{ s(:add, :a, :b) | s(:defn, :bar, _, _) }
|
851
|
-
end
|
852
|
-
end
|
853
|
-
|
854
|
-
class TestAll < MatcherTestCase
|
855
|
-
def matcher
|
856
|
-
s{ s(:a) & s(:a) }
|
857
|
-
end
|
858
|
-
|
859
|
-
def inspect_str
|
860
|
-
"q(:a) & q(:a)"
|
861
|
-
end
|
862
|
-
|
863
|
-
def pretty_str
|
864
|
-
"all(q(:a), q(:a))"
|
865
|
-
end
|
866
|
-
|
867
|
-
def test_and_satisfy_eh # TODO: possibly remove
|
868
|
-
refute_satisfy s{ s(:a) & s(:b) }, s(:a)
|
869
|
-
assert_satisfy s{ s(:a) & s(atom) }, s(:a)
|
870
|
-
end
|
871
|
-
end
|
872
|
-
|
873
|
-
class TestNot < MatcherTestCase
|
874
|
-
def matcher
|
875
|
-
s{ not? s(:b) } # TODO: test unary minus
|
876
|
-
end
|
877
|
-
|
878
|
-
def inspect_str
|
879
|
-
"not?(q(:b))" # TODO: change?
|
880
|
-
end
|
881
|
-
|
882
|
-
def pretty_str
|
883
|
-
"not?(q(:b))" # TODO: change?
|
884
|
-
end
|
885
|
-
|
886
|
-
def test_not_satisfy_eh # TODO: possibly remove
|
887
|
-
refute_satisfy s{ -_ }, s(:a)
|
888
|
-
assert_satisfy s{ -s(:b) }, s(:a)
|
889
|
-
assert_satisfy s{ not?(s(:b)) }, s(:a)
|
890
|
-
refute_satisfy s{ -s(atom) }, s(:a)
|
891
|
-
assert_satisfy s{ s(not?(:b)) }, s(:a)
|
892
|
-
end
|
893
|
-
end
|
894
|
-
|
895
|
-
class TestChild < MatcherTestCase
|
896
|
-
def matcher
|
897
|
-
s{ child(s(:a)) }
|
898
|
-
end
|
899
|
-
|
900
|
-
def sexp
|
901
|
-
s(:x, s(:a))
|
902
|
-
end
|
903
|
-
|
904
|
-
def bad_sexp
|
905
|
-
s(:x, s(:b))
|
906
|
-
end
|
907
|
-
|
908
|
-
def inspect_str
|
909
|
-
"child(q(:a))"
|
910
|
-
end
|
911
|
-
|
912
|
-
def test_child_search # TODO: possibly remove
|
913
|
-
sexp = CLASS_SEXP.dup
|
914
|
-
|
915
|
-
assert_search 1, sexp, s{ s(:class, :cake, _, _, child( s(:sub, :a, :b) ) ) }
|
916
|
-
assert_search 1, sexp, s{ s(:class, :cake, _, _, child(include(:a))) }
|
917
|
-
end
|
918
|
-
|
919
|
-
def test_satisfy_eh_by_child
|
920
|
-
assert_satisfy matcher, s(:a)
|
921
|
-
end
|
922
|
-
end
|
923
|
-
|
924
|
-
class TestAtom < MatcherTestCase
|
925
|
-
def matcher
|
926
|
-
s{ atom }
|
927
|
-
end
|
928
|
-
|
929
|
-
def sexp
|
930
|
-
42
|
931
|
-
end
|
932
|
-
|
933
|
-
def bad_sexp
|
934
|
-
s(:a)
|
935
|
-
end
|
936
|
-
|
937
|
-
def inspect_str
|
938
|
-
"atom"
|
939
|
-
end
|
940
|
-
|
941
|
-
def test_atom_satisfy_eh # TODO: possibly remove
|
942
|
-
a = s{ atom }
|
943
|
-
|
944
|
-
assert_satisfy a, :a
|
945
|
-
assert_satisfy a, 1
|
946
|
-
assert_satisfy a, nil
|
947
|
-
refute_satisfy a, s()
|
948
|
-
end
|
949
|
-
|
950
|
-
def test_atom_search # TODO: possibly remove
|
951
|
-
sexp = CLASS_SEXP.dup
|
952
|
-
|
953
|
-
assert_search 1, s(:add, :a, :b), s{ s(:add, atom, :b) }
|
954
|
-
assert_search 2, sexp, s{ s(:defn, atom, _, s(atom, :a, :b) ) }
|
955
|
-
assert_search 0, s(:a, s()), s{ s(:a, atom) }
|
956
|
-
end
|
957
|
-
end
|
958
|
-
|
959
|
-
class TestPattern < MatcherTestCase
|
960
|
-
def matcher
|
961
|
-
s{ s(:a, m(/a/)) }
|
962
|
-
end
|
963
|
-
|
964
|
-
def sexp
|
965
|
-
s(:a, :blah)
|
966
|
-
end
|
967
|
-
|
968
|
-
def inspect_str
|
969
|
-
"q(:a, m(/a/))"
|
970
|
-
end
|
971
|
-
|
972
|
-
def test_pattern_satisfy_eh # TODO: possibly remove
|
973
|
-
assert_satisfy s{ m(/a/) }, :a
|
974
|
-
assert_satisfy s{ m(/^test/) }, :test_case
|
975
|
-
assert_satisfy s{ m("test") }, :test
|
976
|
-
refute_satisfy s{ m("test") }, :test_case
|
977
|
-
refute_satisfy s{ m(/a/) }, s(:a)
|
978
|
-
end
|
979
|
-
|
980
|
-
def test_pattern_search # TODO: possibly remove
|
981
|
-
sexp = CLASS_SEXP.dup
|
982
|
-
|
983
|
-
assert_search 2, sexp, s{ s(m(/\w{3}/), :a, :b) }
|
984
|
-
|
985
|
-
assert_search 0, s(:a), s{ m(/\w/) }
|
986
|
-
assert_search 1, s(:a), s{ s(m(/\w/)) }
|
987
|
-
assert_search 0, s(:a), s{ m(/\w/,/\d/) }
|
988
|
-
assert_search 1, s(:a), s{ s(m(/\w/,/\d/)) }
|
989
|
-
|
990
|
-
assert_search 0, s(:tests, s(s(:test_a), s(:test_b))), s{ m(/test_\w/) }
|
991
|
-
assert_search 2, s(:tests, s(s(:test_a), s(:test_b))), s{ s(m(/test_\w/)) }
|
992
|
-
end
|
993
|
-
end
|
994
|
-
|
995
|
-
class TestType < MatcherTestCase
|
996
|
-
def matcher
|
997
|
-
s{ t(:a) }
|
998
|
-
end
|
999
|
-
|
1000
|
-
def test_type_satisfy_eh # TODO: possibly remove
|
1001
|
-
assert_satisfy s{ t(:a) }, s(:a)
|
1002
|
-
assert_satisfy s{ t(:a) }, s(:a, :b, s(:oh_hai), :d)
|
1003
|
-
end
|
1004
|
-
|
1005
|
-
def test_type_search
|
1006
|
-
assert_search 2, CLASS_SEXP.dup, s{ t(:defn) }
|
1007
|
-
end
|
1008
|
-
|
1009
|
-
def inspect_str
|
1010
|
-
"t(:a)"
|
1011
|
-
end
|
1012
|
-
end
|
1013
|
-
|
1014
|
-
class TestInclude < MatcherTestCase
|
1015
|
-
def sexp
|
1016
|
-
s(:x, s(:a))
|
1017
|
-
end
|
1018
|
-
|
1019
|
-
def matcher
|
1020
|
-
s{ include(s(:a)) }
|
1021
|
-
end
|
1022
|
-
|
1023
|
-
def inspect_str
|
1024
|
-
"include(q(:a))"
|
1025
|
-
end
|
1026
|
-
|
1027
|
-
def test_include_search # TODO: possibly remove
|
1028
|
-
sexp = CLASS_SEXP.dup
|
1029
|
-
|
1030
|
-
assert_search 1, s(:add, :a, :b), s{ include(:a) }
|
1031
|
-
assert_search 1, sexp, s{ include(:bar) }
|
1032
|
-
assert_search 2, sexp, s{ s(:defn, atom, _, include(:a)) }
|
1033
|
-
assert_search 2, sexp, s{ include(:a) }
|
1034
|
-
assert_search 0, s(:a, s(:b, s(:c))), s{ s(:a, include(:c)) }
|
1035
|
-
end
|
1036
|
-
end
|
1037
|
-
|
1038
|
-
class TestSibling < MatcherTestCase
|
1039
|
-
def sexp
|
1040
|
-
s(:x, s(:a), s(:x), s(:b))
|
1041
|
-
end
|
1042
|
-
|
1043
|
-
def matcher
|
1044
|
-
s{ s(:a) >> s(:b) }
|
1045
|
-
end
|
1046
|
-
|
1047
|
-
def inspect_str
|
1048
|
-
"q(:a) >> q(:b)"
|
1049
|
-
end
|
1050
|
-
|
1051
|
-
def test_pretty_print_distance
|
1052
|
-
m = s{ M::Sibling.new(s(:a), s(:b), 3) } # maybe s(:a) << s(:b) << 3 ?
|
1053
|
-
assert_pretty_print "sibling(q(:a), q(:b), 3)", m
|
1054
|
-
end
|
1055
|
-
|
1056
|
-
def test_sibling_satisfy_eh # TODO: possibly remove
|
1057
|
-
a_a = s{ s(:a) >> s(:a) }
|
1058
|
-
a_b = s{ s(:a) >> s(:b) }
|
1059
|
-
a_c = s{ s(:a) >> s(:c) }
|
1060
|
-
c_a = s{ s(:c) >> s(:a) }
|
1061
|
-
|
1062
|
-
assert_satisfy a_b, s(s(:a), s(:b))
|
1063
|
-
assert_satisfy a_b, s(s(:a), s(:b), s(:c))
|
1064
|
-
assert_satisfy a_c, s(s(:a), s(:b), s(:c))
|
1065
|
-
refute_satisfy c_a, s(s(:a), s(:b), s(:c))
|
1066
|
-
refute_satisfy a_a, s(s(:a))
|
1067
|
-
assert_satisfy a_a, s(s(:a), s(:b), s(:a))
|
1068
|
-
end
|
1069
|
-
|
1070
|
-
def test_sibling_search # TODO: possibly remove
|
1071
|
-
sexp = CLASS_SEXP.dup
|
1072
|
-
|
1073
|
-
assert_search 1, sexp, s{ t(:defn) >> t(:defn) }
|
1074
|
-
end
|
1075
|
-
end
|
1076
|
-
|
1077
|
-
class TestMatchCollection < SexpTestCase
|
1078
|
-
attr_accessor :sexp, :pat, :act
|
1079
|
-
|
1080
|
-
def setup
|
1081
|
-
self.sexp = s(:a, :b, :c)
|
1082
|
-
self.pat = s{ _ }
|
1083
|
-
self.act = sexp / pat
|
1084
|
-
end
|
1085
|
-
|
1086
|
-
def test_slash
|
1087
|
-
self.sexp =
|
1088
|
-
s(:class, :cake, nil,
|
1089
|
-
s(:defn, :foo, s(:args), s(:add, :a, :b)),
|
1090
|
-
s(:defn, :bar, s(:args), s(:sub, :a, :b)))
|
1091
|
-
|
1092
|
-
res = sexp / s{ s(:class, atom, _, ___) } # sexp / pat => MC
|
1093
|
-
act = res / s{ s(:defn, atom, ___) } # MC / pat => MC
|
1094
|
-
|
1095
|
-
_, _, _, defn1, defn2 = sexp
|
1096
|
-
|
1097
|
-
exp = MC.new
|
1098
|
-
exp << defn1.deep_clone
|
1099
|
-
exp << defn2.deep_clone
|
1100
|
-
|
1101
|
-
assert_equal exp, act
|
1102
|
-
end
|
1103
|
-
|
1104
|
-
def test_sanity
|
1105
|
-
act = sexp / pat
|
1106
|
-
exp = MC.new << sexp
|
1107
|
-
|
1108
|
-
assert_equal exp, act
|
1109
|
-
end
|
1110
|
-
|
1111
|
-
STR = "MatchCollection.new(s(:a, :b, :c))"
|
1112
|
-
|
1113
|
-
def test_to_s
|
1114
|
-
assert_equal STR, act.to_s
|
1115
|
-
end
|
1116
|
-
|
1117
|
-
def test_inspect
|
1118
|
-
assert_inspect STR, act
|
1119
|
-
end
|
1120
|
-
|
1121
|
-
def test_pretty_print
|
1122
|
-
assert_pretty_print STR, act
|
1123
|
-
end
|
1124
|
-
end
|
1125
|
-
|
1126
|
-
class TestSexpSearch < SexpTestCase
|
1127
|
-
attr_accessor :sexp
|
1128
|
-
|
1129
|
-
make_my_diffs_pretty!
|
1130
|
-
|
1131
|
-
def setup
|
1132
|
-
self.sexp = CLASS_SEXP.dup
|
1133
|
-
end
|
1134
|
-
|
1135
|
-
def coll *args
|
1136
|
-
exp = MC.new
|
1137
|
-
|
1138
|
-
args.each_slice 2 do |sexp, hash|
|
1139
|
-
exp << res(sexp, hash)
|
1140
|
-
end
|
1141
|
-
|
1142
|
-
exp
|
1143
|
-
end
|
1144
|
-
|
1145
|
-
def res sexp, hash
|
1146
|
-
MR.new sexp.deep_clone, hash
|
1147
|
-
end
|
1148
|
-
|
1149
|
-
def test_slash_simple
|
1150
|
-
act = sexp / s{ s(:class, atom, _, ___) }
|
1151
|
-
|
1152
|
-
exp = MC.new
|
1153
|
-
exp << sexp.deep_clone
|
1154
|
-
|
1155
|
-
assert_equal exp, act
|
1156
|
-
end
|
1157
|
-
|
1158
|
-
def test_slash_subsexp
|
1159
|
-
act = sexp / s{ s(:defn, atom, ___) }
|
1160
|
-
|
1161
|
-
exp = MC.new
|
1162
|
-
exp << s(:defn, :foo, s(:args), s(:add, :a, :b))
|
1163
|
-
exp << s(:defn, :bar, s(:args), s(:sub, :a, :b))
|
1164
|
-
|
1165
|
-
assert_equal exp, act
|
1166
|
-
end
|
1167
|
-
|
1168
|
-
def test_slash_data
|
1169
|
-
pat = s{ s(:defn, m(/^test_.+/), ___ ) }
|
1170
|
-
|
1171
|
-
_, _, (_klass, _, _, _setup, t1, t2, t3) = TestUseCase.sexp.deep_clone
|
1172
|
-
exp = [t1, t2, t3]
|
1173
|
-
|
1174
|
-
assert_equal exp, TestUseCase.sexp.deep_clone / pat
|
1175
|
-
end
|
1176
|
-
|
1177
|
-
def test_search_each_no_block
|
1178
|
-
assert_kind_of Enumerator, sexp.search_each(s{_})
|
1179
|
-
assert_equal 7, sexp.search_each(s{_}).count
|
1180
|
-
assert_equal 2, sexp.search_each(s{t(:defn)}).count
|
1181
|
-
assert_search 7, sexp, s{_}
|
1182
|
-
assert_search 2, sexp, s{t(:defn)}
|
1183
|
-
|
1184
|
-
_, _, _, defn1, defn2 = sexp
|
1185
|
-
|
1186
|
-
mc = []
|
1187
|
-
mc << defn1.deep_clone
|
1188
|
-
mc << defn2.deep_clone
|
1189
|
-
|
1190
|
-
assert_equal mc, sexp.search_each(s{t(:defn)}).map { |x| x }
|
1191
|
-
end
|
1192
|
-
|
1193
|
-
def test_searching_simple_examples # TODO: possibly remove
|
1194
|
-
assert_raises ArgumentError do
|
1195
|
-
assert_search 0, sexp, :class # non-pattern should raise
|
1196
|
-
end
|
1197
|
-
|
1198
|
-
assert_search 0, sexp, s{ s(:class) }
|
1199
|
-
assert_search 1, sexp, s{ s(:add, :a, :b) }
|
1200
|
-
assert_search 1, s(:a, s(:b, s(:c))), s{ s(:b, s(:c)) }
|
1201
|
-
assert_search 0, s(:a, s(:b, s(:c))), s{ s(:a, s(:c)) }
|
1202
|
-
assert_search 1, sexp, s{ s(:defn, :bar, _, s(:sub, :a, :b)) }
|
1203
|
-
end
|
1204
|
-
|
1205
|
-
def test_satisfy_eh_any_capture # TODO: remove
|
1206
|
-
sexp = s(:add, :a, :b)
|
1207
|
-
assert_satisfy s{ any(s(:add, :a, :b), s(:sub, :a, :b)) }, sexp
|
1208
|
-
|
1209
|
-
assert_satisfy s{ any(s(atom, :a, :b), s(:sub, :a, :b)) }, sexp
|
1210
|
-
end
|
1211
|
-
|
1212
|
-
def test_satisfy_eh_all_capture # TODO: remove
|
1213
|
-
sexp = s(:add, :a, :b)
|
1214
|
-
assert_satisfy s{ all(s(_, :a, :b), s(atom, :a, :b)) }, sexp
|
1215
|
-
|
1216
|
-
assert_satisfy s{ all(s(_, :a, :b), s(atom, :a, :b)) }, sexp
|
1217
|
-
|
1218
|
-
assert_search 1, sexp, s{ all(s(_, :a, :b), s(atom, :a, :b)) }
|
1219
|
-
end
|
1220
|
-
end
|
1221
|
-
|
1222
|
-
class TestSexpPath < Minitest::Test
|
1223
|
-
def test_global_s_block
|
1224
|
-
sexp = s(:a, :b, :c) # s called outside block
|
1225
|
-
|
1226
|
-
assert_instance_of Sexp, s{ sexp.deep_clone }
|
1227
|
-
assert_instance_of Sexp::Matcher, s{ s(:a, :b, :c) }
|
1228
|
-
assert_instance_of Sexp::Matcher, s{ s(:a, atom, :c) }
|
1229
|
-
end
|
1230
|
-
end
|
1231
|
-
|
1232
|
-
class TestSexpReplaceSexp < SexpTestCase
|
1233
|
-
def test_replace_sexp
|
1234
|
-
sexp = s(:a, s(:b), :c)
|
1235
|
-
actual = sexp.replace_sexp(s{ s(:b) }) { :b }
|
1236
|
-
|
1237
|
-
assert_equal s(:a, :b, :c), actual
|
1238
|
-
end
|
1239
|
-
|
1240
|
-
def test_replace_sexp_root
|
1241
|
-
sexp = s(:a, s(:b), :c)
|
1242
|
-
actual = sexp.replace_sexp(s{ t(:a) }) { s(:new) }
|
1243
|
-
|
1244
|
-
assert_equal s(:new), actual
|
1245
|
-
end
|
1246
|
-
|
1247
|
-
def test_replace_sexp_yields_match_result
|
1248
|
-
sexp = s(:a, s(:b), :c)
|
1249
|
-
|
1250
|
-
exp = sexp.deep_clone
|
1251
|
-
|
1252
|
-
sexp.replace_sexp(s{ t(:a) }) { |x|
|
1253
|
-
assert_equal exp, x
|
1254
|
-
}
|
1255
|
-
end
|
1256
|
-
|
1257
|
-
def test_replace_sexp_non_matcher
|
1258
|
-
e = assert_raises ArgumentError do
|
1259
|
-
s(:a, s(:b), :c).replace_sexp(42) { :b }
|
1260
|
-
end
|
1261
|
-
|
1262
|
-
assert_equal "Needs a pattern", e.message
|
1263
|
-
end
|
1264
|
-
|
1265
|
-
def test_search_each_yields_match_result
|
1266
|
-
sexp = s(:a, s(:b), :c)
|
1267
|
-
|
1268
|
-
exp = sexp.deep_clone
|
1269
|
-
|
1270
|
-
sexp.search_each(s{ t(:a) }) { |x|
|
1271
|
-
assert_equal exp, x
|
1272
|
-
}
|
1273
|
-
end
|
1274
|
-
|
1275
|
-
def test_search_each_no_pattern
|
1276
|
-
e = assert_raises ArgumentError do
|
1277
|
-
s(:a, s(:b), :c).search_each(42) { :b }
|
1278
|
-
end
|
1279
|
-
|
1280
|
-
assert_equal "Needs a pattern", e.message
|
1281
|
-
end
|
1282
|
-
end
|
1283
|
-
|
1284
|
-
# Here's a crazy idea, these tests actually use sexp_path on some "real"
|
1285
|
-
# code to see if it can satisfy my requirements.
|
1286
|
-
#
|
1287
|
-
# These tests are two fold:
|
1288
|
-
# 1. Make sure it works
|
1289
|
-
# 2. Make sure it's not painful to use
|
1290
|
-
|
1291
|
-
class TestUseCase < SexpTestCase
|
1292
|
-
@@sexp = eval File.read(__FILE__).split(/^__END__/).last
|
1293
|
-
|
1294
|
-
def self.sexp
|
1295
|
-
@@sexp
|
1296
|
-
end
|
1297
|
-
|
1298
|
-
def setup
|
1299
|
-
@sexp = @@sexp.deep_clone
|
1300
|
-
end
|
1301
|
-
|
1302
|
-
def test_finding_methods
|
1303
|
-
methods = @sexp / s{ t(:defn) }
|
1304
|
-
assert_equal 5, methods.length
|
1305
|
-
end
|
1306
|
-
|
1307
|
-
def test_finding_classes_and_methods
|
1308
|
-
res = @sexp / s{ s(:class, atom, ___ ) }
|
1309
|
-
|
1310
|
-
_klass, name, * = res.first
|
1311
|
-
|
1312
|
-
assert_equal 1, res.length
|
1313
|
-
assert_equal :ExampleTest, name
|
1314
|
-
|
1315
|
-
methods = res / s{ t(:defn) }
|
1316
|
-
assert_equal 5, methods.length
|
1317
|
-
end
|
1318
|
-
|
1319
|
-
def test_finding_empty_test_methods
|
1320
|
-
empty_test = s{ s(:defn, m(/^test_.+/), s(:args), s(:nil)) }
|
1321
|
-
res = @sexp / empty_test
|
1322
|
-
|
1323
|
-
_, _, (_klass, _, _, _setup, _t1, t2, _t3) = TestUseCase.sexp.deep_clone
|
1324
|
-
|
1325
|
-
assert_equal [t2], res
|
1326
|
-
end
|
1327
|
-
|
1328
|
-
def test_search_each_finding_duplicate_test_names
|
1329
|
-
pat = s{ s(:defn, m(/^test_.+/), ___ ) }
|
1330
|
-
counts = Hash.new { |h, k| h[k] = 0 }
|
1331
|
-
|
1332
|
-
@sexp.search_each pat do |x|
|
1333
|
-
_, name, * = x
|
1334
|
-
counts[name] += 1
|
1335
|
-
end
|
1336
|
-
|
1337
|
-
assert_equal 1, counts[:test_b], "Should have seen test_b once"
|
1338
|
-
assert_equal 2, counts[:test_a], "Should have caught test_a being repeated"
|
1339
|
-
end
|
1340
|
-
|
1341
|
-
def test_finding_duplicate_test_names_via_res
|
1342
|
-
pat = s{ s(:defn, m(/^test_.+/), ___ ) }
|
1343
|
-
res = @sexp / pat
|
1344
|
-
counts = Hash.new { |h, k| h[k] = 0 }
|
1345
|
-
|
1346
|
-
_, _, (_klass, _, _, _setup, t1, t2, t3) = TestUseCase.sexp.deep_clone
|
1347
|
-
exp = [t1, t2, t3]
|
1348
|
-
|
1349
|
-
assert_equal exp, res
|
1350
|
-
|
1351
|
-
res.each do |m|
|
1352
|
-
_, name, * = m
|
1353
|
-
counts[name] += 1
|
1354
|
-
end
|
1355
|
-
|
1356
|
-
assert_equal 1, counts[:test_b], "Should have seen test_b once"
|
1357
|
-
assert_equal 2, counts[:test_a], "Should have caught test_a being repeated"
|
1358
|
-
end
|
1359
|
-
|
1360
|
-
def test_rewriting_colon2s
|
1361
|
-
colon2 = s{ s(:colon2, s(:const, atom), atom) }
|
1362
|
-
expected = s{ s(:const, "Minitest::Test") }
|
1363
|
-
|
1364
|
-
new_sexp = @sexp.replace_sexp(colon2) { |r|
|
1365
|
-
(_, (_, a), b) = r
|
1366
|
-
s(:const, "%s::%s" % [a, b])
|
1367
|
-
}
|
1368
|
-
|
1369
|
-
assert_search 1, new_sexp, expected
|
1370
|
-
assert_search 0, @sexp, expected
|
1371
|
-
end
|
1372
|
-
end
|
1373
|
-
|
1374
|
-
##
|
1375
|
-
# NOTE: this entire class is now redundant, but it illustrates usage
|
1376
|
-
# and edge cases well.
|
1377
|
-
|
1378
|
-
class TestSexpMatchers < SexpTestCase
|
1379
|
-
CLASS_LIT = s(:class, :X, nil,
|
1380
|
-
s(:lasgn, :x, s(:lit, 42)),
|
1381
|
-
s(:cdecl, :Y,
|
1382
|
-
s(:hash, s(:lit, :a), s(:lit, 1), s(:lit, :b), s(:lit, 2))))
|
1383
|
-
|
1384
|
-
SEXP = s(:class, :X, nil, s(:defn, :x, s(:args)))
|
1385
|
-
|
1386
|
-
def test_match_subset
|
1387
|
-
assert_match s{ child(s(:a)) }, s(:blah, s(:blah, s(:a)))
|
1388
|
-
assert_match s{ child(s(:a)) }, s(:a)
|
1389
|
-
end
|
1390
|
-
|
1391
|
-
def test_match_simple
|
1392
|
-
assert_match s{ s(:lit, _) }, s(:lit, 42)
|
1393
|
-
end
|
1394
|
-
|
1395
|
-
def test_match_mismatch_type
|
1396
|
-
refute_match s{ s(:xxx, 42) }, s(:lit, 42)
|
1397
|
-
end
|
1398
|
-
|
1399
|
-
def test_match_mismatch_data
|
1400
|
-
refute_match s{ s(:lit, 24) }, s(:lit, 42)
|
1401
|
-
end
|
1402
|
-
|
1403
|
-
def test_match_mismatch_length_shorter
|
1404
|
-
refute_match s{ s(:a, :b) }, s(:a, :b, :c)
|
1405
|
-
end
|
1406
|
-
|
1407
|
-
def test_match_mismatch_length_longer
|
1408
|
-
refute_match s{ s(:a, :b, :c) }, s(:a, :b)
|
1409
|
-
end
|
1410
|
-
|
1411
|
-
def test_match_wild
|
1412
|
-
assert_match s{ s(:class, _, _, _) }, SEXP
|
1413
|
-
end
|
1414
|
-
|
1415
|
-
def test_match_rest_same_length
|
1416
|
-
assert_match s{ s(:class, _, _, ___) }, SEXP
|
1417
|
-
end
|
1418
|
-
|
1419
|
-
def test_match_rest_diff_length
|
1420
|
-
skip_if_strict
|
1421
|
-
|
1422
|
-
assert_match s{ s(:class, ___) }, SEXP
|
1423
|
-
end
|
1424
|
-
|
1425
|
-
def test_match_reversed
|
1426
|
-
assert_match SEXP, s{ s(:class, _, _, ___) }
|
1427
|
-
end
|
1428
|
-
|
1429
|
-
def assert_match_case pat, data
|
1430
|
-
case data
|
1431
|
-
when pat then
|
1432
|
-
assert true
|
1433
|
-
else
|
1434
|
-
flunk "Expected %p to match %p" % [pat, data]
|
1435
|
-
end
|
1436
|
-
end
|
1437
|
-
|
1438
|
-
def test_match_case
|
1439
|
-
assert_match_case s{ s(:class, _, _, ___) }, SEXP
|
1440
|
-
end
|
1441
|
-
|
1442
|
-
# NOTE: eqt is =~ (equal-tilde)
|
1443
|
-
|
1444
|
-
# cmt = create_match_test
|
1445
|
-
def self.cmt e1, e2, e3, e4, lit, pat
|
1446
|
-
Class.new SexpTestCase do
|
1447
|
-
attr_accessor :lit, :pat
|
1448
|
-
|
1449
|
-
define_method :setup do
|
1450
|
-
self.lit = lit
|
1451
|
-
self.pat = pat
|
1452
|
-
end
|
1453
|
-
|
1454
|
-
define_method :test_match_lit_eqt_pat do
|
1455
|
-
skip_if_strict
|
1456
|
-
|
1457
|
-
if e1 then
|
1458
|
-
assert_match lit, pat
|
1459
|
-
else
|
1460
|
-
refute_match lit, pat
|
1461
|
-
end
|
1462
|
-
end
|
1463
|
-
|
1464
|
-
define_method :test_match_pat_eqt_lit do
|
1465
|
-
skip_if_strict
|
1466
|
-
|
1467
|
-
if e2 then
|
1468
|
-
assert_match pat, lit
|
1469
|
-
else
|
1470
|
-
refute_match pat, lit
|
1471
|
-
end
|
1472
|
-
end
|
1473
|
-
|
1474
|
-
define_method :test_match_lit_eq3_pat do
|
1475
|
-
if e3 then
|
1476
|
-
assert_equal3 lit, pat
|
1477
|
-
else
|
1478
|
-
refute_equal3 lit, pat
|
1479
|
-
end
|
1480
|
-
end
|
1481
|
-
|
1482
|
-
define_method :test_match_pat_eq3_lit do
|
1483
|
-
if e4 then
|
1484
|
-
assert_equal3 pat, lit
|
1485
|
-
else
|
1486
|
-
refute_equal3 pat, lit
|
1487
|
-
end
|
1488
|
-
end
|
1489
|
-
end
|
1490
|
-
end
|
1491
|
-
|
1492
|
-
l_a = s(:a)
|
1493
|
-
l_abc = s(:a, s(:b, s(:c)))
|
1494
|
-
l_cls = s(:class, :X, nil,
|
1495
|
-
s(:something_in_between),
|
1496
|
-
s(:cdecl, :Y, s(:hash, s(:lit, :a), s(:lit, 1))))
|
1497
|
-
p_cls1 = s{ s(:class, ___) & include(s(:cdecl, _, s(:hash, ___))) }
|
1498
|
-
p_cls2 = s{ s(:class, _, _, s(:cdecl, _, s(:hash, ___))) }
|
1499
|
-
|
1500
|
-
x, o = true, false
|
1501
|
-
TestMatcherDirectMatch = cmt x, x, o, x, l_a, s{ s(:a) }
|
1502
|
-
TestMatcherSubtree = cmt x, x, o, x, l_abc, s{ s(:c) }
|
1503
|
-
TestMatcherSubtreeType = cmt x, x, o, x, l_abc, s{ t(:c) }
|
1504
|
-
TestMatcherDisparateSubtree = cmt x, x, o, x, l_cls, p_cls1
|
1505
|
-
TestMatcherDisparateSubtree2 = cmt o, o, o, o, l_cls, p_cls2 # TODO: make pass
|
1506
|
-
end
|
1507
|
-
|
1508
|
-
class TestSexpMatcherParser < Minitest::Test
|
1509
|
-
def assert_parse exp, str
|
1510
|
-
act = Sexp::Matcher.parse str
|
1511
|
-
|
1512
|
-
if exp.nil? then
|
1513
|
-
assert_nil act
|
1514
|
-
else
|
1515
|
-
assert_equal exp, act
|
1516
|
-
end
|
1517
|
-
end
|
1518
|
-
|
1519
|
-
def self.test_parse name, exp_lambda, str
|
1520
|
-
define_method "test_parse_#{name}" do
|
1521
|
-
exp = exp_lambda && exp_lambda.call
|
1522
|
-
assert_parse exp, str
|
1523
|
-
end
|
1524
|
-
end
|
1525
|
-
|
1526
|
-
def self.test_bad_parse name, str
|
1527
|
-
define_method "test_parse_bad_#{name}" do
|
1528
|
-
assert_raises SyntaxError do
|
1529
|
-
assert_parse :whatever, str
|
1530
|
-
end
|
1531
|
-
end
|
1532
|
-
end
|
1533
|
-
|
1534
|
-
def self.delay &b
|
1535
|
-
lambda { s(&b) }
|
1536
|
-
end
|
1537
|
-
|
1538
|
-
test_parse "nothing", nil, ""
|
1539
|
-
test_parse "nil", delay{ nil }, "nil"
|
1540
|
-
test_parse "empty", delay{ s() }, "()"
|
1541
|
-
test_parse "simple", delay{ s(:a) }, "(a)"
|
1542
|
-
test_parse "number", delay{ s(:a, 42) }, "(a 42)"
|
1543
|
-
test_parse "string", delay{ s(:a, "s") }, "(a \"s\")"
|
1544
|
-
test_parse "compound", delay{ s(:b) }, "(a) (b)"
|
1545
|
-
test_parse "complex", delay{ s(:a, _, s(:b, :cde), ___) }, "(a _ (b cde) ___)"
|
1546
|
-
test_parse "type", delay{ s(:a, t(:b)) }, "(a [t b])"
|
1547
|
-
test_parse "match", delay{ s(:a, m(/b/)) }, "(a [m /b/])"
|
1548
|
-
test_parse "not_atom", delay{ s(:atom) }, "(atom)"
|
1549
|
-
test_parse "atom", delay{ atom }, "[atom]"
|
1550
|
-
|
1551
|
-
test_bad_parse "open_sexp", "(a"
|
1552
|
-
test_bad_parse "closed_sexp", "a)"
|
1553
|
-
test_bad_parse "open_cmd", "[a"
|
1554
|
-
test_bad_parse "closed_cmd", "a]"
|
1555
|
-
end # class TestSexpMatcherParser
|
1556
|
-
|
1557
|
-
class BenchSexp < Minitest::Benchmark
|
1558
|
-
def run
|
1559
|
-
GC.disable
|
1560
|
-
super
|
1561
|
-
ensure
|
1562
|
-
GC.enable
|
1563
|
-
end
|
1564
|
-
|
1565
|
-
def self.bench_range
|
1566
|
-
bench_linear 100, 500, 50
|
1567
|
-
end
|
1568
|
-
|
1569
|
-
@@data = Hash[bench_range.map { |n| [n, pyramid_sexp(n)] }]
|
1570
|
-
|
1571
|
-
def bench_pyramid
|
1572
|
-
assert_performance_power do |max|
|
1573
|
-
pyramid_sexp max
|
1574
|
-
end
|
1575
|
-
end
|
1576
|
-
|
1577
|
-
def bench_mass
|
1578
|
-
assert_performance_power do |max|
|
1579
|
-
@@data[max].mass
|
1580
|
-
end
|
1581
|
-
end
|
1582
|
-
end if ENV["BENCH"]
|
1583
|
-
|
1584
|
-
# class ExampleTest < Minitest::Test
|
1585
|
-
# def setup
|
1586
|
-
# 1 + 2
|
1587
|
-
# end
|
1588
|
-
#
|
1589
|
-
# def test_a
|
1590
|
-
# assert_equal 1+2, 4
|
1591
|
-
# end
|
1592
|
-
#
|
1593
|
-
# def test_b
|
1594
|
-
# # assert 1+1
|
1595
|
-
# end
|
1596
|
-
#
|
1597
|
-
# def test_a
|
1598
|
-
# assert_equal 1+2, 3
|
1599
|
-
# end
|
1600
|
-
#
|
1601
|
-
# private
|
1602
|
-
#
|
1603
|
-
# def helper_method apples, oranges, cakes = nil
|
1604
|
-
# [apples, oranges, cakes].compact.map { |food| food.to_s.upcase }
|
1605
|
-
# end
|
1606
|
-
# end
|
1607
|
-
|
1608
|
-
__END__
|
1609
|
-
s(:block,
|
1610
|
-
s(:call, nil, :require, s(:str, "minitest/autorun")),
|
1611
|
-
s(:class,
|
1612
|
-
:ExampleTest,
|
1613
|
-
s(:colon2, s(:const, :Minitest), :Test),
|
1614
|
-
s(:defn, :setup, s(:args), s(:call, s(:lit, 1), :+, s(:lit, 2))),
|
1615
|
-
s(:defn,
|
1616
|
-
:test_a,
|
1617
|
-
s(:args),
|
1618
|
-
s(:call,
|
1619
|
-
nil,
|
1620
|
-
:assert_equal,
|
1621
|
-
s(:call, s(:lit, 1), :+, s(:lit, 2)),
|
1622
|
-
s(:lit, 4))),
|
1623
|
-
s(:defn, :test_b, s(:args), s(:nil)),
|
1624
|
-
s(:defn,
|
1625
|
-
:test_a,
|
1626
|
-
s(:args),
|
1627
|
-
s(:call,
|
1628
|
-
nil,
|
1629
|
-
:assert_equal,
|
1630
|
-
s(:call, s(:lit, 1), :+, s(:lit, 2)),
|
1631
|
-
s(:lit, 3))),
|
1632
|
-
s(:call, nil, :private),
|
1633
|
-
s(:defn,
|
1634
|
-
:helper_method,
|
1635
|
-
s(:args, :apples, :oranges, s(:lasgn, :cakes, s(:nil))),
|
1636
|
-
s(:iter,
|
1637
|
-
s(:call,
|
1638
|
-
s(:call,
|
1639
|
-
s(:array, s(:lvar, :apples), s(:lvar, :oranges), s(:lvar, :cakes)),
|
1640
|
-
:compact),
|
1641
|
-
:map),
|
1642
|
-
s(:args, :food),
|
1643
|
-
s(:call, s(:call, s(:lvar, :food), :to_s), :upcase)))))
|