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
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
require_relative "elementdecl"
|
3
|
+
require_relative "entitydecl"
|
4
|
+
require_relative "../comment"
|
5
|
+
require_relative "notationdecl"
|
6
|
+
require_relative "attlistdecl"
|
7
|
+
require_relative "../parent"
|
8
|
+
|
9
|
+
module REXML
|
10
|
+
module DTD
|
11
|
+
class Parser
|
12
|
+
def Parser.parse( input )
|
13
|
+
case input
|
14
|
+
when String
|
15
|
+
parse_helper input
|
16
|
+
when File
|
17
|
+
parse_helper input.read
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
# Takes a String and parses it out
|
22
|
+
def Parser.parse_helper( input )
|
23
|
+
contents = Parent.new
|
24
|
+
while input.size > 0
|
25
|
+
case input
|
26
|
+
when ElementDecl.PATTERN_RE
|
27
|
+
match = $&
|
28
|
+
contents << ElementDecl.new( match )
|
29
|
+
when AttlistDecl.PATTERN_RE
|
30
|
+
matchdata = $~
|
31
|
+
contents << AttlistDecl.new( matchdata )
|
32
|
+
when EntityDecl.PATTERN_RE
|
33
|
+
matchdata = $~
|
34
|
+
contents << EntityDecl.new( matchdata )
|
35
|
+
when Comment.PATTERN_RE
|
36
|
+
matchdata = $~
|
37
|
+
contents << Comment.new( matchdata )
|
38
|
+
when NotationDecl.PATTERN_RE
|
39
|
+
matchdata = $~
|
40
|
+
contents << NotationDecl.new( matchdata )
|
41
|
+
end
|
42
|
+
end
|
43
|
+
contents
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
require_relative "../child"
|
3
|
+
module REXML
|
4
|
+
module DTD
|
5
|
+
class ElementDecl < Child
|
6
|
+
START = "<!ELEMENT"
|
7
|
+
START_RE = /^\s*#{START}/um
|
8
|
+
# PATTERN_RE = /^\s*(#{START}.*?)>/um
|
9
|
+
PATTERN_RE = /^\s*#{START}\s+((?:[:\w][-\.\w]*:)?[-!\*\.\w]*)(.*?)>/
|
10
|
+
#\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true)
|
11
|
+
|
12
|
+
def initialize match
|
13
|
+
@name = match[1]
|
14
|
+
@rest = match[2]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
require_relative "../child"
|
3
|
+
module REXML
|
4
|
+
module DTD
|
5
|
+
class EntityDecl < Child
|
6
|
+
START = "<!ENTITY"
|
7
|
+
START_RE = /^\s*#{START}/um
|
8
|
+
PUBLIC = /^\s*#{START}\s+(?:%\s+)?(\w+)\s+PUBLIC\s+((["']).*?\3)\s+((["']).*?\5)\s*>/um
|
9
|
+
SYSTEM = /^\s*#{START}\s+(?:%\s+)?(\w+)\s+SYSTEM\s+((["']).*?\3)(?:\s+NDATA\s+\w+)?\s*>/um
|
10
|
+
PLAIN = /^\s*#{START}\s+(\w+)\s+((["']).*?\3)\s*>/um
|
11
|
+
PERCENT = /^\s*#{START}\s+%\s+(\w+)\s+((["']).*?\3)\s*>/um
|
12
|
+
# <!ENTITY name SYSTEM "...">
|
13
|
+
# <!ENTITY name "...">
|
14
|
+
def initialize src
|
15
|
+
super()
|
16
|
+
md = nil
|
17
|
+
if src.match( PUBLIC )
|
18
|
+
md = src.match( PUBLIC, true )
|
19
|
+
@middle = "PUBLIC"
|
20
|
+
@content = "#{md[2]} #{md[4]}"
|
21
|
+
elsif src.match( SYSTEM )
|
22
|
+
md = src.match( SYSTEM, true )
|
23
|
+
@middle = "SYSTEM"
|
24
|
+
@content = md[2]
|
25
|
+
elsif src.match( PLAIN )
|
26
|
+
md = src.match( PLAIN, true )
|
27
|
+
@middle = ""
|
28
|
+
@content = md[2]
|
29
|
+
elsif src.match( PERCENT )
|
30
|
+
md = src.match( PERCENT, true )
|
31
|
+
@middle = ""
|
32
|
+
@content = md[2]
|
33
|
+
end
|
34
|
+
raise ParseException.new("failed Entity match", src) if md.nil?
|
35
|
+
@name = md[1]
|
36
|
+
end
|
37
|
+
|
38
|
+
def to_s
|
39
|
+
rv = "<!ENTITY #@name "
|
40
|
+
rv << "#@middle " if @middle.size > 0
|
41
|
+
rv << @content
|
42
|
+
rv
|
43
|
+
end
|
44
|
+
|
45
|
+
def write( output, indent )
|
46
|
+
indent( output, indent )
|
47
|
+
output << to_s
|
48
|
+
end
|
49
|
+
|
50
|
+
def EntityDecl.parse_source source, listener
|
51
|
+
md = source.match( PATTERN_RE, true )
|
52
|
+
thing = md[0].squeeze(" \t\n\r")
|
53
|
+
listener.send inspect.downcase, thing
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
require_relative "../child"
|
3
|
+
module REXML
|
4
|
+
module DTD
|
5
|
+
class NotationDecl < Child
|
6
|
+
START = "<!NOTATION"
|
7
|
+
START_RE = /^\s*#{START}/um
|
8
|
+
PUBLIC = /^\s*#{START}\s+(\w[\w-]*)\s+(PUBLIC)\s+((["']).*?\4)\s*>/um
|
9
|
+
SYSTEM = /^\s*#{START}\s+(\w[\w-]*)\s+(SYSTEM)\s+((["']).*?\4)\s*>/um
|
10
|
+
def initialize src
|
11
|
+
super()
|
12
|
+
if src.match( PUBLIC )
|
13
|
+
md = src.match( PUBLIC, true )
|
14
|
+
elsif src.match( SYSTEM )
|
15
|
+
md = src.match( SYSTEM, true )
|
16
|
+
else
|
17
|
+
raise ParseException.new( "error parsing notation: no matching pattern", src )
|
18
|
+
end
|
19
|
+
@name = md[1]
|
20
|
+
@middle = md[2]
|
21
|
+
@rest = md[3]
|
22
|
+
end
|
23
|
+
|
24
|
+
def to_s
|
25
|
+
"<!NOTATION #@name #@middle #@rest>"
|
26
|
+
end
|
27
|
+
|
28
|
+
def write( output, indent )
|
29
|
+
indent( output, indent )
|
30
|
+
output << to_s
|
31
|
+
end
|
32
|
+
|
33
|
+
def NotationDecl.parse_source source, listener
|
34
|
+
md = source.match( PATTERN_RE, true )
|
35
|
+
thing = md[0].squeeze(" \t\n\r")
|
36
|
+
listener.send inspect.downcase, thing
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,1269 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
require_relative "parent"
|
3
|
+
require_relative "namespace"
|
4
|
+
require_relative "attribute"
|
5
|
+
require_relative "cdata"
|
6
|
+
require_relative "xpath"
|
7
|
+
require_relative "parseexception"
|
8
|
+
|
9
|
+
module REXML
|
10
|
+
# An implementation note about namespaces:
|
11
|
+
# As we parse, when we find namespaces we put them in a hash and assign
|
12
|
+
# them a unique ID. We then convert the namespace prefix for the node
|
13
|
+
# to the unique ID. This makes namespace lookup much faster for the
|
14
|
+
# cost of extra memory use. We save the namespace prefix for the
|
15
|
+
# context node and convert it back when we write it.
|
16
|
+
@@namespaces = {}
|
17
|
+
|
18
|
+
# Represents a tagged XML element. Elements are characterized by
|
19
|
+
# having children, attributes, and names, and can themselves be
|
20
|
+
# children.
|
21
|
+
class Element < Parent
|
22
|
+
include Namespace
|
23
|
+
|
24
|
+
UNDEFINED = "UNDEFINED"; # The default name
|
25
|
+
|
26
|
+
# Mechanisms for accessing attributes and child elements of this
|
27
|
+
# element.
|
28
|
+
attr_reader :attributes, :elements
|
29
|
+
# The context holds information about the processing environment, such as
|
30
|
+
# whitespace handling.
|
31
|
+
attr_accessor :context
|
32
|
+
|
33
|
+
# Constructor
|
34
|
+
# arg::
|
35
|
+
# if not supplied, will be set to the default value.
|
36
|
+
# If a String, the name of this object will be set to the argument.
|
37
|
+
# If an Element, the object will be shallowly cloned; name,
|
38
|
+
# attributes, and namespaces will be copied. Children will +not+ be
|
39
|
+
# copied.
|
40
|
+
# parent::
|
41
|
+
# if supplied, must be a Parent, and will be used as
|
42
|
+
# the parent of this object.
|
43
|
+
# context::
|
44
|
+
# If supplied, must be a hash containing context items. Context items
|
45
|
+
# include:
|
46
|
+
# * <tt>:respect_whitespace</tt> the value of this is :+all+ or an array of
|
47
|
+
# strings being the names of the elements to respect
|
48
|
+
# whitespace for. Defaults to :+all+.
|
49
|
+
# * <tt>:compress_whitespace</tt> the value can be :+all+ or an array of
|
50
|
+
# strings being the names of the elements to ignore whitespace on.
|
51
|
+
# Overrides :+respect_whitespace+.
|
52
|
+
# * <tt>:ignore_whitespace_nodes</tt> the value can be :+all+ or an array
|
53
|
+
# of strings being the names of the elements in which to ignore
|
54
|
+
# whitespace-only nodes. If this is set, Text nodes which contain only
|
55
|
+
# whitespace will not be added to the document tree.
|
56
|
+
# * <tt>:raw</tt> can be :+all+, or an array of strings being the names of
|
57
|
+
# the elements to process in raw mode. In raw mode, special
|
58
|
+
# characters in text is not converted to or from entities.
|
59
|
+
def initialize( arg = UNDEFINED, parent=nil, context=nil )
|
60
|
+
super(parent)
|
61
|
+
|
62
|
+
@elements = Elements.new(self)
|
63
|
+
@attributes = Attributes.new(self)
|
64
|
+
@context = context
|
65
|
+
|
66
|
+
if arg.kind_of? String
|
67
|
+
self.name = arg
|
68
|
+
elsif arg.kind_of? Element
|
69
|
+
self.name = arg.expanded_name
|
70
|
+
arg.attributes.each_attribute{ |attribute|
|
71
|
+
@attributes << Attribute.new( attribute )
|
72
|
+
}
|
73
|
+
@context = arg.context
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def inspect
|
78
|
+
rv = "<#@expanded_name"
|
79
|
+
|
80
|
+
@attributes.each_attribute do |attr|
|
81
|
+
rv << " "
|
82
|
+
attr.write( rv, 0 )
|
83
|
+
end
|
84
|
+
|
85
|
+
if children.size > 0
|
86
|
+
rv << "> ... </>"
|
87
|
+
else
|
88
|
+
rv << "/>"
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
|
93
|
+
# Creates a shallow copy of self.
|
94
|
+
# d = Document.new "<a><b/><b/><c><d/></c></a>"
|
95
|
+
# new_a = d.root.clone
|
96
|
+
# puts new_a # => "<a/>"
|
97
|
+
def clone
|
98
|
+
self.class.new self
|
99
|
+
end
|
100
|
+
|
101
|
+
# Evaluates to the root node of the document that this element
|
102
|
+
# belongs to. If this element doesn't belong to a document, but does
|
103
|
+
# belong to another Element, the parent's root will be returned, until the
|
104
|
+
# earliest ancestor is found.
|
105
|
+
#
|
106
|
+
# Note that this is not the same as the document element.
|
107
|
+
# In the following example, <a> is the document element, and the root
|
108
|
+
# node is the parent node of the document element. You may ask yourself
|
109
|
+
# why the root node is useful: consider the doctype and XML declaration,
|
110
|
+
# and any processing instructions before the document element... they
|
111
|
+
# are children of the root node, or siblings of the document element.
|
112
|
+
# The only time this isn't true is when an Element is created that is
|
113
|
+
# not part of any Document. In this case, the ancestor that has no
|
114
|
+
# parent acts as the root node.
|
115
|
+
# d = Document.new '<a><b><c/></b></a>'
|
116
|
+
# a = d[1] ; c = a[1][1]
|
117
|
+
# d.root_node == d # TRUE
|
118
|
+
# a.root_node # namely, d
|
119
|
+
# c.root_node # again, d
|
120
|
+
def root_node
|
121
|
+
parent.nil? ? self : parent.root_node
|
122
|
+
end
|
123
|
+
|
124
|
+
def root
|
125
|
+
return elements[1] if self.kind_of? Document
|
126
|
+
return self if parent.kind_of? Document or parent.nil?
|
127
|
+
return parent.root
|
128
|
+
end
|
129
|
+
|
130
|
+
# Evaluates to the document to which this element belongs, or nil if this
|
131
|
+
# element doesn't belong to a document.
|
132
|
+
def document
|
133
|
+
rt = root
|
134
|
+
rt.parent if rt
|
135
|
+
end
|
136
|
+
|
137
|
+
# Evaluates to +true+ if whitespace is respected for this element. This
|
138
|
+
# is the case if:
|
139
|
+
# 1. Neither :+respect_whitespace+ nor :+compress_whitespace+ has any value
|
140
|
+
# 2. The context has :+respect_whitespace+ set to :+all+ or
|
141
|
+
# an array containing the name of this element, and
|
142
|
+
# :+compress_whitespace+ isn't set to :+all+ or an array containing the
|
143
|
+
# name of this element.
|
144
|
+
# The evaluation is tested against +expanded_name+, and so is namespace
|
145
|
+
# sensitive.
|
146
|
+
def whitespace
|
147
|
+
@whitespace = nil
|
148
|
+
if @context
|
149
|
+
if @context[:respect_whitespace]
|
150
|
+
@whitespace = (@context[:respect_whitespace] == :all or
|
151
|
+
@context[:respect_whitespace].include? expanded_name)
|
152
|
+
end
|
153
|
+
@whitespace = false if (@context[:compress_whitespace] and
|
154
|
+
(@context[:compress_whitespace] == :all or
|
155
|
+
@context[:compress_whitespace].include? expanded_name)
|
156
|
+
)
|
157
|
+
end
|
158
|
+
@whitespace = true unless @whitespace == false
|
159
|
+
@whitespace
|
160
|
+
end
|
161
|
+
|
162
|
+
def ignore_whitespace_nodes
|
163
|
+
@ignore_whitespace_nodes = false
|
164
|
+
if @context
|
165
|
+
if @context[:ignore_whitespace_nodes]
|
166
|
+
@ignore_whitespace_nodes =
|
167
|
+
(@context[:ignore_whitespace_nodes] == :all or
|
168
|
+
@context[:ignore_whitespace_nodes].include? expanded_name)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Evaluates to +true+ if raw mode is set for this element. This
|
174
|
+
# is the case if the context has :+raw+ set to :+all+ or
|
175
|
+
# an array containing the name of this element.
|
176
|
+
#
|
177
|
+
# The evaluation is tested against +expanded_name+, and so is namespace
|
178
|
+
# sensitive.
|
179
|
+
def raw
|
180
|
+
@raw = (@context and @context[:raw] and
|
181
|
+
(@context[:raw] == :all or
|
182
|
+
@context[:raw].include? expanded_name))
|
183
|
+
@raw
|
184
|
+
end
|
185
|
+
|
186
|
+
#once :whitespace, :raw, :ignore_whitespace_nodes
|
187
|
+
|
188
|
+
#################################################
|
189
|
+
# Namespaces #
|
190
|
+
#################################################
|
191
|
+
|
192
|
+
# Evaluates to an +Array+ containing the prefixes (names) of all defined
|
193
|
+
# namespaces at this context node.
|
194
|
+
# doc = Document.new("<a xmlns:x='1' xmlns:y='2'><b/><c xmlns:z='3'/></a>")
|
195
|
+
# doc.elements['//b'].prefixes # -> ['x', 'y']
|
196
|
+
def prefixes
|
197
|
+
prefixes = []
|
198
|
+
prefixes = parent.prefixes if parent
|
199
|
+
prefixes |= attributes.prefixes
|
200
|
+
return prefixes
|
201
|
+
end
|
202
|
+
|
203
|
+
def namespaces
|
204
|
+
namespaces = {}
|
205
|
+
namespaces = parent.namespaces if parent
|
206
|
+
namespaces = namespaces.merge( attributes.namespaces )
|
207
|
+
return namespaces
|
208
|
+
end
|
209
|
+
|
210
|
+
# Evaluates to the URI for a prefix, or the empty string if no such
|
211
|
+
# namespace is declared for this element. Evaluates recursively for
|
212
|
+
# ancestors. Returns the default namespace, if there is one.
|
213
|
+
# prefix::
|
214
|
+
# the prefix to search for. If not supplied, returns the default
|
215
|
+
# namespace if one exists
|
216
|
+
# Returns::
|
217
|
+
# the namespace URI as a String, or nil if no such namespace
|
218
|
+
# exists. If the namespace is undefined, returns an empty string
|
219
|
+
# doc = Document.new("<a xmlns='1' xmlns:y='2'><b/><c xmlns:z='3'/></a>")
|
220
|
+
# b = doc.elements['//b']
|
221
|
+
# b.namespace # -> '1'
|
222
|
+
# b.namespace("y") # -> '2'
|
223
|
+
def namespace(prefix=nil)
|
224
|
+
if prefix.nil?
|
225
|
+
prefix = prefix()
|
226
|
+
end
|
227
|
+
if prefix == ''
|
228
|
+
prefix = "xmlns"
|
229
|
+
else
|
230
|
+
prefix = "xmlns:#{prefix}" unless prefix[0,5] == 'xmlns'
|
231
|
+
end
|
232
|
+
ns = attributes[ prefix ]
|
233
|
+
ns = parent.namespace(prefix) if ns.nil? and parent
|
234
|
+
ns = '' if ns.nil? and prefix == 'xmlns'
|
235
|
+
return ns
|
236
|
+
end
|
237
|
+
|
238
|
+
# Adds a namespace to this element.
|
239
|
+
# prefix::
|
240
|
+
# the prefix string, or the namespace URI if +uri+ is not
|
241
|
+
# supplied
|
242
|
+
# uri::
|
243
|
+
# the namespace URI. May be nil, in which +prefix+ is used as
|
244
|
+
# the URI
|
245
|
+
# Evaluates to: this Element
|
246
|
+
# a = Element.new("a")
|
247
|
+
# a.add_namespace("xmlns:foo", "bar" )
|
248
|
+
# a.add_namespace("foo", "bar") # shorthand for previous line
|
249
|
+
# a.add_namespace("twiddle")
|
250
|
+
# puts a #-> <a xmlns:foo='bar' xmlns='twiddle'/>
|
251
|
+
def add_namespace( prefix, uri=nil )
|
252
|
+
unless uri
|
253
|
+
@attributes["xmlns"] = prefix
|
254
|
+
else
|
255
|
+
prefix = "xmlns:#{prefix}" unless prefix =~ /^xmlns:/
|
256
|
+
@attributes[ prefix ] = uri
|
257
|
+
end
|
258
|
+
self
|
259
|
+
end
|
260
|
+
|
261
|
+
# Removes a namespace from this node. This only works if the namespace is
|
262
|
+
# actually declared in this node. If no argument is passed, deletes the
|
263
|
+
# default namespace.
|
264
|
+
#
|
265
|
+
# Evaluates to: this element
|
266
|
+
# doc = Document.new "<a xmlns:foo='bar' xmlns='twiddle'/>"
|
267
|
+
# doc.root.delete_namespace
|
268
|
+
# puts doc # -> <a xmlns:foo='bar'/>
|
269
|
+
# doc.root.delete_namespace 'foo'
|
270
|
+
# puts doc # -> <a/>
|
271
|
+
def delete_namespace namespace="xmlns"
|
272
|
+
namespace = "xmlns:#{namespace}" unless namespace == 'xmlns'
|
273
|
+
attribute = attributes.get_attribute(namespace)
|
274
|
+
attribute.remove unless attribute.nil?
|
275
|
+
self
|
276
|
+
end
|
277
|
+
|
278
|
+
#################################################
|
279
|
+
# Elements #
|
280
|
+
#################################################
|
281
|
+
|
282
|
+
# Adds a child to this element, optionally setting attributes in
|
283
|
+
# the element.
|
284
|
+
# element::
|
285
|
+
# optional. If Element, the element is added.
|
286
|
+
# Otherwise, a new Element is constructed with the argument (see
|
287
|
+
# Element.initialize).
|
288
|
+
# attrs::
|
289
|
+
# If supplied, must be a Hash containing String name,value
|
290
|
+
# pairs, which will be used to set the attributes of the new Element.
|
291
|
+
# Returns:: the Element that was added
|
292
|
+
# el = doc.add_element 'my-tag'
|
293
|
+
# el = doc.add_element 'my-tag', {'attr1'=>'val1', 'attr2'=>'val2'}
|
294
|
+
# el = Element.new 'my-tag'
|
295
|
+
# doc.add_element el
|
296
|
+
def add_element element, attrs=nil
|
297
|
+
raise "First argument must be either an element name, or an Element object" if element.nil?
|
298
|
+
el = @elements.add(element)
|
299
|
+
attrs.each do |key, value|
|
300
|
+
el.attributes[key]=value
|
301
|
+
end if attrs.kind_of? Hash
|
302
|
+
el
|
303
|
+
end
|
304
|
+
|
305
|
+
# Deletes a child element.
|
306
|
+
# element::
|
307
|
+
# Must be an +Element+, +String+, or +Integer+. If Element,
|
308
|
+
# the element is removed. If String, the element is found (via XPath)
|
309
|
+
# and removed. <em>This means that any parent can remove any
|
310
|
+
# descendant.<em> If Integer, the Element indexed by that number will be
|
311
|
+
# removed.
|
312
|
+
# Returns:: the element that was removed.
|
313
|
+
# doc.delete_element "/a/b/c[@id='4']"
|
314
|
+
# doc.delete_element doc.elements["//k"]
|
315
|
+
# doc.delete_element 1
|
316
|
+
def delete_element element
|
317
|
+
@elements.delete element
|
318
|
+
end
|
319
|
+
|
320
|
+
# Evaluates to +true+ if this element has at least one child Element
|
321
|
+
# doc = Document.new "<a><b/><c>Text</c></a>"
|
322
|
+
# doc.root.has_elements # -> true
|
323
|
+
# doc.elements["/a/b"].has_elements # -> false
|
324
|
+
# doc.elements["/a/c"].has_elements # -> false
|
325
|
+
def has_elements?
|
326
|
+
!@elements.empty?
|
327
|
+
end
|
328
|
+
|
329
|
+
# Iterates through the child elements, yielding for each Element that
|
330
|
+
# has a particular attribute set.
|
331
|
+
# key::
|
332
|
+
# the name of the attribute to search for
|
333
|
+
# value::
|
334
|
+
# the value of the attribute
|
335
|
+
# max::
|
336
|
+
# (optional) causes this method to return after yielding
|
337
|
+
# for this number of matching children
|
338
|
+
# name::
|
339
|
+
# (optional) if supplied, this is an XPath that filters
|
340
|
+
# the children to check.
|
341
|
+
#
|
342
|
+
# doc = Document.new "<a><b @id='1'/><c @id='2'/><d @id='1'/><e/></a>"
|
343
|
+
# # Yields b, c, d
|
344
|
+
# doc.root.each_element_with_attribute( 'id' ) {|e| p e}
|
345
|
+
# # Yields b, d
|
346
|
+
# doc.root.each_element_with_attribute( 'id', '1' ) {|e| p e}
|
347
|
+
# # Yields b
|
348
|
+
# doc.root.each_element_with_attribute( 'id', '1', 1 ) {|e| p e}
|
349
|
+
# # Yields d
|
350
|
+
# doc.root.each_element_with_attribute( 'id', '1', 0, 'd' ) {|e| p e}
|
351
|
+
def each_element_with_attribute( key, value=nil, max=0, name=nil, &block ) # :yields: Element
|
352
|
+
each_with_something( proc {|child|
|
353
|
+
if value.nil?
|
354
|
+
child.attributes[key] != nil
|
355
|
+
else
|
356
|
+
child.attributes[key]==value
|
357
|
+
end
|
358
|
+
}, max, name, &block )
|
359
|
+
end
|
360
|
+
|
361
|
+
# Iterates through the children, yielding for each Element that
|
362
|
+
# has a particular text set.
|
363
|
+
# text::
|
364
|
+
# the text to search for. If nil, or not supplied, will iterate
|
365
|
+
# over all +Element+ children that contain at least one +Text+ node.
|
366
|
+
# max::
|
367
|
+
# (optional) causes this method to return after yielding
|
368
|
+
# for this number of matching children
|
369
|
+
# name::
|
370
|
+
# (optional) if supplied, this is an XPath that filters
|
371
|
+
# the children to check.
|
372
|
+
#
|
373
|
+
# doc = Document.new '<a><b>b</b><c>b</c><d>d</d><e/></a>'
|
374
|
+
# # Yields b, c, d
|
375
|
+
# doc.each_element_with_text {|e|p e}
|
376
|
+
# # Yields b, c
|
377
|
+
# doc.each_element_with_text('b'){|e|p e}
|
378
|
+
# # Yields b
|
379
|
+
# doc.each_element_with_text('b', 1){|e|p e}
|
380
|
+
# # Yields d
|
381
|
+
# doc.each_element_with_text(nil, 0, 'd'){|e|p e}
|
382
|
+
def each_element_with_text( text=nil, max=0, name=nil, &block ) # :yields: Element
|
383
|
+
each_with_something( proc {|child|
|
384
|
+
if text.nil?
|
385
|
+
child.has_text?
|
386
|
+
else
|
387
|
+
child.text == text
|
388
|
+
end
|
389
|
+
}, max, name, &block )
|
390
|
+
end
|
391
|
+
|
392
|
+
# Synonym for Element.elements.each
|
393
|
+
def each_element( xpath=nil, &block ) # :yields: Element
|
394
|
+
@elements.each( xpath, &block )
|
395
|
+
end
|
396
|
+
|
397
|
+
# Synonym for Element.to_a
|
398
|
+
# This is a little slower than calling elements.each directly.
|
399
|
+
# xpath:: any XPath by which to search for elements in the tree
|
400
|
+
# Returns:: an array of Elements that match the supplied path
|
401
|
+
def get_elements( xpath )
|
402
|
+
@elements.to_a( xpath )
|
403
|
+
end
|
404
|
+
|
405
|
+
# Returns the next sibling that is an element, or nil if there is
|
406
|
+
# no Element sibling after this one
|
407
|
+
# doc = Document.new '<a><b/>text<c/></a>'
|
408
|
+
# doc.root.elements['b'].next_element #-> <c/>
|
409
|
+
# doc.root.elements['c'].next_element #-> nil
|
410
|
+
def next_element
|
411
|
+
element = next_sibling
|
412
|
+
element = element.next_sibling until element.nil? or element.kind_of? Element
|
413
|
+
return element
|
414
|
+
end
|
415
|
+
|
416
|
+
# Returns the previous sibling that is an element, or nil if there is
|
417
|
+
# no Element sibling prior to this one
|
418
|
+
# doc = Document.new '<a><b/>text<c/></a>'
|
419
|
+
# doc.root.elements['c'].previous_element #-> <b/>
|
420
|
+
# doc.root.elements['b'].previous_element #-> nil
|
421
|
+
def previous_element
|
422
|
+
element = previous_sibling
|
423
|
+
element = element.previous_sibling until element.nil? or element.kind_of? Element
|
424
|
+
return element
|
425
|
+
end
|
426
|
+
|
427
|
+
|
428
|
+
#################################################
|
429
|
+
# Text #
|
430
|
+
#################################################
|
431
|
+
|
432
|
+
# Evaluates to +true+ if this element has at least one Text child
|
433
|
+
def has_text?
|
434
|
+
not text().nil?
|
435
|
+
end
|
436
|
+
|
437
|
+
# A convenience method which returns the String value of the _first_
|
438
|
+
# child text element, if one exists, and +nil+ otherwise.
|
439
|
+
#
|
440
|
+
# <em>Note that an element may have multiple Text elements, perhaps
|
441
|
+
# separated by other children</em>. Be aware that this method only returns
|
442
|
+
# the first Text node.
|
443
|
+
#
|
444
|
+
# This method returns the +value+ of the first text child node, which
|
445
|
+
# ignores the +raw+ setting, so always returns normalized text. See
|
446
|
+
# the Text::value documentation.
|
447
|
+
#
|
448
|
+
# doc = Document.new "<p>some text <b>this is bold!</b> more text</p>"
|
449
|
+
# # The element 'p' has two text elements, "some text " and " more text".
|
450
|
+
# doc.root.text #-> "some text "
|
451
|
+
def text( path = nil )
|
452
|
+
rv = get_text(path)
|
453
|
+
return rv.value unless rv.nil?
|
454
|
+
nil
|
455
|
+
end
|
456
|
+
|
457
|
+
# Returns the first child Text node, if any, or +nil+ otherwise.
|
458
|
+
# This method returns the actual +Text+ node, rather than the String content.
|
459
|
+
# doc = Document.new "<p>some text <b>this is bold!</b> more text</p>"
|
460
|
+
# # The element 'p' has two text elements, "some text " and " more text".
|
461
|
+
# doc.root.get_text.value #-> "some text "
|
462
|
+
def get_text path = nil
|
463
|
+
rv = nil
|
464
|
+
if path
|
465
|
+
element = @elements[ path ]
|
466
|
+
rv = element.get_text unless element.nil?
|
467
|
+
else
|
468
|
+
rv = @children.find { |node| node.kind_of? Text }
|
469
|
+
end
|
470
|
+
return rv
|
471
|
+
end
|
472
|
+
|
473
|
+
# Sets the first Text child of this object. See text() for a
|
474
|
+
# discussion about Text children.
|
475
|
+
#
|
476
|
+
# If a Text child already exists, the child is replaced by this
|
477
|
+
# content. This means that Text content can be deleted by calling
|
478
|
+
# this method with a nil argument. In this case, the next Text
|
479
|
+
# child becomes the first Text child. In no case is the order of
|
480
|
+
# any siblings disturbed.
|
481
|
+
# text::
|
482
|
+
# If a String, a new Text child is created and added to
|
483
|
+
# this Element as the first Text child. If Text, the text is set
|
484
|
+
# as the first Child element. If nil, then any existing first Text
|
485
|
+
# child is removed.
|
486
|
+
# Returns:: this Element.
|
487
|
+
# doc = Document.new '<a><b/></a>'
|
488
|
+
# doc.root.text = 'Sean' #-> '<a><b/>Sean</a>'
|
489
|
+
# doc.root.text = 'Elliott' #-> '<a><b/>Elliott</a>'
|
490
|
+
# doc.root.add_element 'c' #-> '<a><b/>Elliott<c/></a>'
|
491
|
+
# doc.root.text = 'Russell' #-> '<a><b/>Russell<c/></a>'
|
492
|
+
# doc.root.text = nil #-> '<a><b/><c/></a>'
|
493
|
+
def text=( text )
|
494
|
+
if text.kind_of? String
|
495
|
+
text = Text.new( text, whitespace(), nil, raw() )
|
496
|
+
elsif !text.nil? and !text.kind_of? Text
|
497
|
+
text = Text.new( text.to_s, whitespace(), nil, raw() )
|
498
|
+
end
|
499
|
+
old_text = get_text
|
500
|
+
if text.nil?
|
501
|
+
old_text.remove unless old_text.nil?
|
502
|
+
else
|
503
|
+
if old_text.nil?
|
504
|
+
self << text
|
505
|
+
else
|
506
|
+
old_text.replace_with( text )
|
507
|
+
end
|
508
|
+
end
|
509
|
+
return self
|
510
|
+
end
|
511
|
+
|
512
|
+
# A helper method to add a Text child. Actual Text instances can
|
513
|
+
# be added with regular Parent methods, such as add() and <<()
|
514
|
+
# text::
|
515
|
+
# if a String, a new Text instance is created and added
|
516
|
+
# to the parent. If Text, the object is added directly.
|
517
|
+
# Returns:: this Element
|
518
|
+
# e = Element.new('a') #-> <e/>
|
519
|
+
# e.add_text 'foo' #-> <e>foo</e>
|
520
|
+
# e.add_text Text.new(' bar') #-> <e>foo bar</e>
|
521
|
+
# Note that at the end of this example, the branch has <b>3</b> nodes; the 'e'
|
522
|
+
# element and <b>2</b> Text node children.
|
523
|
+
def add_text( text )
|
524
|
+
if text.kind_of? String
|
525
|
+
if @children[-1].kind_of? Text
|
526
|
+
@children[-1] << text
|
527
|
+
return
|
528
|
+
end
|
529
|
+
text = Text.new( text, whitespace(), nil, raw() )
|
530
|
+
end
|
531
|
+
self << text unless text.nil?
|
532
|
+
return self
|
533
|
+
end
|
534
|
+
|
535
|
+
def node_type
|
536
|
+
:element
|
537
|
+
end
|
538
|
+
|
539
|
+
def xpath
|
540
|
+
path_elements = []
|
541
|
+
cur = self
|
542
|
+
path_elements << __to_xpath_helper( self )
|
543
|
+
while cur.parent
|
544
|
+
cur = cur.parent
|
545
|
+
path_elements << __to_xpath_helper( cur )
|
546
|
+
end
|
547
|
+
return path_elements.reverse.join( "/" )
|
548
|
+
end
|
549
|
+
|
550
|
+
#################################################
|
551
|
+
# Attributes #
|
552
|
+
#################################################
|
553
|
+
|
554
|
+
# Fetches an attribute value or a child.
|
555
|
+
#
|
556
|
+
# If String or Symbol is specified, it's treated as attribute
|
557
|
+
# name. Attribute value as String or +nil+ is returned. This case
|
558
|
+
# is shortcut of +attributes[name]+.
|
559
|
+
#
|
560
|
+
# If Integer is specified, it's treated as the index of
|
561
|
+
# child. It returns Nth child.
|
562
|
+
#
|
563
|
+
# doc = REXML::Document.new("<a attr='1'><b/><c/></a>")
|
564
|
+
# doc.root["attr"] # => "1"
|
565
|
+
# doc.root.attributes["attr"] # => "1"
|
566
|
+
# doc.root[1] # => <c/>
|
567
|
+
def [](name_or_index)
|
568
|
+
case name_or_index
|
569
|
+
when String
|
570
|
+
attributes[name_or_index]
|
571
|
+
when Symbol
|
572
|
+
attributes[name_or_index.to_s]
|
573
|
+
else
|
574
|
+
super
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
578
|
+
def attribute( name, namespace=nil )
|
579
|
+
prefix = nil
|
580
|
+
if namespaces.respond_to? :key
|
581
|
+
prefix = namespaces.key(namespace) if namespace
|
582
|
+
else
|
583
|
+
prefix = namespaces.index(namespace) if namespace
|
584
|
+
end
|
585
|
+
prefix = nil if prefix == 'xmlns'
|
586
|
+
|
587
|
+
ret_val =
|
588
|
+
attributes.get_attribute( "#{prefix ? prefix + ':' : ''}#{name}" )
|
589
|
+
|
590
|
+
return ret_val unless ret_val.nil?
|
591
|
+
return nil if prefix.nil?
|
592
|
+
|
593
|
+
# now check that prefix'es namespace is not the same as the
|
594
|
+
# default namespace
|
595
|
+
return nil unless ( namespaces[ prefix ] == namespaces[ 'xmlns' ] )
|
596
|
+
|
597
|
+
attributes.get_attribute( name )
|
598
|
+
|
599
|
+
end
|
600
|
+
|
601
|
+
# Evaluates to +true+ if this element has any attributes set, false
|
602
|
+
# otherwise.
|
603
|
+
def has_attributes?
|
604
|
+
return !@attributes.empty?
|
605
|
+
end
|
606
|
+
|
607
|
+
# Adds an attribute to this element, overwriting any existing attribute
|
608
|
+
# by the same name.
|
609
|
+
# key::
|
610
|
+
# can be either an Attribute or a String. If an Attribute,
|
611
|
+
# the attribute is added to the list of Element attributes. If String,
|
612
|
+
# the argument is used as the name of the new attribute, and the value
|
613
|
+
# parameter must be supplied.
|
614
|
+
# value::
|
615
|
+
# Required if +key+ is a String, and ignored if the first argument is
|
616
|
+
# an Attribute. This is a String, and is used as the value
|
617
|
+
# of the new Attribute. This should be the unnormalized value of the
|
618
|
+
# attribute (without entities).
|
619
|
+
# Returns:: the Attribute added
|
620
|
+
# e = Element.new 'e'
|
621
|
+
# e.add_attribute( 'a', 'b' ) #-> <e a='b'/>
|
622
|
+
# e.add_attribute( 'x:a', 'c' ) #-> <e a='b' x:a='c'/>
|
623
|
+
# e.add_attribute Attribute.new('b', 'd') #-> <e a='b' x:a='c' b='d'/>
|
624
|
+
def add_attribute( key, value=nil )
|
625
|
+
if key.kind_of? Attribute
|
626
|
+
@attributes << key
|
627
|
+
else
|
628
|
+
@attributes[key] = value
|
629
|
+
end
|
630
|
+
end
|
631
|
+
|
632
|
+
# Add multiple attributes to this element.
|
633
|
+
# hash:: is either a hash, or array of arrays
|
634
|
+
# el.add_attributes( {"name1"=>"value1", "name2"=>"value2"} )
|
635
|
+
# el.add_attributes( [ ["name1","value1"], ["name2"=>"value2"] ] )
|
636
|
+
def add_attributes hash
|
637
|
+
if hash.kind_of? Hash
|
638
|
+
hash.each_pair {|key, value| @attributes[key] = value }
|
639
|
+
elsif hash.kind_of? Array
|
640
|
+
hash.each { |value| @attributes[ value[0] ] = value[1] }
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
# Removes an attribute
|
645
|
+
# key::
|
646
|
+
# either an Attribute or a String. In either case, the
|
647
|
+
# attribute is found by matching the attribute name to the argument,
|
648
|
+
# and then removed. If no attribute is found, no action is taken.
|
649
|
+
# Returns::
|
650
|
+
# the attribute removed, or nil if this Element did not contain
|
651
|
+
# a matching attribute
|
652
|
+
# e = Element.new('E')
|
653
|
+
# e.add_attribute( 'name', 'Sean' ) #-> <E name='Sean'/>
|
654
|
+
# r = e.add_attribute( 'sur:name', 'Russell' ) #-> <E name='Sean' sur:name='Russell'/>
|
655
|
+
# e.delete_attribute( 'name' ) #-> <E sur:name='Russell'/>
|
656
|
+
# e.delete_attribute( r ) #-> <E/>
|
657
|
+
def delete_attribute(key)
|
658
|
+
attr = @attributes.get_attribute(key)
|
659
|
+
attr.remove unless attr.nil?
|
660
|
+
end
|
661
|
+
|
662
|
+
#################################################
|
663
|
+
# Other Utilities #
|
664
|
+
#################################################
|
665
|
+
|
666
|
+
# Get an array of all CData children.
|
667
|
+
# IMMUTABLE
|
668
|
+
def cdatas
|
669
|
+
find_all { |child| child.kind_of? CData }.freeze
|
670
|
+
end
|
671
|
+
|
672
|
+
# Get an array of all Comment children.
|
673
|
+
# IMMUTABLE
|
674
|
+
def comments
|
675
|
+
find_all { |child| child.kind_of? Comment }.freeze
|
676
|
+
end
|
677
|
+
|
678
|
+
# Get an array of all Instruction children.
|
679
|
+
# IMMUTABLE
|
680
|
+
def instructions
|
681
|
+
find_all { |child| child.kind_of? Instruction }.freeze
|
682
|
+
end
|
683
|
+
|
684
|
+
# Get an array of all Text children.
|
685
|
+
# IMMUTABLE
|
686
|
+
def texts
|
687
|
+
find_all { |child| child.kind_of? Text }.freeze
|
688
|
+
end
|
689
|
+
|
690
|
+
# == DEPRECATED
|
691
|
+
# See REXML::Formatters
|
692
|
+
#
|
693
|
+
# Writes out this element, and recursively, all children.
|
694
|
+
# output::
|
695
|
+
# output an object which supports '<< string'; this is where the
|
696
|
+
# document will be written.
|
697
|
+
# indent::
|
698
|
+
# An integer. If -1, no indenting will be used; otherwise, the
|
699
|
+
# indentation will be this number of spaces, and children will be
|
700
|
+
# indented an additional amount. Defaults to -1
|
701
|
+
# transitive::
|
702
|
+
# If transitive is true and indent is >= 0, then the output will be
|
703
|
+
# pretty-printed in such a way that the added whitespace does not affect
|
704
|
+
# the parse tree of the document
|
705
|
+
# ie_hack::
|
706
|
+
# This hack inserts a space before the /> on empty tags to address
|
707
|
+
# a limitation of Internet Explorer. Defaults to false
|
708
|
+
#
|
709
|
+
# out = ''
|
710
|
+
# doc.write( out ) #-> doc is written to the string 'out'
|
711
|
+
# doc.write( $stdout ) #-> doc written to the console
|
712
|
+
def write(output=$stdout, indent=-1, transitive=false, ie_hack=false)
|
713
|
+
Kernel.warn("#{self.class.name}.write is deprecated. See REXML::Formatters", uplevel: 1)
|
714
|
+
formatter = if indent > -1
|
715
|
+
if transitive
|
716
|
+
require_relative "formatters/transitive"
|
717
|
+
REXML::Formatters::Transitive.new( indent, ie_hack )
|
718
|
+
else
|
719
|
+
REXML::Formatters::Pretty.new( indent, ie_hack )
|
720
|
+
end
|
721
|
+
else
|
722
|
+
REXML::Formatters::Default.new( ie_hack )
|
723
|
+
end
|
724
|
+
formatter.write( self, output )
|
725
|
+
end
|
726
|
+
|
727
|
+
|
728
|
+
private
|
729
|
+
def __to_xpath_helper node
|
730
|
+
rv = node.expanded_name.clone
|
731
|
+
if node.parent
|
732
|
+
results = node.parent.find_all {|n|
|
733
|
+
n.kind_of?(REXML::Element) and n.expanded_name == node.expanded_name
|
734
|
+
}
|
735
|
+
if results.length > 1
|
736
|
+
idx = results.index( node )
|
737
|
+
rv << "[#{idx+1}]"
|
738
|
+
end
|
739
|
+
end
|
740
|
+
rv
|
741
|
+
end
|
742
|
+
|
743
|
+
# A private helper method
|
744
|
+
def each_with_something( test, max=0, name=nil )
|
745
|
+
num = 0
|
746
|
+
@elements.each( name ){ |child|
|
747
|
+
yield child if test.call(child) and num += 1
|
748
|
+
return if max>0 and num == max
|
749
|
+
}
|
750
|
+
end
|
751
|
+
end
|
752
|
+
|
753
|
+
########################################################################
|
754
|
+
# ELEMENTS #
|
755
|
+
########################################################################
|
756
|
+
|
757
|
+
# A class which provides filtering of children for Elements, and
|
758
|
+
# XPath search support. You are expected to only encounter this class as
|
759
|
+
# the <tt>element.elements</tt> object. Therefore, you are
|
760
|
+
# _not_ expected to instantiate this yourself.
|
761
|
+
class Elements
|
762
|
+
include Enumerable
|
763
|
+
# Constructor
|
764
|
+
# parent:: the parent Element
|
765
|
+
def initialize parent
|
766
|
+
@element = parent
|
767
|
+
end
|
768
|
+
|
769
|
+
# Fetches a child element. Filters only Element children, regardless of
|
770
|
+
# the XPath match.
|
771
|
+
# index::
|
772
|
+
# the search parameter. This is either an Integer, which
|
773
|
+
# will be used to find the index'th child Element, or an XPath,
|
774
|
+
# which will be used to search for the Element. <em>Because
|
775
|
+
# of the nature of XPath searches, any element in the connected XML
|
776
|
+
# document can be fetched through any other element.</em> <b>The
|
777
|
+
# Integer index is 1-based, not 0-based.</b> This means that the first
|
778
|
+
# child element is at index 1, not 0, and the +n+th element is at index
|
779
|
+
# +n+, not <tt>n-1</tt>. This is because XPath indexes element children
|
780
|
+
# starting from 1, not 0, and the indexes should be the same.
|
781
|
+
# name::
|
782
|
+
# optional, and only used in the first argument is an
|
783
|
+
# Integer. In that case, the index'th child Element that has the
|
784
|
+
# supplied name will be returned. Note again that the indexes start at 1.
|
785
|
+
# Returns:: the first matching Element, or nil if no child matched
|
786
|
+
# doc = Document.new '<a><b/><c id="1"/><c id="2"/><d/></a>'
|
787
|
+
# doc.root.elements[1] #-> <b/>
|
788
|
+
# doc.root.elements['c'] #-> <c id="1"/>
|
789
|
+
# doc.root.elements[2,'c'] #-> <c id="2"/>
|
790
|
+
def []( index, name=nil)
|
791
|
+
if index.kind_of? Integer
|
792
|
+
raise "index (#{index}) must be >= 1" if index < 1
|
793
|
+
name = literalize(name) if name
|
794
|
+
num = 0
|
795
|
+
@element.find { |child|
|
796
|
+
child.kind_of? Element and
|
797
|
+
(name.nil? ? true : child.has_name?( name )) and
|
798
|
+
(num += 1) == index
|
799
|
+
}
|
800
|
+
else
|
801
|
+
return XPath::first( @element, index )
|
802
|
+
#{ |element|
|
803
|
+
# return element if element.kind_of? Element
|
804
|
+
#}
|
805
|
+
#return nil
|
806
|
+
end
|
807
|
+
end
|
808
|
+
|
809
|
+
# Sets an element, replacing any previous matching element. If no
|
810
|
+
# existing element is found ,the element is added.
|
811
|
+
# index:: Used to find a matching element to replace. See []().
|
812
|
+
# element::
|
813
|
+
# The element to replace the existing element with
|
814
|
+
# the previous element
|
815
|
+
# Returns:: nil if no previous element was found.
|
816
|
+
#
|
817
|
+
# doc = Document.new '<a/>'
|
818
|
+
# doc.root.elements[10] = Element.new('b') #-> <a><b/></a>
|
819
|
+
# doc.root.elements[1] #-> <b/>
|
820
|
+
# doc.root.elements[1] = Element.new('c') #-> <a><c/></a>
|
821
|
+
# doc.root.elements['c'] = Element.new('d') #-> <a><d/></a>
|
822
|
+
def []=( index, element )
|
823
|
+
previous = self[index]
|
824
|
+
if previous.nil?
|
825
|
+
@element.add element
|
826
|
+
else
|
827
|
+
previous.replace_with element
|
828
|
+
end
|
829
|
+
return previous
|
830
|
+
end
|
831
|
+
|
832
|
+
# Returns +true+ if there are no +Element+ children, +false+ otherwise
|
833
|
+
def empty?
|
834
|
+
@element.find{ |child| child.kind_of? Element}.nil?
|
835
|
+
end
|
836
|
+
|
837
|
+
# Returns the index of the supplied child (starting at 1), or -1 if
|
838
|
+
# the element is not a child
|
839
|
+
# element:: an +Element+ child
|
840
|
+
def index element
|
841
|
+
rv = 0
|
842
|
+
found = @element.find do |child|
|
843
|
+
child.kind_of? Element and
|
844
|
+
(rv += 1) and
|
845
|
+
child == element
|
846
|
+
end
|
847
|
+
return rv if found == element
|
848
|
+
return -1
|
849
|
+
end
|
850
|
+
|
851
|
+
# Deletes a child Element
|
852
|
+
# element::
|
853
|
+
# Either an Element, which is removed directly; an
|
854
|
+
# xpath, where the first matching child is removed; or an Integer,
|
855
|
+
# where the n'th Element is removed.
|
856
|
+
# Returns:: the removed child
|
857
|
+
# doc = Document.new '<a><b/><c/><c id="1"/></a>'
|
858
|
+
# b = doc.root.elements[1]
|
859
|
+
# doc.root.elements.delete b #-> <a><c/><c id="1"/></a>
|
860
|
+
# doc.elements.delete("a/c[@id='1']") #-> <a><c/></a>
|
861
|
+
# doc.root.elements.delete 1 #-> <a/>
|
862
|
+
def delete element
|
863
|
+
if element.kind_of? Element
|
864
|
+
@element.delete element
|
865
|
+
else
|
866
|
+
el = self[element]
|
867
|
+
el.remove if el
|
868
|
+
end
|
869
|
+
end
|
870
|
+
|
871
|
+
# Removes multiple elements. Filters for Element children, regardless of
|
872
|
+
# XPath matching.
|
873
|
+
# xpath:: all elements matching this String path are removed.
|
874
|
+
# Returns:: an Array of Elements that have been removed
|
875
|
+
# doc = Document.new '<a><c/><c/><c/><c/></a>'
|
876
|
+
# deleted = doc.elements.delete_all 'a/c' #-> [<c/>, <c/>, <c/>, <c/>]
|
877
|
+
def delete_all( xpath )
|
878
|
+
rv = []
|
879
|
+
XPath::each( @element, xpath) {|element|
|
880
|
+
rv << element if element.kind_of? Element
|
881
|
+
}
|
882
|
+
rv.each do |element|
|
883
|
+
@element.delete element
|
884
|
+
element.remove
|
885
|
+
end
|
886
|
+
return rv
|
887
|
+
end
|
888
|
+
|
889
|
+
# Adds an element
|
890
|
+
# element::
|
891
|
+
# if supplied, is either an Element, String, or
|
892
|
+
# Source (see Element.initialize). If not supplied or nil, a
|
893
|
+
# new, default Element will be constructed
|
894
|
+
# Returns:: the added Element
|
895
|
+
# a = Element.new('a')
|
896
|
+
# a.elements.add(Element.new('b')) #-> <a><b/></a>
|
897
|
+
# a.elements.add('c') #-> <a><b/><c/></a>
|
898
|
+
def add element=nil
|
899
|
+
if element.nil?
|
900
|
+
Element.new("", self, @element.context)
|
901
|
+
elsif not element.kind_of?(Element)
|
902
|
+
Element.new(element, self, @element.context)
|
903
|
+
else
|
904
|
+
@element << element
|
905
|
+
element.context = @element.context
|
906
|
+
element
|
907
|
+
end
|
908
|
+
end
|
909
|
+
|
910
|
+
alias :<< :add
|
911
|
+
|
912
|
+
# Iterates through all of the child Elements, optionally filtering
|
913
|
+
# them by a given XPath
|
914
|
+
# xpath::
|
915
|
+
# optional. If supplied, this is a String XPath, and is used to
|
916
|
+
# filter the children, so that only matching children are yielded. Note
|
917
|
+
# that XPaths are automatically filtered for Elements, so that
|
918
|
+
# non-Element children will not be yielded
|
919
|
+
# doc = Document.new '<a><b/><c/><d/>sean<b/><c/><d/></a>'
|
920
|
+
# doc.root.elements.each {|e|p e} #-> Yields b, c, d, b, c, d elements
|
921
|
+
# doc.root.elements.each('b') {|e|p e} #-> Yields b, b elements
|
922
|
+
# doc.root.elements.each('child::node()') {|e|p e}
|
923
|
+
# #-> Yields <b/>, <c/>, <d/>, <b/>, <c/>, <d/>
|
924
|
+
# XPath.each(doc.root, 'child::node()', &block)
|
925
|
+
# #-> Yields <b/>, <c/>, <d/>, sean, <b/>, <c/>, <d/>
|
926
|
+
def each( xpath=nil )
|
927
|
+
XPath::each( @element, xpath ) {|e| yield e if e.kind_of? Element }
|
928
|
+
end
|
929
|
+
|
930
|
+
def collect( xpath=nil )
|
931
|
+
collection = []
|
932
|
+
XPath::each( @element, xpath ) {|e|
|
933
|
+
collection << yield(e) if e.kind_of?(Element)
|
934
|
+
}
|
935
|
+
collection
|
936
|
+
end
|
937
|
+
|
938
|
+
def inject( xpath=nil, initial=nil )
|
939
|
+
first = true
|
940
|
+
XPath::each( @element, xpath ) {|e|
|
941
|
+
if (e.kind_of? Element)
|
942
|
+
if (first and initial == nil)
|
943
|
+
initial = e
|
944
|
+
first = false
|
945
|
+
else
|
946
|
+
initial = yield( initial, e ) if e.kind_of? Element
|
947
|
+
end
|
948
|
+
end
|
949
|
+
}
|
950
|
+
initial
|
951
|
+
end
|
952
|
+
|
953
|
+
# Returns the number of +Element+ children of the parent object.
|
954
|
+
# doc = Document.new '<a>sean<b/>elliott<b/>russell<b/></a>'
|
955
|
+
# doc.root.size #-> 6, 3 element and 3 text nodes
|
956
|
+
# doc.root.elements.size #-> 3
|
957
|
+
def size
|
958
|
+
count = 0
|
959
|
+
@element.each {|child| count+=1 if child.kind_of? Element }
|
960
|
+
count
|
961
|
+
end
|
962
|
+
|
963
|
+
# Returns an Array of Element children. An XPath may be supplied to
|
964
|
+
# filter the children. Only Element children are returned, even if the
|
965
|
+
# supplied XPath matches non-Element children.
|
966
|
+
# doc = Document.new '<a>sean<b/>elliott<c/></a>'
|
967
|
+
# doc.root.elements.to_a #-> [ <b/>, <c/> ]
|
968
|
+
# doc.root.elements.to_a("child::node()") #-> [ <b/>, <c/> ]
|
969
|
+
# XPath.match(doc.root, "child::node()") #-> [ sean, <b/>, elliott, <c/> ]
|
970
|
+
def to_a( xpath=nil )
|
971
|
+
rv = XPath.match( @element, xpath )
|
972
|
+
return rv.find_all{|e| e.kind_of? Element} if xpath
|
973
|
+
rv
|
974
|
+
end
|
975
|
+
|
976
|
+
private
|
977
|
+
# Private helper class. Removes quotes from quoted strings
|
978
|
+
def literalize name
|
979
|
+
name = name[1..-2] if name[0] == ?' or name[0] == ?" #'
|
980
|
+
name
|
981
|
+
end
|
982
|
+
end
|
983
|
+
|
984
|
+
########################################################################
|
985
|
+
# ATTRIBUTES #
|
986
|
+
########################################################################
|
987
|
+
|
988
|
+
# A class that defines the set of Attributes of an Element and provides
|
989
|
+
# operations for accessing elements in that set.
|
990
|
+
class Attributes < Hash
|
991
|
+
# Constructor
|
992
|
+
# element:: the Element of which this is an Attribute
|
993
|
+
def initialize element
|
994
|
+
@element = element
|
995
|
+
end
|
996
|
+
|
997
|
+
# Fetches an attribute value. If you want to get the Attribute itself,
|
998
|
+
# use get_attribute()
|
999
|
+
# name:: an XPath attribute name. Namespaces are relevant here.
|
1000
|
+
# Returns::
|
1001
|
+
# the String value of the matching attribute, or +nil+ if no
|
1002
|
+
# matching attribute was found. This is the unnormalized value
|
1003
|
+
# (with entities expanded).
|
1004
|
+
#
|
1005
|
+
# doc = Document.new "<a foo:att='1' bar:att='2' att='<'/>"
|
1006
|
+
# doc.root.attributes['att'] #-> '<'
|
1007
|
+
# doc.root.attributes['bar:att'] #-> '2'
|
1008
|
+
def [](name)
|
1009
|
+
attr = get_attribute(name)
|
1010
|
+
return attr.value unless attr.nil?
|
1011
|
+
return nil
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
def to_a
|
1015
|
+
enum_for(:each_attribute).to_a
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# Returns the number of attributes the owning Element contains.
|
1019
|
+
# doc = Document "<a x='1' y='2' foo:x='3'/>"
|
1020
|
+
# doc.root.attributes.length #-> 3
|
1021
|
+
def length
|
1022
|
+
c = 0
|
1023
|
+
each_attribute { c+=1 }
|
1024
|
+
c
|
1025
|
+
end
|
1026
|
+
alias :size :length
|
1027
|
+
|
1028
|
+
# Iterates over the attributes of an Element. Yields actual Attribute
|
1029
|
+
# nodes, not String values.
|
1030
|
+
#
|
1031
|
+
# doc = Document.new '<a x="1" y="2"/>'
|
1032
|
+
# doc.root.attributes.each_attribute {|attr|
|
1033
|
+
# p attr.expanded_name+" => "+attr.value
|
1034
|
+
# }
|
1035
|
+
def each_attribute # :yields: attribute
|
1036
|
+
return to_enum(__method__) unless block_given?
|
1037
|
+
each_value do |val|
|
1038
|
+
if val.kind_of? Attribute
|
1039
|
+
yield val
|
1040
|
+
else
|
1041
|
+
val.each_value { |atr| yield atr }
|
1042
|
+
end
|
1043
|
+
end
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
# Iterates over each attribute of an Element, yielding the expanded name
|
1047
|
+
# and value as a pair of Strings.
|
1048
|
+
#
|
1049
|
+
# doc = Document.new '<a x="1" y="2"/>'
|
1050
|
+
# doc.root.attributes.each {|name, value| p name+" => "+value }
|
1051
|
+
def each
|
1052
|
+
return to_enum(__method__) unless block_given?
|
1053
|
+
each_attribute do |attr|
|
1054
|
+
yield [attr.expanded_name, attr.value]
|
1055
|
+
end
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
# Fetches an attribute
|
1059
|
+
# name::
|
1060
|
+
# the name by which to search for the attribute. Can be a
|
1061
|
+
# <tt>prefix:name</tt> namespace name.
|
1062
|
+
# Returns:: The first matching attribute, or nil if there was none. This
|
1063
|
+
# value is an Attribute node, not the String value of the attribute.
|
1064
|
+
# doc = Document.new '<a x:foo="1" foo="2" bar="3"/>'
|
1065
|
+
# doc.root.attributes.get_attribute("foo").value #-> "2"
|
1066
|
+
# doc.root.attributes.get_attribute("x:foo").value #-> "1"
|
1067
|
+
def get_attribute( name )
|
1068
|
+
attr = fetch( name, nil )
|
1069
|
+
if attr.nil?
|
1070
|
+
return nil if name.nil?
|
1071
|
+
# Look for prefix
|
1072
|
+
name =~ Namespace::NAMESPLIT
|
1073
|
+
prefix, n = $1, $2
|
1074
|
+
if prefix
|
1075
|
+
attr = fetch( n, nil )
|
1076
|
+
# check prefix
|
1077
|
+
if attr == nil
|
1078
|
+
elsif attr.kind_of? Attribute
|
1079
|
+
return attr if prefix == attr.prefix
|
1080
|
+
else
|
1081
|
+
attr = attr[ prefix ]
|
1082
|
+
return attr
|
1083
|
+
end
|
1084
|
+
end
|
1085
|
+
element_document = @element.document
|
1086
|
+
if element_document and element_document.doctype
|
1087
|
+
expn = @element.expanded_name
|
1088
|
+
expn = element_document.doctype.name if expn.size == 0
|
1089
|
+
attr_val = element_document.doctype.attribute_of(expn, name)
|
1090
|
+
return Attribute.new( name, attr_val ) if attr_val
|
1091
|
+
end
|
1092
|
+
return nil
|
1093
|
+
end
|
1094
|
+
if attr.kind_of? Hash
|
1095
|
+
attr = attr[ @element.prefix ]
|
1096
|
+
end
|
1097
|
+
return attr
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# Sets an attribute, overwriting any existing attribute value by the
|
1101
|
+
# same name. Namespace is significant.
|
1102
|
+
# name:: the name of the attribute
|
1103
|
+
# value::
|
1104
|
+
# (optional) If supplied, the value of the attribute. If
|
1105
|
+
# nil, any existing matching attribute is deleted.
|
1106
|
+
# Returns::
|
1107
|
+
# Owning element
|
1108
|
+
# doc = Document.new "<a x:foo='1' foo='3'/>"
|
1109
|
+
# doc.root.attributes['y:foo'] = '2'
|
1110
|
+
# doc.root.attributes['foo'] = '4'
|
1111
|
+
# doc.root.attributes['x:foo'] = nil
|
1112
|
+
def []=( name, value )
|
1113
|
+
if value.nil? # Delete the named attribute
|
1114
|
+
attr = get_attribute(name)
|
1115
|
+
delete attr
|
1116
|
+
return
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
unless value.kind_of? Attribute
|
1120
|
+
if @element.document and @element.document.doctype
|
1121
|
+
value = Text::normalize( value, @element.document.doctype )
|
1122
|
+
else
|
1123
|
+
value = Text::normalize( value, nil )
|
1124
|
+
end
|
1125
|
+
value = Attribute.new(name, value)
|
1126
|
+
end
|
1127
|
+
value.element = @element
|
1128
|
+
old_attr = fetch(value.name, nil)
|
1129
|
+
if old_attr.nil?
|
1130
|
+
store(value.name, value)
|
1131
|
+
elsif old_attr.kind_of? Hash
|
1132
|
+
old_attr[value.prefix] = value
|
1133
|
+
elsif old_attr.prefix != value.prefix
|
1134
|
+
# Check for conflicting namespaces
|
1135
|
+
if value.prefix != "xmlns" and old_attr.prefix != "xmlns"
|
1136
|
+
old_namespace = old_attr.namespace
|
1137
|
+
new_namespace = value.namespace
|
1138
|
+
if old_namespace == new_namespace
|
1139
|
+
raise ParseException.new(
|
1140
|
+
"Namespace conflict in adding attribute \"#{value.name}\": "+
|
1141
|
+
"Prefix \"#{old_attr.prefix}\" = \"#{old_namespace}\" and "+
|
1142
|
+
"prefix \"#{value.prefix}\" = \"#{new_namespace}\"")
|
1143
|
+
end
|
1144
|
+
end
|
1145
|
+
store value.name, {old_attr.prefix => old_attr,
|
1146
|
+
value.prefix => value}
|
1147
|
+
else
|
1148
|
+
store value.name, value
|
1149
|
+
end
|
1150
|
+
return @element
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
# Returns an array of Strings containing all of the prefixes declared
|
1154
|
+
# by this set of # attributes. The array does not include the default
|
1155
|
+
# namespace declaration, if one exists.
|
1156
|
+
# doc = Document.new("<a xmlns='foo' xmlns:x='bar' xmlns:y='twee' "+
|
1157
|
+
# "z='glorp' p:k='gru'/>")
|
1158
|
+
# prefixes = doc.root.attributes.prefixes #-> ['x', 'y']
|
1159
|
+
def prefixes
|
1160
|
+
ns = []
|
1161
|
+
each_attribute do |attribute|
|
1162
|
+
ns << attribute.name if attribute.prefix == 'xmlns'
|
1163
|
+
end
|
1164
|
+
if @element.document and @element.document.doctype
|
1165
|
+
expn = @element.expanded_name
|
1166
|
+
expn = @element.document.doctype.name if expn.size == 0
|
1167
|
+
@element.document.doctype.attributes_of(expn).each {
|
1168
|
+
|attribute|
|
1169
|
+
ns << attribute.name if attribute.prefix == 'xmlns'
|
1170
|
+
}
|
1171
|
+
end
|
1172
|
+
ns
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
def namespaces
|
1176
|
+
namespaces = {}
|
1177
|
+
each_attribute do |attribute|
|
1178
|
+
namespaces[attribute.name] = attribute.value if attribute.prefix == 'xmlns' or attribute.name == 'xmlns'
|
1179
|
+
end
|
1180
|
+
if @element.document and @element.document.doctype
|
1181
|
+
expn = @element.expanded_name
|
1182
|
+
expn = @element.document.doctype.name if expn.size == 0
|
1183
|
+
@element.document.doctype.attributes_of(expn).each {
|
1184
|
+
|attribute|
|
1185
|
+
namespaces[attribute.name] = attribute.value if attribute.prefix == 'xmlns' or attribute.name == 'xmlns'
|
1186
|
+
}
|
1187
|
+
end
|
1188
|
+
namespaces
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
# Removes an attribute
|
1192
|
+
# attribute::
|
1193
|
+
# either a String, which is the name of the attribute to remove --
|
1194
|
+
# namespaces are significant here -- or the attribute to remove.
|
1195
|
+
# Returns:: the owning element
|
1196
|
+
# doc = Document.new "<a y:foo='0' x:foo='1' foo='3' z:foo='4'/>"
|
1197
|
+
# doc.root.attributes.delete 'foo' #-> <a y:foo='0' x:foo='1' z:foo='4'/>"
|
1198
|
+
# doc.root.attributes.delete 'x:foo' #-> <a y:foo='0' z:foo='4'/>"
|
1199
|
+
# attr = doc.root.attributes.get_attribute('y:foo')
|
1200
|
+
# doc.root.attributes.delete attr #-> <a z:foo='4'/>"
|
1201
|
+
def delete( attribute )
|
1202
|
+
name = nil
|
1203
|
+
prefix = nil
|
1204
|
+
if attribute.kind_of? Attribute
|
1205
|
+
name = attribute.name
|
1206
|
+
prefix = attribute.prefix
|
1207
|
+
else
|
1208
|
+
attribute =~ Namespace::NAMESPLIT
|
1209
|
+
prefix, name = $1, $2
|
1210
|
+
prefix = '' unless prefix
|
1211
|
+
end
|
1212
|
+
old = fetch(name, nil)
|
1213
|
+
if old.kind_of? Hash # the supplied attribute is one of many
|
1214
|
+
old.delete(prefix)
|
1215
|
+
if old.size == 1
|
1216
|
+
repl = nil
|
1217
|
+
old.each_value{|v| repl = v}
|
1218
|
+
store name, repl
|
1219
|
+
end
|
1220
|
+
elsif old.nil?
|
1221
|
+
return @element
|
1222
|
+
else # the supplied attribute is a top-level one
|
1223
|
+
super(name)
|
1224
|
+
end
|
1225
|
+
@element
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Adds an attribute, overriding any existing attribute by the
|
1229
|
+
# same name. Namespaces are significant.
|
1230
|
+
# attribute:: An Attribute
|
1231
|
+
def add( attribute )
|
1232
|
+
self[attribute.name] = attribute
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
alias :<< :add
|
1236
|
+
|
1237
|
+
# Deletes all attributes matching a name. Namespaces are significant.
|
1238
|
+
# name::
|
1239
|
+
# A String; all attributes that match this path will be removed
|
1240
|
+
# Returns:: an Array of the Attributes that were removed
|
1241
|
+
def delete_all( name )
|
1242
|
+
rv = []
|
1243
|
+
each_attribute { |attribute|
|
1244
|
+
rv << attribute if attribute.expanded_name == name
|
1245
|
+
}
|
1246
|
+
rv.each{ |attr| attr.remove }
|
1247
|
+
return rv
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
# The +get_attribute_ns+ method retrieves a method by its namespace
|
1251
|
+
# and name. Thus it is possible to reliably identify an attribute
|
1252
|
+
# even if an XML processor has changed the prefix.
|
1253
|
+
#
|
1254
|
+
# Method contributed by Henrik Martensson
|
1255
|
+
def get_attribute_ns(namespace, name)
|
1256
|
+
result = nil
|
1257
|
+
each_attribute() { |attribute|
|
1258
|
+
if name == attribute.name &&
|
1259
|
+
namespace == attribute.namespace() &&
|
1260
|
+
( !namespace.empty? || !attribute.fully_expanded_name.index(':') )
|
1261
|
+
# foo will match xmlns:foo, but only if foo isn't also an attribute
|
1262
|
+
result = attribute if !result or !namespace.empty? or
|
1263
|
+
!attribute.fully_expanded_name.index(':')
|
1264
|
+
end
|
1265
|
+
}
|
1266
|
+
result
|
1267
|
+
end
|
1268
|
+
end
|
1269
|
+
end
|