brakeman 5.2.2 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +153 -0
- data/README.md +9 -6
- data/bundle/load.rb +16 -15
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/LICENSE.txt +33 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/NEWS.md +1009 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/README.md +55 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/core_ext/array.rb +9 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/core_ext/string.rb +9 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/fields_converter.rb +96 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/input_record_separator.rb +18 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/parser.rb +1302 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/row.rb +757 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/table.rb +1055 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/version.rb +6 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv/writer.rb +209 -0
- data/bundle/ruby/3.1.0/gems/csv-3.3.5/lib/csv.rb +3017 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/CHANGELOG.md +1681 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/FAQ.md +147 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/Gemfile +34 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/MIT-LICENSE +20 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/README.md +205 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/REFERENCE.md +1309 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/exe/haml +6 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/haml.gemspec +45 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/ambles.rb +20 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/attribute_builder.rb +162 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/attribute_compiler.rb +133 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/attribute_parser.rb +116 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/cli.rb +154 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/compiler/children_compiler.rb +155 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/compiler/comment_compiler.rb +51 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/compiler/doctype_compiler.rb +52 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/compiler/script_compiler.rb +114 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/compiler/silent_script_compiler.rb +24 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/compiler/tag_compiler.rb +76 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/compiler.rb +97 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/dynamic_merger.rb +67 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/engine.rb +59 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/error.rb +66 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/escape.rb +13 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/escape_any.rb +21 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/base.rb +12 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/cdata.rb +20 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/coffee.rb +17 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/css.rb +33 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/erb.rb +10 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/escaped.rb +22 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/javascript.rb +33 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/less.rb +20 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/markdown.rb +11 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/plain.rb +29 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/preserve.rb +22 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/ruby.rb +10 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/sass.rb +15 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/scss.rb +15 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/text_base.rb +25 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters/tilt_base.rb +59 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/filters.rb +75 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/force_escape.rb +29 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/helpers.rb +15 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/html.rb +22 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/identity.rb +13 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/object_ref.rb +35 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/parser.rb +991 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/rails_helpers.rb +53 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/rails_template.rb +62 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/railtie.rb +10 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/ruby_expression.rb +32 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/string_splitter.rb +140 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/template.rb +20 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/temple_line_counter.rb +31 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/util.rb +262 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/version.rb +4 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml/whitespace.rb +8 -0
- data/bundle/ruby/3.1.0/gems/haml-6.4.0/lib/haml.rb +13 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/Changelog.md +658 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/Gemfile +21 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/README.md +240 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/highline.gemspec +40 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/io_console_compatible.rb +37 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/list_renderer.rb +261 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/menu.rb +578 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/question/answer_converter.rb +100 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/question.rb +640 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/question_asker.rb +152 -0
- data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/style.rb +0 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/terminal/io_console.rb +36 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/terminal/unix_stty.rb +53 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/terminal.rb +192 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline/version.rb +6 -0
- data/bundle/ruby/3.1.0/gems/highline-3.1.2/lib/highline.rb +676 -0
- data/bundle/ruby/3.1.0/gems/parallel-1.27.0/lib/parallel/version.rb +4 -0
- data/bundle/ruby/3.1.0/gems/parallel-1.27.0/lib/parallel.rb +708 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/COPYING +56 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/README.md +94 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/config.rb +378 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/face.rb +199 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/history.rb +76 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/io/ansi.rb +322 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/io/dumb.rb +120 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/io/windows.rb +530 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/io.rb +55 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/key_actor/base.rb +37 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/key_actor/composite.rb +17 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/key_actor/emacs.rb +517 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/key_actor/vi_command.rb +518 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/key_actor/vi_insert.rb +517 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/key_actor.rb +8 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/key_stroke.rb +119 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/kill_ring.rb +125 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/line_editor.rb +2356 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/unicode/east_asian_width.rb +1292 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/unicode.rb +421 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline/version.rb +3 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/lib/reline.rb +527 -0
- data/bundle/ruby/3.1.0/gems/reline-0.6.2/license_of_rb-readline +25 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/LICENSE.txt +22 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/NEWS.md +843 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/README.md +57 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/attribute.rb +210 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/cdata.rb +68 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/child.rb +96 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/comment.rb +80 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/doctype.rb +306 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/document.rb +471 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/element.rb +2578 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/encoding.rb +48 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/entity.rb +142 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/formatters/pretty.rb +142 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/functions.rb +446 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/instruction.rb +79 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/namespace.rb +63 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/node.rb +80 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/parseexception.rb +53 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/parsers/baseparser.rb +949 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/parsers/pullparser.rb +213 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/parsers/sax2parser.rb +270 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/parsers/streamparser.rb +67 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/parsers/treeparser.rb +89 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/parsers/xpathparser.rb +739 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/quickpath.rb +267 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/rexml.rb +39 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/security.rb +28 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/source.rb +388 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/text.rb +420 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/validation/relaxng.rb +540 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/validation/validation.rb +144 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/xpath.rb +70 -0
- data/bundle/ruby/3.1.0/gems/rexml-3.4.4/lib/rexml/xpath_parser.rb +980 -0
- data/bundle/ruby/3.1.0/gems/ruby2ruby-2.5.2/History.rdoc +463 -0
- data/bundle/ruby/3.1.0/gems/ruby2ruby-2.5.2/lib/ruby2ruby.rb +1448 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/History.rdoc +1345 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/Manifest.txt +48 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/README.rdoc +113 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/compare/normalize.rb +219 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby20_parser.rb +10956 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby20_parser.y +2707 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby21_parser.rb +10981 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby21_parser.y +2724 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby22_parser.rb +11122 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby22_parser.y +2735 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby23_parser.rb +11163 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby23_parser.y +2737 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby24_parser.rb +11212 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby24_parser.y +2745 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby25_parser.rb +11212 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby25_parser.y +2745 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby26_parser.rb +11234 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby26_parser.y +2760 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby27_parser.rb +12963 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby27_parser.y +3360 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby30_parser.rb +13316 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby30_parser.y +3508 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby31_parser.rb +13649 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby31_parser.y +3542 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby32_parser.rb +13601 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby32_parser.y +3543 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby3_parser.yy +3635 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby_lexer.rb +1159 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby_lexer.rex.rb +399 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby_lexer_strings.rb +638 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby_parser.rb +100 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby_parser.yy +3501 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/lib/ruby_parser_extras.rb +1878 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/tools/munge.rb +256 -0
- data/bundle/ruby/3.1.0/gems/ruby_parser-3.20.3/tools/ripper.rb +46 -0
- data/bundle/ruby/3.1.0/gems/sexp_processor-4.17.4/History.rdoc +493 -0
- data/bundle/ruby/3.1.0/gems/sexp_processor-4.17.4/lib/pt_testcase.rb +3137 -0
- data/bundle/ruby/3.1.0/gems/sexp_processor-4.17.4/lib/sexp.rb +397 -0
- data/bundle/ruby/3.1.0/gems/sexp_processor-4.17.4/lib/sexp_matcher.rb +1100 -0
- data/bundle/ruby/3.1.0/gems/sexp_processor-4.17.4/lib/sexp_processor.rb +754 -0
- data/bundle/ruby/3.1.0/gems/sexp_processor-4.17.4/lib/strict_sexp.rb +149 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/CHANGES +496 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/Gemfile +43 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/LICENSE +21 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/README.jp.md +1276 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/README.md +1313 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/code_attributes.rb +68 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/command.rb +122 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/controls.rb +61 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/do_inserter.rb +34 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/embedded.rb +248 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/end_inserter.rb +63 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/engine.rb +42 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/erb_converter.rb +15 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/filter.rb +31 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/grammar.rb +24 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/include.rb +58 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/interpolation.rb +36 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/logic_less/context.rb +126 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/logic_less/filter.rb +81 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/logic_less.rb +6 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/parser.rb +535 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/railtie.rb +19 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/smart/escaper.rb +42 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/smart/filter.rb +97 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/smart/parser.rb +35 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/smart.rb +9 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/splat/builder.rb +115 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/splat/filter.rb +93 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/template.rb +6 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/translator.rb +119 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim/version.rb +6 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/lib/slim.rb +16 -0
- data/bundle/ruby/3.1.0/gems/slim-5.2.1/slim.gemspec +33 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/CHANGES +302 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/Gemfile +2 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/README.md +267 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/engine.rb +68 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/erb/engine.rb +18 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/erb/parser.rb +41 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/erb/template.rb +12 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/erb/trimming.rb +24 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/exceptions.rb +14 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filter.rb +10 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/ambles.rb +22 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/code_merger.rb +31 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/control_flow.rb +43 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/dynamic_inliner.rb +72 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/dynamic_merger.rb +69 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/encoding.rb +25 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/eraser.rb +23 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/escapable.rb +41 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/multi_flattener.rb +26 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/remove_bom.rb +14 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/static_analyzer.rb +31 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/static_merger.rb +38 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/string_splitter.rb +142 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/filters/validator.rb +16 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/generator.rb +91 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/generators/array.rb +22 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/generators/array_buffer.rb +30 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/generators/erb.rb +33 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/generators/rails_output_buffer.rb +35 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/generators/string_buffer.rb +26 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/grammar.rb +58 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/html/attribute_merger.rb +43 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/html/attribute_remover.rb +36 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/html/attribute_sorter.rb +22 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/html/dispatcher.rb +32 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/html/fast.rb +131 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/html/filter.rb +22 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/html/pretty.rb +104 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/html/safe.rb +24 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/map.rb +106 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/mixins/dispatcher.rb +162 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/mixins/engine_dsl.rb +146 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/mixins/grammar_dsl.rb +172 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/mixins/options.rb +88 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/mixins/template.rb +29 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/parser.rb +9 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/static_analyzer.rb +78 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/templates/rails.rb +31 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/templates/tilt.rb +39 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/templates.rb +12 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/utils.rb +91 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple/version.rb +4 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/lib/temple.rb +70 -0
- data/bundle/ruby/3.1.0/gems/temple-0.10.4/temple.gemspec +27 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/History.rdoc +149 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/README.md +417 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/lib/terminal-table/cell.rb +94 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/lib/terminal-table/row.rb +66 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/lib/terminal-table/separator.rb +66 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/lib/terminal-table/style.rb +284 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/lib/terminal-table/table.rb +374 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/lib/terminal-table/util.rb +13 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/lib/terminal-table/version.rb +5 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/lib/terminal-table.rb +26 -0
- data/bundle/ruby/3.1.0/gems/terminal-table-4.0.0/terminal-table.gemspec +25 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/COPYING +19 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/_emacs_org.rb +2 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/_handlebars.rb +2 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/_jbuilder.rb +2 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/_org.rb +2 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/asciidoc.rb +15 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/babel.rb +8 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/builder.rb +42 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/cli.rb +134 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/coffee.rb +39 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/commonmarker.rb +95 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/creole.rb +16 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/csv.rb +53 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/erb.rb +65 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/erubi.rb +55 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/etanni.rb +28 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/haml.rb +94 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/kramdown.rb +13 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/liquid.rb +37 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/livescript.rb +11 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/mapping.rb +412 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/markaby.rb +43 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/nokogiri.rb +37 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/pandoc.rb +39 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/pipeline.rb +19 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/plain.rb +5 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/prawn.rb +28 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/radius.rb +41 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/rdiscount.rb +23 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/rdoc.rb +11 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/redcarpet.rb +31 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/redcloth.rb +13 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/rst-pandoc.rb +10 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/sass.rb +78 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/slim.rb +5 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/string.rb +27 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/template.rb +611 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/typescript.rb +19 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt/yajl.rb +81 -0
- data/bundle/ruby/3.1.0/gems/tilt-2.6.1/lib/tilt.rb +192 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/CHANGELOG.md +299 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/MIT-LICENSE.txt +22 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/README.md +194 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/data/display_width.marshal.gz +0 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/lib/unicode/display_width/constants.rb +10 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/lib/unicode/display_width/emoji_support.rb +55 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/lib/unicode/display_width/index.rb +34 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/lib/unicode/display_width/no_string_ext.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/lib/unicode/display_width/reline_ext.rb +14 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/lib/unicode/display_width/string_ext.rb +9 -0
- data/bundle/ruby/3.1.0/gems/unicode-display_width-3.2.0/lib/unicode/display_width.rb +247 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/CHANGELOG.md +196 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/CODE_OF_CONDUCT.md +74 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/Gemfile +7 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/Gemfile.lock +33 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/MIT-LICENSE.txt +20 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/README.md +205 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/data/emoji.marshal.gz +0 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/data/generate_constants.rb +344 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/constants.rb +49 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_basic.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_emoji_keycap.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_include_mqe.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_include_mqe_uqe.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_include_text.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_picto.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_picto_no_emoji.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_possible.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_prop_component.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_prop_emoji.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_prop_modifier.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_prop_modifier_base.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_prop_presentation.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_text.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_text_presentation.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_valid.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_valid_include_text.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_well_formed.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated/regex_well_formed_include_text.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_basic.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_emoji_keycap.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_include_mqe.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_include_mqe_uqe.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_include_text.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_picto.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_picto_no_emoji.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_possible.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_prop_component.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_prop_emoji.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_prop_modifier.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_prop_modifier_base.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_prop_presentation.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_text.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_text_presentation.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_valid.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_valid_include_text.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_well_formed.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/generated_native/regex_well_formed_include_text.rb +8 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/index.rb +14 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/lazy_constants.rb +56 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji/list.rb +13 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/lib/unicode/emoji.rb +111 -0
- data/bundle/ruby/3.1.0/gems/unicode-emoji-4.1.0/unicode-emoji.gemspec +22 -0
- data/lib/brakeman/app_tree.rb +98 -19
- data/lib/brakeman/checks/base_check.rb +7 -5
- data/lib/brakeman/checks/check_basic_auth.rb +4 -2
- data/lib/brakeman/checks/check_basic_auth_timing_attack.rb +2 -1
- data/lib/brakeman/checks/check_content_tag.rb +16 -9
- data/lib/brakeman/checks/check_cookie_serialization.rb +2 -1
- data/lib/brakeman/checks/check_create_with.rb +4 -2
- data/lib/brakeman/checks/check_cross_site_scripting.rb +6 -3
- data/lib/brakeman/checks/check_csrf_token_forgery_cve.rb +2 -1
- data/lib/brakeman/checks/check_default_routes.rb +6 -3
- data/lib/brakeman/checks/check_deserialize.rb +6 -2
- data/lib/brakeman/checks/check_detailed_exceptions.rb +4 -2
- data/lib/brakeman/checks/check_digest_dos.rb +2 -1
- data/lib/brakeman/checks/check_divide_by_zero.rb +2 -1
- data/lib/brakeman/checks/check_dynamic_finders.rb +2 -1
- data/lib/brakeman/checks/check_eol_rails.rb +7 -0
- data/lib/brakeman/checks/check_eol_ruby.rb +5 -1
- data/lib/brakeman/checks/check_escape_function.rb +2 -1
- data/lib/brakeman/checks/check_evaluation.rb +45 -7
- data/lib/brakeman/checks/check_execute.rb +34 -3
- data/lib/brakeman/checks/check_file_access.rb +2 -1
- data/lib/brakeman/checks/check_file_disclosure.rb +2 -1
- data/lib/brakeman/checks/check_filter_skipping.rb +2 -1
- data/lib/brakeman/checks/check_force_ssl.rb +2 -1
- data/lib/brakeman/checks/check_forgery_setting.rb +4 -2
- data/lib/brakeman/checks/check_header_dos.rb +2 -1
- data/lib/brakeman/checks/check_i18n_xss.rb +2 -1
- data/lib/brakeman/checks/check_jruby_xml.rb +2 -1
- data/lib/brakeman/checks/check_json_encoding.rb +2 -1
- data/lib/brakeman/checks/check_json_entity_escape.rb +4 -2
- data/lib/brakeman/checks/check_json_parsing.rb +4 -2
- data/lib/brakeman/checks/check_link_to.rb +2 -1
- data/lib/brakeman/checks/check_link_to_href.rb +4 -2
- data/lib/brakeman/checks/check_mail_to.rb +2 -1
- data/lib/brakeman/checks/check_mass_assignment.rb +6 -3
- data/lib/brakeman/checks/check_mime_type_dos.rb +2 -1
- data/lib/brakeman/checks/check_model_attr_accessible.rb +3 -1
- data/lib/brakeman/checks/check_model_attributes.rb +4 -2
- data/lib/brakeman/checks/check_model_serialize.rb +2 -1
- data/lib/brakeman/checks/check_nested_attributes.rb +2 -1
- data/lib/brakeman/checks/check_nested_attributes_bypass.rb +2 -1
- data/lib/brakeman/checks/check_number_to_currency.rb +4 -2
- data/lib/brakeman/checks/check_page_caching_cve.rb +2 -1
- data/lib/brakeman/checks/check_pathname.rb +48 -0
- data/lib/brakeman/checks/check_permit_attributes.rb +2 -1
- data/lib/brakeman/checks/check_quote_table_name.rb +2 -1
- data/lib/brakeman/checks/check_ransack.rb +53 -0
- data/lib/brakeman/checks/check_redirect.rb +67 -31
- data/lib/brakeman/checks/check_regex_dos.rb +2 -1
- data/lib/brakeman/checks/check_render.rb +15 -3
- data/lib/brakeman/checks/check_render_dos.rb +2 -1
- data/lib/brakeman/checks/check_render_inline.rb +4 -2
- data/lib/brakeman/checks/check_response_splitting.rb +2 -1
- data/lib/brakeman/checks/check_reverse_tabnabbing.rb +2 -1
- data/lib/brakeman/checks/check_route_dos.rb +2 -1
- data/lib/brakeman/checks/check_safe_buffer_manipulation.rb +2 -1
- data/lib/brakeman/checks/check_sanitize_config_cve.rb +120 -0
- data/lib/brakeman/checks/check_sanitize_methods.rb +6 -3
- data/lib/brakeman/checks/check_secrets.rb +2 -1
- data/lib/brakeman/checks/check_select_tag.rb +2 -1
- data/lib/brakeman/checks/check_select_vulnerability.rb +2 -1
- data/lib/brakeman/checks/check_send.rb +2 -1
- data/lib/brakeman/checks/check_session_manipulation.rb +2 -1
- data/lib/brakeman/checks/check_session_settings.rb +8 -6
- data/lib/brakeman/checks/check_simple_format.rb +4 -2
- data/lib/brakeman/checks/check_single_quotes.rb +2 -1
- data/lib/brakeman/checks/check_skip_before_filter.rb +4 -2
- data/lib/brakeman/checks/check_sprockets_path_traversal.rb +2 -1
- data/lib/brakeman/checks/check_sql.rb +14 -5
- data/lib/brakeman/checks/check_sql_cves.rb +4 -2
- data/lib/brakeman/checks/check_ssl_verify.rb +2 -1
- data/lib/brakeman/checks/check_strip_tags.rb +6 -3
- data/lib/brakeman/checks/check_symbol_dos.rb +2 -1
- data/lib/brakeman/checks/check_symbol_dos_cve.rb +2 -1
- data/lib/brakeman/checks/check_template_injection.rb +2 -1
- data/lib/brakeman/checks/check_translate_bug.rb +2 -1
- data/lib/brakeman/checks/check_unsafe_reflection.rb +2 -1
- data/lib/brakeman/checks/check_unsafe_reflection_methods.rb +2 -1
- data/lib/brakeman/checks/check_unscoped_find.rb +10 -1
- data/lib/brakeman/checks/check_validation_regex.rb +2 -1
- data/lib/brakeman/checks/check_verb_confusion.rb +2 -1
- data/lib/brakeman/checks/check_weak_hash.rb +6 -3
- data/lib/brakeman/checks/check_weak_rsa_key.rb +112 -0
- data/lib/brakeman/checks/check_without_protection.rb +2 -1
- data/lib/brakeman/checks/check_xml_dos.rb +2 -1
- data/lib/brakeman/checks/check_yaml_parsing.rb +4 -2
- data/lib/brakeman/checks/eol_check.rb +4 -2
- data/lib/brakeman/commandline.rb +5 -0
- data/lib/brakeman/file_parser.rb +35 -2
- data/lib/brakeman/file_path.rb +4 -0
- data/lib/brakeman/messages.rb +1 -1
- data/lib/brakeman/options.rb +50 -5
- data/lib/brakeman/parsers/erubis_patch.rb +11 -0
- data/lib/brakeman/parsers/haml6_embedded.rb +23 -0
- data/lib/brakeman/parsers/rails2_erubis.rb +3 -0
- data/lib/brakeman/parsers/rails2_xss_plugin_erubis.rb +4 -0
- data/lib/brakeman/parsers/rails3_erubis.rb +5 -1
- data/lib/brakeman/parsers/slim_embedded.rb +2 -0
- data/lib/brakeman/parsers/template_parser.rb +32 -7
- data/lib/brakeman/processor.rb +2 -0
- data/lib/brakeman/processors/alias_processor.rb +160 -44
- data/lib/brakeman/processors/base_processor.rb +2 -0
- data/lib/brakeman/processors/gem_processor.rb +2 -2
- data/lib/brakeman/processors/haml6_template_processor.rb +92 -0
- data/lib/brakeman/processors/haml_template_processor.rb +8 -2
- data/lib/brakeman/processors/lib/file_type_detector.rb +9 -7
- data/lib/brakeman/processors/lib/find_all_calls.rb +1 -0
- data/lib/brakeman/processors/lib/module_helper.rb +31 -1
- data/lib/brakeman/processors/lib/rails3_config_processor.rb +1 -1
- data/lib/brakeman/processors/lib/render_helper.rb +38 -1
- data/lib/brakeman/processors/library_processor.rb +6 -0
- data/lib/brakeman/processors/template_processor.rb +1 -1
- data/lib/brakeman/report/ignore/config.rb +0 -1
- data/lib/brakeman/report/ignore/interactive.rb +2 -2
- data/lib/brakeman/report/pager.rb +2 -2
- data/lib/brakeman/report/report_codeclimate.rb +1 -1
- data/lib/brakeman/report/report_csv.rb +2 -0
- data/lib/brakeman/report/report_github.rb +1 -1
- data/lib/brakeman/report/report_html.rb +1 -1
- data/lib/brakeman/report/report_junit.rb +6 -59
- data/lib/brakeman/report/report_markdown.rb +1 -1
- data/lib/brakeman/report/report_sarif.rb +122 -2
- data/lib/brakeman/report/report_table.rb +7 -7
- data/lib/brakeman/report/report_tabs.rb +0 -1
- data/lib/brakeman/report/report_text.rb +10 -1
- data/lib/brakeman/report/templates/controller_warnings.html.erb +2 -0
- data/lib/brakeman/report/templates/header.html.erb +8 -3
- data/lib/brakeman/report/templates/ignored_warnings.html.erb +5 -3
- data/lib/brakeman/report/templates/model_warnings.html.erb +2 -0
- data/lib/brakeman/report/templates/security_warnings.html.erb +2 -0
- data/lib/brakeman/report/templates/view_warnings.html.erb +2 -0
- data/lib/brakeman/rescanner.rb +40 -388
- data/lib/brakeman/scanner.rb +182 -88
- data/lib/brakeman/tracker/config.rb +89 -34
- data/lib/brakeman/tracker/controller.rb +14 -10
- data/lib/brakeman/tracker/file_cache.rb +83 -0
- data/lib/brakeman/tracker.rb +27 -4
- data/lib/brakeman/util.rb +21 -7
- data/lib/brakeman/version.rb +1 -1
- data/lib/brakeman/warning.rb +6 -3
- data/lib/brakeman/warning_codes.rb +6 -0
- data/lib/brakeman.rb +33 -7
- data/lib/ruby_parser/bm_sexp.rb +5 -1
- metadata +515 -422
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/CHANGELOG.md +0 -1505
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/FAQ.md +0 -147
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/Gemfile +0 -16
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/MIT-LICENSE +0 -20
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/README.md +0 -216
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/REFERENCE.md +0 -1380
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/TODO +0 -24
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/haml.gemspec +0 -45
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/attribute_builder.rb +0 -219
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/attribute_compiler.rb +0 -237
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/attribute_parser.rb +0 -150
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/buffer.rb +0 -182
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/compiler.rb +0 -330
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/engine.rb +0 -238
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/error.rb +0 -65
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/escapable.rb +0 -77
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/exec.rb +0 -347
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/filters.rb +0 -399
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/generator.rb +0 -42
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/helpers/action_view_extensions.rb +0 -60
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/helpers/action_view_mods.rb +0 -132
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/helpers/action_view_xss_mods.rb +0 -60
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/helpers/safe_erubi_template.rb +0 -20
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/helpers/safe_erubis_template.rb +0 -33
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/helpers/xss_mods.rb +0 -114
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/helpers.rb +0 -709
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/options.rb +0 -273
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/parser.rb +0 -856
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/plugin.rb +0 -54
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/railtie.rb +0 -53
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/sass_rails_filter.rb +0 -47
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template/options.rb +0 -27
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/template.rb +0 -39
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/temple_engine.rb +0 -124
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/temple_line_counter.rb +0 -30
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/util.rb +0 -258
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/version.rb +0 -5
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml.rb +0 -25
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/yard/default/fulldoc/html/css/common.sass +0 -15
- data/bundle/ruby/2.7.0/gems/haml-5.2.2/yard/default/layout/html/footer.erb +0 -12
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/Changelog.md +0 -620
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/Gemfile +0 -22
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/README.md +0 -202
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/appveyor.yml +0 -37
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/highline.gemspec +0 -35
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/io_console_compatible.rb +0 -37
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/list_renderer.rb +0 -261
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/menu.rb +0 -576
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question/answer_converter.rb +0 -103
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question.rb +0 -630
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/question_asker.rb +0 -150
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/io_console.rb +0 -36
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal/unix_stty.rb +0 -51
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal.rb +0 -190
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/version.rb +0 -6
- data/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline.rb +0 -650
- data/bundle/ruby/2.7.0/gems/parallel-1.22.1/lib/parallel/processor_count.rb +0 -44
- data/bundle/ruby/2.7.0/gems/parallel-1.22.1/lib/parallel/version.rb +0 -4
- data/bundle/ruby/2.7.0/gems/parallel-1.22.1/lib/parallel.rb +0 -612
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/NEWS.md +0 -178
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/README.md +0 -48
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/attribute.rb +0 -205
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/cdata.rb +0 -68
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/child.rb +0 -97
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/comment.rb +0 -80
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/doctype.rb +0 -311
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/document.rb +0 -451
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/element.rb +0 -2599
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/encoding.rb +0 -51
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/entity.rb +0 -171
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/formatters/pretty.rb +0 -142
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/functions.rb +0 -447
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/instruction.rb +0 -79
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/namespace.rb +0 -59
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/node.rb +0 -76
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/parseexception.rb +0 -52
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb +0 -694
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/parsers/pullparser.rb +0 -197
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/parsers/sax2parser.rb +0 -273
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/parsers/streamparser.rb +0 -61
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/parsers/treeparser.rb +0 -101
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/parsers/xpathparser.rb +0 -689
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/quickpath.rb +0 -266
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/rexml.rb +0 -37
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/security.rb +0 -28
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/source.rb +0 -298
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/text.rb +0 -424
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/validation/relaxng.rb +0 -539
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/validation/validation.rb +0 -144
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/xpath.rb +0 -81
- data/bundle/ruby/2.7.0/gems/rexml-3.2.5/lib/rexml/xpath_parser.rb +0 -974
- data/bundle/ruby/2.7.0/gems/ruby2ruby-2.4.4/History.rdoc +0 -435
- data/bundle/ruby/2.7.0/gems/ruby2ruby-2.4.4/lib/ruby2ruby.rb +0 -1309
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/History.rdoc +0 -1297
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/Manifest.txt +0 -46
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/README.rdoc +0 -112
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/compare/normalize.rb +0 -218
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby20_parser.rb +0 -10973
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby20_parser.y +0 -2683
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby21_parser.rb +0 -10980
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby21_parser.y +0 -2700
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby22_parser.rb +0 -11123
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby22_parser.y +0 -2711
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby23_parser.rb +0 -11132
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby23_parser.y +0 -2713
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby24_parser.rb +0 -11231
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby24_parser.y +0 -2721
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby25_parser.rb +0 -11231
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby25_parser.y +0 -2721
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby26_parser.rb +0 -11253
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby26_parser.y +0 -2736
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby27_parser.rb +0 -12980
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby27_parser.y +0 -3324
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby30_parser.rb +0 -13242
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby30_parser.y +0 -3447
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby31_parser.rb +0 -13622
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby31_parser.y +0 -3481
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby3_parser.yy +0 -3536
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby_lexer.rb +0 -1144
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby_lexer.rex.rb +0 -399
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby_lexer_strings.rb +0 -638
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby_parser.rb +0 -98
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby_parser.yy +0 -3465
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/lib/ruby_parser_extras.rb +0 -1865
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/tools/munge.rb +0 -250
- data/bundle/ruby/2.7.0/gems/ruby_parser-3.19.1/tools/ripper.rb +0 -44
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/History.rdoc +0 -6
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/Manifest.txt +0 -19
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/README.rdoc +0 -54
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby18_parser.rb +0 -5794
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby18_parser.y +0 -1909
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby19_parser.rb +0 -6186
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby19_parser.y +0 -2117
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rb +0 -1412
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rex +0 -179
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_lexer.rex.rb +0 -323
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser.rb +0 -30
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy/ruby_parser_extras.rb +0 -1388
- data/bundle/ruby/2.7.0/gems/ruby_parser-legacy-1.0.0/lib/ruby_parser/legacy.rb +0 -5
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/CHANGES.md +0 -154
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/Gemfile +0 -11
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/LICENSE.txt +0 -22
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/README.md +0 -191
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/bundle_install_all_ruby_versions.sh +0 -11
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/deep.rb +0 -34
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/libyaml_checker.rb +0 -36
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb +0 -181
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb +0 -37
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/hexadecimal.rb +0 -12
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/sexagesimal.rb +0 -26
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_handler.rb +0 -99
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_resolver.rb +0 -52
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/resolver.rb +0 -94
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -29
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +0 -39
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_hack.rb +0 -36
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_node_monkeypatch.rb +0 -43
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_resolver.rb +0 -38
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_boolean.rb +0 -21
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_date.rb +0 -13
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_float.rb +0 -33
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_integer.rb +0 -26
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_nil.rb +0 -18
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_symbol.rb +0 -17
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/transformation_map.rb +0 -47
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform.rb +0 -41
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb +0 -3
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb +0 -94
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/run_specs_all_ruby_versions.sh +0 -38
- data/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/safe_yaml.gemspec +0 -19
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/History.rdoc +0 -448
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/lib/pt_testcase.rb +0 -3133
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/lib/sexp.rb +0 -391
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/lib/sexp_matcher.rb +0 -1100
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/lib/sexp_processor.rb +0 -754
- data/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/lib/strict_sexp.rb +0 -148
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/CHANGES +0 -460
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/Gemfile +0 -70
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/LICENSE +0 -21
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/README.jp.md +0 -1289
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/README.md +0 -1290
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/code_attributes.rb +0 -67
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/command.rb +0 -128
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/controls.rb +0 -60
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/do_inserter.rb +0 -33
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/embedded.rb +0 -248
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/end_inserter.rb +0 -62
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/engine.rb +0 -39
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/erb_converter.rb +0 -14
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/filter.rb +0 -30
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/grammar.rb +0 -23
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/include.rb +0 -57
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/interpolation.rb +0 -35
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/logic_less/context.rb +0 -127
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/logic_less/filter.rb +0 -80
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/logic_less.rb +0 -5
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/parser.rb +0 -548
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/smart/escaper.rb +0 -42
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/smart/filter.rb +0 -96
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/smart/parser.rb +0 -34
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/smart.rb +0 -8
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/splat/builder.rb +0 -107
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/splat/filter.rb +0 -91
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/template.rb +0 -19
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/translator.rb +0 -118
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim/version.rb +0 -5
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/lib/slim.rb +0 -14
- data/bundle/ruby/2.7.0/gems/slim-4.1.0/slim.gemspec +0 -24
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/CHANGES +0 -260
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/Gemfile +0 -3
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/README.md +0 -267
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/engine.rb +0 -67
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/erb/engine.rb +0 -15
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/erb/parser.rb +0 -40
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/erb/template.rb +0 -11
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/erb/trimming.rb +0 -23
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/exceptions.rb +0 -13
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filter.rb +0 -9
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/code_merger.rb +0 -30
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/control_flow.rb +0 -42
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/dynamic_inliner.rb +0 -71
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/encoding.rb +0 -24
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/eraser.rb +0 -22
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/escapable.rb +0 -40
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/multi_flattener.rb +0 -25
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/remove_bom.rb +0 -13
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/static_analyzer.rb +0 -30
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/static_merger.rb +0 -37
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/string_splitter.rb +0 -130
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/validator.rb +0 -15
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/generator.rb +0 -88
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/generators/array.rb +0 -21
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/generators/array_buffer.rb +0 -29
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/generators/erb.rb +0 -32
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/generators/rails_output_buffer.rb +0 -35
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/generators/string_buffer.rb +0 -25
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/grammar.rb +0 -57
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/attribute_merger.rb +0 -42
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/attribute_remover.rb +0 -35
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/attribute_sorter.rb +0 -21
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/dispatcher.rb +0 -31
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/fast.rb +0 -130
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/filter.rb +0 -21
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/pretty.rb +0 -103
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb +0 -23
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/map.rb +0 -105
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/mixins/dispatcher.rb +0 -161
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb +0 -145
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/mixins/grammar_dsl.rb +0 -170
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/mixins/options.rb +0 -87
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/mixins/template.rb +0 -28
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/parser.rb +0 -8
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/static_analyzer.rb +0 -77
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/templates/rails.rb +0 -26
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/templates/tilt.rb +0 -46
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/templates.rb +0 -11
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/utils.rb +0 -101
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/version.rb +0 -3
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple.rb +0 -67
- data/bundle/ruby/2.7.0/gems/temple-0.8.2/temple.gemspec +0 -29
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/History.rdoc +0 -85
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/README.rdoc +0 -247
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/cell.rb +0 -94
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/row.rb +0 -52
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb +0 -14
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/style.rb +0 -79
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/table.rb +0 -343
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/version.rb +0 -5
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table.rb +0 -26
- data/bundle/ruby/2.7.0/gems/terminal-table-1.8.0/terminal-table.gemspec +0 -26
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/COPYING +0 -18
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/asciidoc.rb +0 -27
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/babel.rb +0 -16
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/bluecloth.rb +0 -24
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/builder.rb +0 -37
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/coffee.rb +0 -58
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/commonmarker.rb +0 -78
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/creole.rb +0 -25
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/csv.rb +0 -65
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/dummy.rb +0 -3
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/erb.rb +0 -63
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/erubi.rb +0 -32
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/erubis.rb +0 -43
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/etanni.rb +0 -27
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/haml.rb +0 -86
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/kramdown.rb +0 -25
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/less.rb +0 -30
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/liquid.rb +0 -44
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/livescript.rb +0 -23
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/mapping.rb +0 -293
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/markaby.rb +0 -45
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/maruku.rb +0 -22
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/nokogiri.rb +0 -36
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/pandoc.rb +0 -49
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/plain.rb +0 -16
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/prawn.rb +0 -43
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/radius.rb +0 -48
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/rdiscount.rb +0 -39
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/rdoc.rb +0 -40
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/redcarpet.rb +0 -83
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/redcloth.rb +0 -23
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/rst-pandoc.rb +0 -18
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/sass.rb +0 -52
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/sigil.rb +0 -34
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/string.rb +0 -21
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/template.rb +0 -297
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/typescript.rb +0 -26
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/wikicloth.rb +0 -22
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt/yajl.rb +0 -87
- data/bundle/ruby/2.7.0/gems/tilt-2.0.10/lib/tilt.rb +0 -166
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/CHANGELOG.md +0 -137
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/MIT-LICENSE.txt +0 -22
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/README.md +0 -124
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/data/display_width.marshal.gz +0 -0
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/constants.rb +0 -8
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/index.rb +0 -12
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/no_string_ext.rb +0 -7
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width/string_ext.rb +0 -17
- data/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width.rb +0 -51
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/CHANGES.txt +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/MIT-LICENSE +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/README.txt +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/contrib/erubis +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/contrib/erubis-run.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/contrib/inline-require +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/context.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/converter.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ec.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ecpp.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ejava.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ejavascript.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/enhanced.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/eperl.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/ephp.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/eruby.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/escheme.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine/optimized.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/engine.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/enhancer.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/error.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/evaluator.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/generator.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/helper.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_form_helper.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/helpers/rails_helper.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/local-setting.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/main.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/preprocessing.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/tiny.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis/util.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/lib/erubis.rb +0 -0
- /data/bundle/ruby/{2.7.0 → 3.1.0}/gems/erubis-2.7.0/setup.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/AUTHORS +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/COPYING +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/LICENSE +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/TODO +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/builtin_styles.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/color_scheme.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/compatibility.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/custom_errors.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/import.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/list.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/menu/item.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/paginator.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/simulate.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/statement.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/string.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/string_extensions.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/template_renderer.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/terminal/ncurses.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/highline-2.0.3 → 3.1.0/gems/highline-3.1.2}/lib/highline/wrapper.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/parallel-1.22.1 → 3.1.0/gems/parallel-1.27.0}/MIT-LICENSE.txt +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5/LICENSE.txt → 3.1.0/gems/reline-0.6.2/BSDL} +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/attlistdecl.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/dtd/attlistdecl.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/dtd/dtd.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/dtd/elementdecl.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/dtd/entitydecl.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/dtd/notationdecl.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/formatters/default.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/formatters/transitive.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/light/node.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/output.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/parent.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/parsers/lightparser.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/parsers/ultralightparser.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/sax2listener.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/streamlistener.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/undefinednamespaceexception.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/validation/validationexception.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/xmldecl.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml/xmltokens.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/rexml-3.2.5 → 3.1.0/gems/rexml-3.4.4}/lib/rexml.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/ruby2ruby-2.4.4 → 3.1.0/gems/ruby2ruby-2.5.2}/Manifest.txt +0 -0
- /data/bundle/ruby/{2.7.0/gems/ruby2ruby-2.4.4 → 3.1.0/gems/ruby2ruby-2.5.2}/README.rdoc +0 -0
- /data/bundle/ruby/{2.7.0/gems/ruby_parser-3.19.1 → 3.1.0/gems/ruby_parser-3.20.3}/debugging.md +0 -0
- /data/bundle/ruby/{2.7.0/gems/ruby_parser-3.19.1 → 3.1.0/gems/ruby_parser-3.20.3}/gauntlet.md +0 -0
- /data/bundle/ruby/{2.7.0/gems/ruby_parser-3.19.1 → 3.1.0/gems/ruby_parser-3.20.3}/lib/rp_extensions.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/ruby_parser-3.19.1 → 3.1.0/gems/ruby_parser-3.20.3}/lib/rp_stringscanner.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/ruby_parser-3.19.1 → 3.1.0/gems/ruby_parser-3.20.3}/lib/ruby_lexer.rex +0 -0
- /data/bundle/ruby/{2.7.0/gems/sexp_processor-4.16.0 → 3.1.0/gems/sexp_processor-4.17.4}/Manifest.txt +0 -0
- /data/bundle/ruby/{2.7.0/gems/sexp_processor-4.16.0 → 3.1.0/gems/sexp_processor-4.17.4}/README.rdoc +0 -0
- /data/bundle/ruby/{2.7.0/gems/sexp_processor-4.16.0 → 3.1.0/gems/sexp_processor-4.17.4}/lib/composite_sexp_processor.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/sexp_processor-4.16.0 → 3.1.0/gems/sexp_processor-4.17.4}/lib/unique.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/temple-0.8.2 → 3.1.0/gems/temple-0.10.4}/EXPRESSIONS.md +0 -0
- /data/bundle/ruby/{2.7.0/gems/temple-0.8.2 → 3.1.0/gems/temple-0.10.4}/LICENSE +0 -0
- /data/bundle/ruby/{2.7.0/gems/terminal-table-1.8.0 → 3.1.0/gems/terminal-table-4.0.0}/Gemfile +0 -0
- /data/bundle/ruby/{2.7.0/gems/terminal-table-1.8.0 → 3.1.0/gems/terminal-table-4.0.0}/LICENSE.txt +0 -0
- /data/bundle/ruby/{2.7.0/gems/terminal-table-1.8.0 → 3.1.0/gems/terminal-table-4.0.0}/Manifest +0 -0
- /data/bundle/ruby/{2.7.0/gems/terminal-table-1.8.0 → 3.1.0/gems/terminal-table-4.0.0}/Todo.rdoc +0 -0
- /data/bundle/ruby/{2.7.0/gems/terminal-table-1.8.0 → 3.1.0/gems/terminal-table-4.0.0}/lib/terminal-table/import.rb +0 -0
- /data/bundle/ruby/{2.7.0/gems/terminal-table-1.8.0 → 3.1.0/gems/terminal-table-4.0.0}/lib/terminal-table/table_helper.rb +0 -0
|
@@ -1,1144 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# encoding: UTF-8
|
|
3
|
-
|
|
4
|
-
$DEBUG = true if ENV["DEBUG"]
|
|
5
|
-
|
|
6
|
-
class RubyLexer
|
|
7
|
-
# :stopdoc:
|
|
8
|
-
EOF = :eof_haha!
|
|
9
|
-
|
|
10
|
-
ESCAPES = {
|
|
11
|
-
"a" => "\007",
|
|
12
|
-
"b" => "\010",
|
|
13
|
-
"e" => "\033",
|
|
14
|
-
"f" => "\f",
|
|
15
|
-
"n" => "\n",
|
|
16
|
-
"r" => "\r",
|
|
17
|
-
"s" => " ",
|
|
18
|
-
"t" => "\t",
|
|
19
|
-
"v" => "\13",
|
|
20
|
-
"\\" => '\\',
|
|
21
|
-
"\n" => "",
|
|
22
|
-
"C-\?" => 127.chr,
|
|
23
|
-
"c\?" => 127.chr,
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
HAS_ENC = "".respond_to? :encoding
|
|
27
|
-
|
|
28
|
-
BTOKENS = {
|
|
29
|
-
".." => :tBDOT2,
|
|
30
|
-
"..." => :tBDOT3,
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
TOKENS = {
|
|
34
|
-
"!" => :tBANG,
|
|
35
|
-
"!=" => :tNEQ,
|
|
36
|
-
"!@" => :tBANG,
|
|
37
|
-
"!~" => :tNMATCH,
|
|
38
|
-
"," => :tCOMMA,
|
|
39
|
-
".." => :tDOT2,
|
|
40
|
-
"..." => :tDOT3,
|
|
41
|
-
"=" => :tEQL,
|
|
42
|
-
"==" => :tEQ,
|
|
43
|
-
"===" => :tEQQ,
|
|
44
|
-
"=>" => :tASSOC,
|
|
45
|
-
"=~" => :tMATCH,
|
|
46
|
-
"->" => :tLAMBDA,
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
PERCENT_END = {
|
|
50
|
-
"(" => ")",
|
|
51
|
-
"[" => "]",
|
|
52
|
-
"{" => "}",
|
|
53
|
-
"<" => ">",
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
SIMPLE_RE_META = /[\$\*\+\.\?\^\|\)\]\}\>]/
|
|
57
|
-
|
|
58
|
-
@@regexp_cache = Hash.new { |h, k| h[k] = Regexp.new(Regexp.escape(k)) }
|
|
59
|
-
@@regexp_cache[nil] = nil
|
|
60
|
-
|
|
61
|
-
def regexp_cache
|
|
62
|
-
@@regexp_cache
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
if $DEBUG then
|
|
66
|
-
attr_reader :lex_state
|
|
67
|
-
|
|
68
|
-
def lex_state= o
|
|
69
|
-
return if @lex_state == o
|
|
70
|
-
|
|
71
|
-
from = ""
|
|
72
|
-
if ENV["VERBOSE"]
|
|
73
|
-
path = caller[0]
|
|
74
|
-
path = caller[1] if path =~ /result/
|
|
75
|
-
path, line, *_ = path.split(/:/)
|
|
76
|
-
path.delete_prefix! File.dirname File.dirname __FILE__
|
|
77
|
-
from = " at .%s:%s" % [path, line]
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
warn "lex_state: %p -> %p%s" % [lex_state, o, from]
|
|
81
|
-
|
|
82
|
-
@lex_state = o
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
# :startdoc:
|
|
87
|
-
|
|
88
|
-
attr_accessor :lex_state unless $DEBUG
|
|
89
|
-
|
|
90
|
-
attr_accessor :brace_nest
|
|
91
|
-
attr_accessor :cmdarg
|
|
92
|
-
attr_accessor :command_start
|
|
93
|
-
attr_accessor :cmd_state # temporary--ivar to avoid passing everywhere
|
|
94
|
-
attr_accessor :last_state
|
|
95
|
-
attr_accessor :cond
|
|
96
|
-
attr_accessor :old_ss
|
|
97
|
-
attr_accessor :old_lineno
|
|
98
|
-
|
|
99
|
-
# these are generated via ruby_lexer.rex: ss, lineno
|
|
100
|
-
|
|
101
|
-
##
|
|
102
|
-
# Additional context surrounding tokens that both the lexer and
|
|
103
|
-
# grammar use.
|
|
104
|
-
|
|
105
|
-
attr_accessor :lex_strterm
|
|
106
|
-
attr_accessor :lpar_beg
|
|
107
|
-
attr_accessor :paren_nest
|
|
108
|
-
attr_accessor :parser # HACK for very end of lexer... *sigh*
|
|
109
|
-
attr_accessor :space_seen
|
|
110
|
-
attr_accessor :string_buffer
|
|
111
|
-
attr_accessor :string_nest
|
|
112
|
-
|
|
113
|
-
# Last token read via next_token.
|
|
114
|
-
attr_accessor :token
|
|
115
|
-
|
|
116
|
-
attr_writer :comments
|
|
117
|
-
|
|
118
|
-
def initialize _ = nil
|
|
119
|
-
@lex_state = nil # remove one warning under $DEBUG
|
|
120
|
-
self.lex_state = EXPR_NONE
|
|
121
|
-
|
|
122
|
-
self.cond = RubyParserStuff::StackState.new(:cond, $DEBUG)
|
|
123
|
-
self.cmdarg = RubyParserStuff::StackState.new(:cmdarg, $DEBUG)
|
|
124
|
-
self.ss = RPStringScanner.new ""
|
|
125
|
-
|
|
126
|
-
reset
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
def arg_ambiguous
|
|
130
|
-
self.warning "Ambiguous first argument. make sure."
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
def arg_state
|
|
134
|
-
is_after_operator? ? EXPR_ARG : EXPR_BEG
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
def ignore_body_comments
|
|
138
|
-
@comments.clear
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
def comments # TODO: remove this... maybe comment_string + attr_accessor
|
|
142
|
-
c = @comments.join
|
|
143
|
-
@comments.clear
|
|
144
|
-
c
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
def debug n
|
|
148
|
-
raise "debug #{n}"
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
def expr_dot?
|
|
152
|
-
lex_state =~ EXPR_DOT
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
def expr_fname? # REFACTOR
|
|
156
|
-
lex_state =~ EXPR_FNAME
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
def expr_result token, text
|
|
160
|
-
cond.push false
|
|
161
|
-
cmdarg.push false
|
|
162
|
-
result EXPR_BEG, token, text
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
def in_fname? # REFACTOR
|
|
166
|
-
lex_state =~ EXPR_FNAME
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
def int_with_base base
|
|
170
|
-
rb_compile_error "Invalid numeric format" if matched =~ /__/
|
|
171
|
-
|
|
172
|
-
text = matched
|
|
173
|
-
case
|
|
174
|
-
when text.end_with?("ri")
|
|
175
|
-
result EXPR_NUM, :tIMAGINARY, Complex(0, Rational(text.chop.chop.to_i(base)))
|
|
176
|
-
when text.end_with?("r")
|
|
177
|
-
result EXPR_NUM, :tRATIONAL, Rational(text.chop.to_i(base))
|
|
178
|
-
when text.end_with?("i")
|
|
179
|
-
result EXPR_NUM, :tIMAGINARY, Complex(0, text.chop.to_i(base))
|
|
180
|
-
else
|
|
181
|
-
result EXPR_NUM, :tINTEGER, text.to_i(base)
|
|
182
|
-
end
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
def is_after_operator?
|
|
186
|
-
lex_state =~ EXPR_FNAME|EXPR_DOT
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
def is_arg?
|
|
190
|
-
lex_state =~ EXPR_ARG_ANY
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
def is_beg?
|
|
194
|
-
lex_state =~ EXPR_BEG_ANY || lex_state == EXPR_LAB # yes, == EXPR_LAB
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
def is_end?
|
|
198
|
-
lex_state =~ EXPR_END_ANY
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
def is_label_possible?
|
|
202
|
-
(lex_state =~ EXPR_LABEL|EXPR_ENDFN && !cmd_state) || is_arg?
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
def is_label_suffix?
|
|
206
|
-
check(/:(?!:)/)
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
def is_space_arg? c = "x"
|
|
210
|
-
is_arg? and space_seen and c !~ /\s/
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
def lambda_beginning?
|
|
214
|
-
lpar_beg && lpar_beg == paren_nest
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
def is_local_id id
|
|
218
|
-
# maybe just make this false for now
|
|
219
|
-
self.parser.env[id.to_sym] == :lvar # HACK: this isn't remotely right
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
def lvar_defined? id
|
|
223
|
-
# TODO: (dyna_in_block? && dvar_defined?(id)) || local_id?(id)
|
|
224
|
-
self.parser.env[id.to_sym] == :lvar
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
def not_end?
|
|
228
|
-
not is_end?
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
def possibly_escape_string text, check
|
|
232
|
-
content = match[1]
|
|
233
|
-
|
|
234
|
-
if text =~ check then
|
|
235
|
-
content.gsub(ESC) { unescape $1 }
|
|
236
|
-
else
|
|
237
|
-
content.gsub(/\\\\/, "\\").gsub(/\\\'/, "'")
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
def process_amper text
|
|
242
|
-
token = if is_arg? && space_seen && !check(/\s/) then
|
|
243
|
-
warning("`&' interpreted as argument prefix")
|
|
244
|
-
:tAMPER
|
|
245
|
-
elsif lex_state =~ EXPR_BEG|EXPR_MID then
|
|
246
|
-
:tAMPER
|
|
247
|
-
else
|
|
248
|
-
:tAMPER2
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
result :arg_state, token, "&"
|
|
252
|
-
end
|
|
253
|
-
|
|
254
|
-
def process_backref text
|
|
255
|
-
token = match[1].to_sym
|
|
256
|
-
# TODO: can't do lineno hack w/ symbol
|
|
257
|
-
result EXPR_END, :tBACK_REF, token
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
def process_begin text
|
|
261
|
-
@comments << matched
|
|
262
|
-
|
|
263
|
-
unless scan(/.*?\n=end( |\t|\f)*[^\n]*(\n|\z)/m) then
|
|
264
|
-
@comments.clear
|
|
265
|
-
rb_compile_error("embedded document meets end of file")
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
@comments << matched
|
|
269
|
-
self.lineno += matched.count("\n") # HACK?
|
|
270
|
-
|
|
271
|
-
nil # TODO
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
def process_brace_close text
|
|
275
|
-
case matched
|
|
276
|
-
when "}" then
|
|
277
|
-
self.brace_nest -= 1
|
|
278
|
-
return :tSTRING_DEND, matched if brace_nest < 0
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
# matching compare/parse26.y:8099
|
|
282
|
-
cond.pop
|
|
283
|
-
cmdarg.pop
|
|
284
|
-
|
|
285
|
-
case matched
|
|
286
|
-
when "}" then
|
|
287
|
-
self.lex_state = ruby24minus? ? EXPR_ENDARG : EXPR_END
|
|
288
|
-
return :tRCURLY, matched
|
|
289
|
-
when "]" then
|
|
290
|
-
self.paren_nest -= 1
|
|
291
|
-
self.lex_state = ruby24minus? ? EXPR_ENDARG : EXPR_END
|
|
292
|
-
return :tRBRACK, matched
|
|
293
|
-
when ")" then
|
|
294
|
-
self.paren_nest -= 1
|
|
295
|
-
self.lex_state = EXPR_ENDFN
|
|
296
|
-
return :tRPAREN, matched
|
|
297
|
-
else
|
|
298
|
-
raise "Unknown bracing: #{matched.inspect}"
|
|
299
|
-
end
|
|
300
|
-
end
|
|
301
|
-
|
|
302
|
-
def process_brace_open text
|
|
303
|
-
# matching compare/parse23.y:8694
|
|
304
|
-
self.brace_nest += 1
|
|
305
|
-
|
|
306
|
-
if lambda_beginning? then
|
|
307
|
-
self.lpar_beg = nil
|
|
308
|
-
self.paren_nest -= 1 # close arg list when lambda opens body
|
|
309
|
-
|
|
310
|
-
return expr_result(:tLAMBEG, "{")
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
token = case
|
|
314
|
-
when lex_state =~ EXPR_LABELED then
|
|
315
|
-
:tLBRACE # hash
|
|
316
|
-
when lex_state =~ EXPR_ARG_ANY|EXPR_END|EXPR_ENDFN then
|
|
317
|
-
:tLCURLY # block (primary) "{" in parse.y
|
|
318
|
-
when lex_state =~ EXPR_ENDARG then
|
|
319
|
-
:tLBRACE_ARG # block (expr)
|
|
320
|
-
else
|
|
321
|
-
:tLBRACE # hash
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
state = token == :tLBRACE_ARG ? EXPR_BEG : EXPR_PAR
|
|
325
|
-
self.command_start = true if token != :tLBRACE
|
|
326
|
-
|
|
327
|
-
cond.push false
|
|
328
|
-
cmdarg.push false
|
|
329
|
-
result state, token, text
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
def process_colon1 text
|
|
333
|
-
# ?: / then / when
|
|
334
|
-
if is_end? || check(/\s/) then
|
|
335
|
-
return result EXPR_BEG, :tCOLON, text
|
|
336
|
-
end
|
|
337
|
-
|
|
338
|
-
case
|
|
339
|
-
when scan(/\'/) then
|
|
340
|
-
string STR_SSYM, matched
|
|
341
|
-
when scan(/\"/) then
|
|
342
|
-
string STR_DSYM, matched
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
result EXPR_FNAME, :tSYMBEG, text
|
|
346
|
-
end
|
|
347
|
-
|
|
348
|
-
def process_colon2 text
|
|
349
|
-
if is_beg? || lex_state =~ EXPR_CLASS || is_space_arg? then
|
|
350
|
-
result EXPR_BEG, :tCOLON3, text
|
|
351
|
-
else
|
|
352
|
-
result EXPR_DOT, :tCOLON2, text
|
|
353
|
-
end
|
|
354
|
-
end
|
|
355
|
-
|
|
356
|
-
def process_dots text
|
|
357
|
-
tokens = ruby27plus? && is_beg? ? BTOKENS : TOKENS
|
|
358
|
-
|
|
359
|
-
result EXPR_BEG, tokens[text], text
|
|
360
|
-
end
|
|
361
|
-
|
|
362
|
-
def process_float text
|
|
363
|
-
rb_compile_error "Invalid numeric format" if text =~ /__/
|
|
364
|
-
|
|
365
|
-
case
|
|
366
|
-
when text.end_with?("ri")
|
|
367
|
-
result EXPR_NUM, :tIMAGINARY, Complex(0, Rational(text.chop.chop))
|
|
368
|
-
when text.end_with?("i")
|
|
369
|
-
result EXPR_NUM, :tIMAGINARY, Complex(0, text.chop.to_f)
|
|
370
|
-
when text.end_with?("r")
|
|
371
|
-
result EXPR_NUM, :tRATIONAL, Rational(text.chop)
|
|
372
|
-
else
|
|
373
|
-
result EXPR_NUM, :tFLOAT, text.to_f
|
|
374
|
-
end
|
|
375
|
-
end
|
|
376
|
-
|
|
377
|
-
def process_gvar text
|
|
378
|
-
if parser.class.version > 20 && text == "$-" then
|
|
379
|
-
rb_compile_error "unexpected $undefined"
|
|
380
|
-
end
|
|
381
|
-
|
|
382
|
-
result EXPR_END, :tGVAR, text
|
|
383
|
-
end
|
|
384
|
-
|
|
385
|
-
def process_gvar_oddity text
|
|
386
|
-
rb_compile_error "#{text.inspect} is not allowed as a global variable name"
|
|
387
|
-
end
|
|
388
|
-
|
|
389
|
-
def process_ivar text
|
|
390
|
-
tok_id = text =~ /^@@/ ? :tCVAR : :tIVAR
|
|
391
|
-
result EXPR_END, tok_id, text
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
def process_label text
|
|
395
|
-
symbol = possibly_escape_string text, /^\"/
|
|
396
|
-
|
|
397
|
-
result EXPR_LAB, :tLABEL, symbol
|
|
398
|
-
end
|
|
399
|
-
|
|
400
|
-
def process_label_or_string text
|
|
401
|
-
if @was_label && text =~ /:\Z/ then
|
|
402
|
-
@was_label = nil
|
|
403
|
-
return process_label text
|
|
404
|
-
elsif text =~ /:\Z/ then
|
|
405
|
-
self.pos -= 1 # put back ":"
|
|
406
|
-
text = text[0..-2]
|
|
407
|
-
end
|
|
408
|
-
|
|
409
|
-
orig_line = lineno
|
|
410
|
-
str = text[1..-2].gsub(/\\\\/, "\\").gsub(/\\\'/, "\'")
|
|
411
|
-
self.lineno += str.count("\n")
|
|
412
|
-
|
|
413
|
-
result EXPR_END, :tSTRING, str, orig_line
|
|
414
|
-
end
|
|
415
|
-
|
|
416
|
-
def process_lchevron text
|
|
417
|
-
if (lex_state !~ EXPR_DOT|EXPR_CLASS &&
|
|
418
|
-
!is_end? &&
|
|
419
|
-
(!is_arg? || lex_state =~ EXPR_LABELED || space_seen)) then
|
|
420
|
-
tok = self.heredoc_identifier
|
|
421
|
-
return tok if tok
|
|
422
|
-
end
|
|
423
|
-
|
|
424
|
-
if is_after_operator? then
|
|
425
|
-
self.lex_state = EXPR_ARG
|
|
426
|
-
else
|
|
427
|
-
self.command_start = true if lex_state =~ EXPR_CLASS
|
|
428
|
-
self.lex_state = EXPR_BEG
|
|
429
|
-
end
|
|
430
|
-
|
|
431
|
-
result lex_state, :tLSHFT, "\<\<"
|
|
432
|
-
end
|
|
433
|
-
|
|
434
|
-
def process_newline_or_comment text # ../compare/parse30.y:9126 ish
|
|
435
|
-
c = matched
|
|
436
|
-
|
|
437
|
-
if c == "#" then
|
|
438
|
-
self.pos -= 1
|
|
439
|
-
|
|
440
|
-
while scan(/\s*\#.*(\n+|\z)/) do
|
|
441
|
-
self.lineno += matched.count "\n"
|
|
442
|
-
@comments << matched.gsub(/^ +#/, "#").gsub(/^ +$/, "")
|
|
443
|
-
end
|
|
444
|
-
|
|
445
|
-
return nil if end_of_stream?
|
|
446
|
-
end
|
|
447
|
-
|
|
448
|
-
c = (lex_state =~ EXPR_BEG|EXPR_CLASS|EXPR_FNAME|EXPR_DOT &&
|
|
449
|
-
lex_state !~ EXPR_LABELED)
|
|
450
|
-
if c || self.lex_state == EXPR_LAB then # yes, == EXPR_LAB
|
|
451
|
-
# ignore if !fallthrough?
|
|
452
|
-
if !c && parser.in_kwarg then
|
|
453
|
-
# normal newline
|
|
454
|
-
self.command_start = true
|
|
455
|
-
return result EXPR_BEG, :tNL, nil
|
|
456
|
-
else
|
|
457
|
-
maybe_pop_stack
|
|
458
|
-
return # goto retry
|
|
459
|
-
end
|
|
460
|
-
end
|
|
461
|
-
|
|
462
|
-
if scan(/[\ \t\r\f\v]+/) then
|
|
463
|
-
self.space_seen = true
|
|
464
|
-
end
|
|
465
|
-
|
|
466
|
-
if check(/#/) then
|
|
467
|
-
return # goto retry
|
|
468
|
-
elsif check(/&\.|\.(?!\.)/) then # C version is a hellish obfuscated xnor
|
|
469
|
-
return # goto retry
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
self.command_start = true
|
|
473
|
-
|
|
474
|
-
result EXPR_BEG, :tNL, nil
|
|
475
|
-
end
|
|
476
|
-
|
|
477
|
-
def process_nthref text
|
|
478
|
-
# TODO: can't do lineno hack w/ number
|
|
479
|
-
result EXPR_END, :tNTH_REF, match[1].to_i
|
|
480
|
-
end
|
|
481
|
-
|
|
482
|
-
def process_paren text
|
|
483
|
-
token = if is_beg? then
|
|
484
|
-
:tLPAREN
|
|
485
|
-
elsif !space_seen then
|
|
486
|
-
# foo( ... ) => method call, no ambiguity
|
|
487
|
-
:tLPAREN2
|
|
488
|
-
elsif is_space_arg? then
|
|
489
|
-
:tLPAREN_ARG
|
|
490
|
-
elsif lex_state =~ EXPR_ENDFN && !lambda_beginning? then
|
|
491
|
-
# TODO:
|
|
492
|
-
# warn("parentheses after method name is interpreted as " \
|
|
493
|
-
# "an argument list, not a decomposed argument")
|
|
494
|
-
:tLPAREN2
|
|
495
|
-
else
|
|
496
|
-
:tLPAREN2 # plain "(" in parse.y
|
|
497
|
-
end
|
|
498
|
-
|
|
499
|
-
self.paren_nest += 1
|
|
500
|
-
|
|
501
|
-
cond.push false
|
|
502
|
-
cmdarg.push false
|
|
503
|
-
result EXPR_PAR, token, text
|
|
504
|
-
end
|
|
505
|
-
|
|
506
|
-
def process_percent text
|
|
507
|
-
case
|
|
508
|
-
when is_beg? then
|
|
509
|
-
process_percent_quote
|
|
510
|
-
when scan(/\=/)
|
|
511
|
-
result EXPR_BEG, :tOP_ASGN, "%"
|
|
512
|
-
when is_space_arg?(check(/\s/)) || (lex_state =~ EXPR_FITEM && check(/s/))
|
|
513
|
-
process_percent_quote
|
|
514
|
-
else
|
|
515
|
-
result :arg_state, :tPERCENT, "%"
|
|
516
|
-
end
|
|
517
|
-
end
|
|
518
|
-
|
|
519
|
-
def process_plus_minus text
|
|
520
|
-
sign = matched
|
|
521
|
-
utype, type = if sign == "+" then
|
|
522
|
-
[:tUPLUS, :tPLUS]
|
|
523
|
-
else
|
|
524
|
-
[:tUMINUS, :tMINUS]
|
|
525
|
-
end
|
|
526
|
-
|
|
527
|
-
if is_after_operator? then
|
|
528
|
-
if scan(/@/) then
|
|
529
|
-
return result(EXPR_ARG, utype, "#{sign}@")
|
|
530
|
-
else
|
|
531
|
-
return result(EXPR_ARG, type, sign)
|
|
532
|
-
end
|
|
533
|
-
end
|
|
534
|
-
|
|
535
|
-
return result(EXPR_BEG, :tOP_ASGN, sign) if scan(/\=/)
|
|
536
|
-
|
|
537
|
-
if is_beg? || (is_arg? && space_seen && !check(/\s/)) then
|
|
538
|
-
arg_ambiguous if is_arg?
|
|
539
|
-
|
|
540
|
-
if check(/\d/) then
|
|
541
|
-
return nil if utype == :tUPLUS
|
|
542
|
-
return result EXPR_BEG, :tUMINUS_NUM, sign
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
return result EXPR_BEG, utype, sign
|
|
546
|
-
end
|
|
547
|
-
|
|
548
|
-
result EXPR_BEG, type, sign
|
|
549
|
-
end
|
|
550
|
-
|
|
551
|
-
def process_questionmark text
|
|
552
|
-
if is_end? then
|
|
553
|
-
return result EXPR_BEG, :tEH, "?"
|
|
554
|
-
end
|
|
555
|
-
|
|
556
|
-
if end_of_stream? then
|
|
557
|
-
rb_compile_error "incomplete character syntax: parsed #{text.inspect}"
|
|
558
|
-
end
|
|
559
|
-
|
|
560
|
-
if check(/\s|\v/) then
|
|
561
|
-
unless is_arg? then
|
|
562
|
-
c2 = { " " => "s",
|
|
563
|
-
"\n" => "n",
|
|
564
|
-
"\t" => "t",
|
|
565
|
-
"\v" => "v",
|
|
566
|
-
"\r" => "r",
|
|
567
|
-
"\f" => "f" }[matched]
|
|
568
|
-
|
|
569
|
-
if c2 then
|
|
570
|
-
warning("invalid character syntax; use ?\\" + c2)
|
|
571
|
-
end
|
|
572
|
-
end
|
|
573
|
-
|
|
574
|
-
# ternary
|
|
575
|
-
return result EXPR_BEG, :tEH, "?"
|
|
576
|
-
elsif check(/\w(?=\w)/) then # ternary, also
|
|
577
|
-
return result EXPR_BEG, :tEH, "?"
|
|
578
|
-
end
|
|
579
|
-
|
|
580
|
-
c = if scan(/\\/) then
|
|
581
|
-
self.read_escape
|
|
582
|
-
else
|
|
583
|
-
getch
|
|
584
|
-
end
|
|
585
|
-
|
|
586
|
-
result EXPR_END, :tSTRING, c
|
|
587
|
-
end
|
|
588
|
-
|
|
589
|
-
def process_simple_string text
|
|
590
|
-
orig_line = lineno
|
|
591
|
-
self.lineno += text.count("\n")
|
|
592
|
-
|
|
593
|
-
str = text[1..-2]
|
|
594
|
-
.gsub(ESC) { unescape($1).b.force_encoding Encoding::UTF_8 }
|
|
595
|
-
str = str.b unless str.valid_encoding?
|
|
596
|
-
|
|
597
|
-
result EXPR_END, :tSTRING, str, orig_line
|
|
598
|
-
end
|
|
599
|
-
|
|
600
|
-
def process_slash text
|
|
601
|
-
if is_beg? then
|
|
602
|
-
string STR_REGEXP, matched
|
|
603
|
-
|
|
604
|
-
return result nil, :tREGEXP_BEG, "/"
|
|
605
|
-
end
|
|
606
|
-
|
|
607
|
-
if scan(/\=/) then
|
|
608
|
-
return result(EXPR_BEG, :tOP_ASGN, "/")
|
|
609
|
-
end
|
|
610
|
-
|
|
611
|
-
if is_arg? && space_seen then
|
|
612
|
-
unless scan(/\s/) then
|
|
613
|
-
arg_ambiguous
|
|
614
|
-
string STR_REGEXP, "/"
|
|
615
|
-
return result(nil, :tREGEXP_BEG, "/")
|
|
616
|
-
end
|
|
617
|
-
end
|
|
618
|
-
|
|
619
|
-
result :arg_state, :tDIVIDE, "/"
|
|
620
|
-
end
|
|
621
|
-
|
|
622
|
-
def process_square_bracket text
|
|
623
|
-
self.paren_nest += 1
|
|
624
|
-
|
|
625
|
-
token = nil
|
|
626
|
-
|
|
627
|
-
if is_after_operator? then
|
|
628
|
-
case
|
|
629
|
-
when scan(/\]\=/) then
|
|
630
|
-
self.paren_nest -= 1 # HACK? I dunno, or bug in MRI
|
|
631
|
-
return result EXPR_ARG, :tASET, "[]="
|
|
632
|
-
when scan(/\]/) then
|
|
633
|
-
self.paren_nest -= 1 # HACK? I dunno, or bug in MRI
|
|
634
|
-
return result EXPR_ARG, :tAREF, "[]"
|
|
635
|
-
else
|
|
636
|
-
rb_compile_error "unexpected '['"
|
|
637
|
-
end
|
|
638
|
-
elsif is_beg? then
|
|
639
|
-
token = :tLBRACK
|
|
640
|
-
elsif is_arg? && (space_seen || lex_state =~ EXPR_LABELED) then
|
|
641
|
-
token = :tLBRACK
|
|
642
|
-
else
|
|
643
|
-
token = :tLBRACK2
|
|
644
|
-
end
|
|
645
|
-
|
|
646
|
-
cond.push false
|
|
647
|
-
cmdarg.push false
|
|
648
|
-
result EXPR_PAR, token, text
|
|
649
|
-
end
|
|
650
|
-
|
|
651
|
-
def process_symbol text
|
|
652
|
-
symbol = possibly_escape_string text, /^:\"/ # stupid emacs
|
|
653
|
-
|
|
654
|
-
result EXPR_LIT, :tSYMBOL, symbol
|
|
655
|
-
end
|
|
656
|
-
|
|
657
|
-
def process_token text
|
|
658
|
-
# matching: parse_ident in compare/parse23.y:7989
|
|
659
|
-
# FIX: remove: self.last_state = lex_state
|
|
660
|
-
|
|
661
|
-
token = self.token = text
|
|
662
|
-
token << matched if scan(/[\!\?](?!=)/)
|
|
663
|
-
|
|
664
|
-
tok_id =
|
|
665
|
-
case
|
|
666
|
-
when token =~ /[!?]$/ then
|
|
667
|
-
:tFID
|
|
668
|
-
when lex_state =~ EXPR_FNAME && scan(/=(?:(?![~>=])|(?==>))/) then
|
|
669
|
-
# ident=, not =~ => == or followed by =>
|
|
670
|
-
# TODO test lexing of a=>b vs a==>b
|
|
671
|
-
token << matched
|
|
672
|
-
:tIDENTIFIER
|
|
673
|
-
when token =~ /^[A-Z]/ then
|
|
674
|
-
:tCONSTANT
|
|
675
|
-
else
|
|
676
|
-
:tIDENTIFIER
|
|
677
|
-
end
|
|
678
|
-
|
|
679
|
-
if is_label_possible? and is_label_suffix? then
|
|
680
|
-
scan(/:/)
|
|
681
|
-
return result EXPR_LAB, :tLABEL, token
|
|
682
|
-
end
|
|
683
|
-
|
|
684
|
-
# TODO: mb == ENC_CODERANGE_7BIT && lex_state !~ EXPR_DOT
|
|
685
|
-
if lex_state !~ EXPR_DOT then
|
|
686
|
-
# See if it is a reserved word.
|
|
687
|
-
keyword = RubyParserStuff::Keyword.keyword token
|
|
688
|
-
|
|
689
|
-
return process_token_keyword keyword if keyword
|
|
690
|
-
end
|
|
691
|
-
|
|
692
|
-
# matching: compare/parse30.y:9039
|
|
693
|
-
state = if lex_state =~ EXPR_BEG_ANY|EXPR_ARG_ANY|EXPR_DOT then
|
|
694
|
-
cmd_state ? EXPR_CMDARG : EXPR_ARG
|
|
695
|
-
elsif lex_state =~ EXPR_FNAME then
|
|
696
|
-
EXPR_ENDFN
|
|
697
|
-
else
|
|
698
|
-
EXPR_END
|
|
699
|
-
end
|
|
700
|
-
self.lex_state = state
|
|
701
|
-
|
|
702
|
-
tok_id = :tIDENTIFIER if tok_id == :tCONSTANT && is_local_id(token)
|
|
703
|
-
|
|
704
|
-
if last_state !~ EXPR_DOT|EXPR_FNAME and
|
|
705
|
-
(tok_id == :tIDENTIFIER) and # not EXPR_FNAME, not attrasgn
|
|
706
|
-
lvar_defined?(token) then
|
|
707
|
-
state = EXPR_END|EXPR_LABEL
|
|
708
|
-
end
|
|
709
|
-
|
|
710
|
-
result state, tok_id, token
|
|
711
|
-
end
|
|
712
|
-
|
|
713
|
-
def process_token_keyword keyword
|
|
714
|
-
# matching MIDDLE of parse_ident in compare/parse23.y:8046
|
|
715
|
-
state = lex_state
|
|
716
|
-
|
|
717
|
-
return result(EXPR_ENDFN, keyword.id0, token) if lex_state =~ EXPR_FNAME
|
|
718
|
-
|
|
719
|
-
self.lex_state = keyword.state
|
|
720
|
-
self.command_start = true if lex_state =~ EXPR_BEG
|
|
721
|
-
|
|
722
|
-
case
|
|
723
|
-
when keyword.id0 == :kDO then # parse26.y line 7591
|
|
724
|
-
case
|
|
725
|
-
when lambda_beginning? then
|
|
726
|
-
self.lpar_beg = nil # lambda_beginning? == FALSE in the body of "-> do ... end"
|
|
727
|
-
self.paren_nest -= 1 # TODO: question this?
|
|
728
|
-
result lex_state, :kDO_LAMBDA, token
|
|
729
|
-
when cond.is_in_state then
|
|
730
|
-
result lex_state, :kDO_COND, token
|
|
731
|
-
when cmdarg.is_in_state && state != EXPR_CMDARG then
|
|
732
|
-
result lex_state, :kDO_BLOCK, token
|
|
733
|
-
else
|
|
734
|
-
result lex_state, :kDO, token
|
|
735
|
-
end
|
|
736
|
-
when state =~ EXPR_PAD then
|
|
737
|
-
result lex_state, keyword.id0, token
|
|
738
|
-
when keyword.id0 != keyword.id1 then
|
|
739
|
-
result EXPR_PAR, keyword.id1, token
|
|
740
|
-
else
|
|
741
|
-
result lex_state, keyword.id1, token
|
|
742
|
-
end
|
|
743
|
-
end
|
|
744
|
-
|
|
745
|
-
def process_underscore text
|
|
746
|
-
self.unscan # put back "_"
|
|
747
|
-
|
|
748
|
-
if beginning_of_line? && scan(/\__END__(\r?\n|\Z)/) then
|
|
749
|
-
ss.terminate
|
|
750
|
-
[RubyLexer::EOF, RubyLexer::EOF]
|
|
751
|
-
elsif scan(/#{IDENT_CHAR}+/) then
|
|
752
|
-
process_token matched
|
|
753
|
-
end
|
|
754
|
-
end
|
|
755
|
-
|
|
756
|
-
def rb_compile_error msg
|
|
757
|
-
msg += ". near line #{self.lineno}: #{self.rest[/^.*/].inspect}"
|
|
758
|
-
raise RubyParser::SyntaxError, msg
|
|
759
|
-
end
|
|
760
|
-
|
|
761
|
-
def reset
|
|
762
|
-
self.lineno = 1
|
|
763
|
-
self.brace_nest = 0
|
|
764
|
-
self.command_start = true
|
|
765
|
-
self.comments = []
|
|
766
|
-
self.lex_state = EXPR_NONE
|
|
767
|
-
self.lex_strterm = nil
|
|
768
|
-
self.lpar_beg = nil
|
|
769
|
-
self.paren_nest = 0
|
|
770
|
-
self.space_seen = false
|
|
771
|
-
self.string_nest = 0
|
|
772
|
-
self.token = nil
|
|
773
|
-
self.string_buffer = []
|
|
774
|
-
self.old_ss = nil
|
|
775
|
-
self.old_lineno = nil
|
|
776
|
-
|
|
777
|
-
self.cond.reset
|
|
778
|
-
self.cmdarg.reset
|
|
779
|
-
end
|
|
780
|
-
|
|
781
|
-
def result new_state, token, text, line = self.lineno # :nodoc:
|
|
782
|
-
new_state = self.arg_state if new_state == :arg_state
|
|
783
|
-
self.lex_state = new_state if new_state
|
|
784
|
-
|
|
785
|
-
[token, [text, line]]
|
|
786
|
-
end
|
|
787
|
-
|
|
788
|
-
def ruby22_label?
|
|
789
|
-
ruby22plus? and is_label_possible?
|
|
790
|
-
end
|
|
791
|
-
|
|
792
|
-
def ruby22plus?
|
|
793
|
-
parser.class.version >= 22
|
|
794
|
-
end
|
|
795
|
-
|
|
796
|
-
def ruby23plus?
|
|
797
|
-
parser.class.version >= 23
|
|
798
|
-
end
|
|
799
|
-
|
|
800
|
-
def ruby24minus?
|
|
801
|
-
parser.class.version <= 24
|
|
802
|
-
end
|
|
803
|
-
|
|
804
|
-
def ruby27plus?
|
|
805
|
-
parser.class.version >= 27
|
|
806
|
-
end
|
|
807
|
-
|
|
808
|
-
def space_vs_beginning space_type, beg_type, fallback
|
|
809
|
-
if is_space_arg? check(/./m) then
|
|
810
|
-
warning "`**' interpreted as argument prefix"
|
|
811
|
-
space_type
|
|
812
|
-
elsif is_beg? then
|
|
813
|
-
beg_type
|
|
814
|
-
else
|
|
815
|
-
# TODO: warn_balanced("**", "argument prefix");
|
|
816
|
-
fallback
|
|
817
|
-
end
|
|
818
|
-
end
|
|
819
|
-
|
|
820
|
-
def unescape s
|
|
821
|
-
r = ESCAPES[s]
|
|
822
|
-
|
|
823
|
-
return r if r
|
|
824
|
-
|
|
825
|
-
x = case s
|
|
826
|
-
when /^[0-7]{1,3}/ then
|
|
827
|
-
($&.to_i(8) & 0xFF).chr
|
|
828
|
-
when /^x([0-9a-fA-F]{1,2})/ then
|
|
829
|
-
$1.to_i(16).chr
|
|
830
|
-
when /^M-(.)/ then
|
|
831
|
-
($1[0].ord | 0x80).chr
|
|
832
|
-
when /^(C-|c)(.)/ then
|
|
833
|
-
($2[0].ord & 0x9f).chr
|
|
834
|
-
when /^[89a-f]/i then # bad octal or hex... ignore? that's what MRI does :(
|
|
835
|
-
s
|
|
836
|
-
when /^[McCx0-9]/ then
|
|
837
|
-
rb_compile_error("Invalid escape character syntax")
|
|
838
|
-
when /u(\h{4})/ then
|
|
839
|
-
[$1.delete("{}").to_i(16)].pack("U")
|
|
840
|
-
when /u(\h{1,3})/ then
|
|
841
|
-
rb_compile_error("Invalid escape character syntax")
|
|
842
|
-
when /u\{(\h+(?:\s+\h+)*)\}/ then
|
|
843
|
-
$1.split.map { |cp| cp.to_i(16) }.pack("U*")
|
|
844
|
-
else
|
|
845
|
-
s
|
|
846
|
-
end
|
|
847
|
-
x
|
|
848
|
-
end
|
|
849
|
-
|
|
850
|
-
def warning s
|
|
851
|
-
# do nothing for now
|
|
852
|
-
end
|
|
853
|
-
|
|
854
|
-
def was_label?
|
|
855
|
-
@was_label = ruby22_label?
|
|
856
|
-
true
|
|
857
|
-
end
|
|
858
|
-
|
|
859
|
-
class State
|
|
860
|
-
attr_accessor :n
|
|
861
|
-
attr_accessor :names
|
|
862
|
-
|
|
863
|
-
# TODO: take a shared hash of strings for inspect/to_s
|
|
864
|
-
def initialize o, names
|
|
865
|
-
raise ArgumentError, "bad state: %p" % [o] unless Integer === o # TODO: remove
|
|
866
|
-
|
|
867
|
-
self.n = o
|
|
868
|
-
self.names = names
|
|
869
|
-
end
|
|
870
|
-
|
|
871
|
-
def == o
|
|
872
|
-
self.equal?(o) || (o.class == self.class && o.n == self.n)
|
|
873
|
-
end
|
|
874
|
-
|
|
875
|
-
def =~ v
|
|
876
|
-
(self.n & v.n) != 0
|
|
877
|
-
end
|
|
878
|
-
|
|
879
|
-
def | v
|
|
880
|
-
raise ArgumentError, "Incompatible State: %p vs %p" % [self, v] unless
|
|
881
|
-
self.names == v.names
|
|
882
|
-
self.class.new(self.n | v.n, self.names)
|
|
883
|
-
end
|
|
884
|
-
|
|
885
|
-
def inspect
|
|
886
|
-
return "Value(0)" if n.zero? # HACK?
|
|
887
|
-
|
|
888
|
-
names.map { |v, k| k if self =~ v }.
|
|
889
|
-
compact.
|
|
890
|
-
join("|").
|
|
891
|
-
gsub(/(?:EXPR_|STR_(?:FUNC_)?)/, "")
|
|
892
|
-
end
|
|
893
|
-
|
|
894
|
-
alias to_s inspect
|
|
895
|
-
|
|
896
|
-
module Values
|
|
897
|
-
expr_names = {}
|
|
898
|
-
|
|
899
|
-
EXPR_NONE = State.new 0x0, expr_names
|
|
900
|
-
EXPR_BEG = State.new 0x1, expr_names
|
|
901
|
-
EXPR_END = State.new 0x2, expr_names
|
|
902
|
-
EXPR_ENDARG = State.new 0x4, expr_names
|
|
903
|
-
EXPR_ENDFN = State.new 0x8, expr_names
|
|
904
|
-
EXPR_ARG = State.new 0x10, expr_names
|
|
905
|
-
EXPR_CMDARG = State.new 0x20, expr_names
|
|
906
|
-
EXPR_MID = State.new 0x40, expr_names
|
|
907
|
-
EXPR_FNAME = State.new 0x80, expr_names
|
|
908
|
-
EXPR_DOT = State.new 0x100, expr_names
|
|
909
|
-
EXPR_CLASS = State.new 0x200, expr_names
|
|
910
|
-
EXPR_LABEL = State.new 0x400, expr_names
|
|
911
|
-
EXPR_LABELED = State.new 0x800, expr_names
|
|
912
|
-
EXPR_FITEM = State.new 0x1000, expr_names
|
|
913
|
-
|
|
914
|
-
EXPR_BEG_ANY = EXPR_BEG | EXPR_MID | EXPR_CLASS
|
|
915
|
-
EXPR_ARG_ANY = EXPR_ARG | EXPR_CMDARG
|
|
916
|
-
EXPR_END_ANY = EXPR_END | EXPR_ENDARG | EXPR_ENDFN
|
|
917
|
-
|
|
918
|
-
# extra fake lex_state names to make things a bit cleaner
|
|
919
|
-
|
|
920
|
-
EXPR_LAB = EXPR_ARG|EXPR_LABELED
|
|
921
|
-
EXPR_LIT = EXPR_END|EXPR_ENDARG
|
|
922
|
-
EXPR_PAR = EXPR_BEG|EXPR_LABEL
|
|
923
|
-
EXPR_PAD = EXPR_BEG|EXPR_LABELED
|
|
924
|
-
|
|
925
|
-
EXPR_NUM = EXPR_LIT
|
|
926
|
-
|
|
927
|
-
expr_names.merge!(EXPR_NONE => "EXPR_NONE",
|
|
928
|
-
EXPR_BEG => "EXPR_BEG",
|
|
929
|
-
EXPR_END => "EXPR_END",
|
|
930
|
-
EXPR_ENDARG => "EXPR_ENDARG",
|
|
931
|
-
EXPR_ENDFN => "EXPR_ENDFN",
|
|
932
|
-
EXPR_ARG => "EXPR_ARG",
|
|
933
|
-
EXPR_CMDARG => "EXPR_CMDARG",
|
|
934
|
-
EXPR_MID => "EXPR_MID",
|
|
935
|
-
EXPR_FNAME => "EXPR_FNAME",
|
|
936
|
-
EXPR_DOT => "EXPR_DOT",
|
|
937
|
-
EXPR_CLASS => "EXPR_CLASS",
|
|
938
|
-
EXPR_LABEL => "EXPR_LABEL",
|
|
939
|
-
EXPR_LABELED => "EXPR_LABELED",
|
|
940
|
-
EXPR_FITEM => "EXPR_FITEM")
|
|
941
|
-
|
|
942
|
-
# ruby constants for strings
|
|
943
|
-
|
|
944
|
-
str_func_names = {}
|
|
945
|
-
|
|
946
|
-
STR_FUNC_BORING = State.new 0x00, str_func_names
|
|
947
|
-
STR_FUNC_ESCAPE = State.new 0x01, str_func_names
|
|
948
|
-
STR_FUNC_EXPAND = State.new 0x02, str_func_names
|
|
949
|
-
STR_FUNC_REGEXP = State.new 0x04, str_func_names
|
|
950
|
-
STR_FUNC_QWORDS = State.new 0x08, str_func_names
|
|
951
|
-
STR_FUNC_SYMBOL = State.new 0x10, str_func_names
|
|
952
|
-
STR_FUNC_INDENT = State.new 0x20, str_func_names # <<-HEREDOC
|
|
953
|
-
STR_FUNC_LABEL = State.new 0x40, str_func_names
|
|
954
|
-
STR_FUNC_LIST = State.new 0x4000, str_func_names
|
|
955
|
-
STR_FUNC_TERM = State.new 0x8000, str_func_names
|
|
956
|
-
STR_FUNC_DEDENT = State.new 0x10000, str_func_names # <<~HEREDOC
|
|
957
|
-
|
|
958
|
-
# TODO: check parser25.y on how they do STR_FUNC_INDENT
|
|
959
|
-
|
|
960
|
-
STR_SQUOTE = STR_FUNC_BORING
|
|
961
|
-
STR_DQUOTE = STR_FUNC_EXPAND
|
|
962
|
-
STR_XQUOTE = STR_FUNC_EXPAND
|
|
963
|
-
STR_REGEXP = STR_FUNC_REGEXP | STR_FUNC_ESCAPE | STR_FUNC_EXPAND
|
|
964
|
-
STR_SWORD = STR_FUNC_QWORDS | STR_FUNC_LIST
|
|
965
|
-
STR_DWORD = STR_FUNC_QWORDS | STR_FUNC_EXPAND | STR_FUNC_LIST
|
|
966
|
-
STR_SSYM = STR_FUNC_SYMBOL
|
|
967
|
-
STR_DSYM = STR_FUNC_SYMBOL | STR_FUNC_EXPAND
|
|
968
|
-
STR_LABEL = STR_FUNC_LABEL
|
|
969
|
-
|
|
970
|
-
str_func_names.merge!(STR_FUNC_ESCAPE => "STR_FUNC_ESCAPE",
|
|
971
|
-
STR_FUNC_EXPAND => "STR_FUNC_EXPAND",
|
|
972
|
-
STR_FUNC_REGEXP => "STR_FUNC_REGEXP",
|
|
973
|
-
STR_FUNC_QWORDS => "STR_FUNC_QWORDS",
|
|
974
|
-
STR_FUNC_SYMBOL => "STR_FUNC_SYMBOL",
|
|
975
|
-
STR_FUNC_INDENT => "STR_FUNC_INDENT",
|
|
976
|
-
STR_FUNC_LABEL => "STR_FUNC_LABEL",
|
|
977
|
-
STR_FUNC_LIST => "STR_FUNC_LIST",
|
|
978
|
-
STR_FUNC_TERM => "STR_FUNC_TERM",
|
|
979
|
-
STR_FUNC_DEDENT => "STR_FUNC_DEDENT",
|
|
980
|
-
STR_SQUOTE => "STR_SQUOTE")
|
|
981
|
-
end
|
|
982
|
-
|
|
983
|
-
include Values
|
|
984
|
-
end
|
|
985
|
-
|
|
986
|
-
include State::Values
|
|
987
|
-
end
|
|
988
|
-
|
|
989
|
-
class RubyLexer
|
|
990
|
-
module SSWrapper
|
|
991
|
-
def string= s
|
|
992
|
-
ss.string= s
|
|
993
|
-
end
|
|
994
|
-
|
|
995
|
-
def beginning_of_line?
|
|
996
|
-
ss.bol?
|
|
997
|
-
end
|
|
998
|
-
|
|
999
|
-
alias bol? beginning_of_line? # to make .rex file more readable
|
|
1000
|
-
|
|
1001
|
-
def check re
|
|
1002
|
-
maybe_pop_stack
|
|
1003
|
-
|
|
1004
|
-
ss.check re
|
|
1005
|
-
end
|
|
1006
|
-
|
|
1007
|
-
def end_of_stream?
|
|
1008
|
-
ss.eos?
|
|
1009
|
-
end
|
|
1010
|
-
|
|
1011
|
-
alias eos? end_of_stream?
|
|
1012
|
-
|
|
1013
|
-
def getch
|
|
1014
|
-
c = ss.getch
|
|
1015
|
-
c = ss.getch if c == "\r" && ss.peek(1) == "\n"
|
|
1016
|
-
c
|
|
1017
|
-
end
|
|
1018
|
-
|
|
1019
|
-
def match
|
|
1020
|
-
ss
|
|
1021
|
-
end
|
|
1022
|
-
|
|
1023
|
-
def matched
|
|
1024
|
-
ss.matched
|
|
1025
|
-
end
|
|
1026
|
-
|
|
1027
|
-
def in_heredoc?
|
|
1028
|
-
!!self.old_ss
|
|
1029
|
-
end
|
|
1030
|
-
|
|
1031
|
-
def maybe_pop_stack
|
|
1032
|
-
if ss.eos? && in_heredoc? then
|
|
1033
|
-
self.ss_pop
|
|
1034
|
-
self.lineno_pop
|
|
1035
|
-
end
|
|
1036
|
-
end
|
|
1037
|
-
|
|
1038
|
-
def pos
|
|
1039
|
-
ss.pos
|
|
1040
|
-
end
|
|
1041
|
-
|
|
1042
|
-
def pos= n
|
|
1043
|
-
ss.pos = n
|
|
1044
|
-
end
|
|
1045
|
-
|
|
1046
|
-
def rest
|
|
1047
|
-
ss.rest
|
|
1048
|
-
end
|
|
1049
|
-
|
|
1050
|
-
def scan re
|
|
1051
|
-
maybe_pop_stack
|
|
1052
|
-
|
|
1053
|
-
ss.scan re
|
|
1054
|
-
end
|
|
1055
|
-
|
|
1056
|
-
def scanner_class # TODO: design this out of oedipus_lex. or something.
|
|
1057
|
-
RPStringScanner
|
|
1058
|
-
end
|
|
1059
|
-
|
|
1060
|
-
def ss_string
|
|
1061
|
-
ss.string
|
|
1062
|
-
end
|
|
1063
|
-
|
|
1064
|
-
def ss_string= s
|
|
1065
|
-
raise "Probably not"
|
|
1066
|
-
ss.string = s
|
|
1067
|
-
end
|
|
1068
|
-
|
|
1069
|
-
def unscan
|
|
1070
|
-
ss.unscan
|
|
1071
|
-
end
|
|
1072
|
-
end
|
|
1073
|
-
|
|
1074
|
-
include SSWrapper
|
|
1075
|
-
end
|
|
1076
|
-
|
|
1077
|
-
class RubyLexer
|
|
1078
|
-
module SSStackish
|
|
1079
|
-
def lineno_push new_lineno
|
|
1080
|
-
self.old_lineno = self.lineno
|
|
1081
|
-
self.lineno = new_lineno
|
|
1082
|
-
end
|
|
1083
|
-
|
|
1084
|
-
def lineno_pop
|
|
1085
|
-
self.lineno = self.old_lineno
|
|
1086
|
-
self.old_lineno = nil
|
|
1087
|
-
end
|
|
1088
|
-
|
|
1089
|
-
def ss= o
|
|
1090
|
-
raise "Clearing ss while in heredoc!?!" if in_heredoc?
|
|
1091
|
-
@old_ss = nil
|
|
1092
|
-
super
|
|
1093
|
-
end
|
|
1094
|
-
|
|
1095
|
-
def ss_push new_ss
|
|
1096
|
-
@old_ss = self.ss
|
|
1097
|
-
@ss = new_ss
|
|
1098
|
-
end
|
|
1099
|
-
|
|
1100
|
-
def ss_pop
|
|
1101
|
-
@ss = self.old_ss
|
|
1102
|
-
@old_ss = nil
|
|
1103
|
-
end
|
|
1104
|
-
end
|
|
1105
|
-
|
|
1106
|
-
prepend SSStackish
|
|
1107
|
-
end
|
|
1108
|
-
|
|
1109
|
-
if ENV["RP_STRTERM_DEBUG"] then
|
|
1110
|
-
class RubyLexer
|
|
1111
|
-
def d o
|
|
1112
|
-
$stderr.puts o.inspect
|
|
1113
|
-
end
|
|
1114
|
-
|
|
1115
|
-
alias old_lex_strterm= lex_strterm=
|
|
1116
|
-
|
|
1117
|
-
def lex_strterm= o
|
|
1118
|
-
self.old_lex_strterm= o
|
|
1119
|
-
where = caller.first.split(/:/).first(2).join(":")
|
|
1120
|
-
$stderr.puts
|
|
1121
|
-
d :lex_strterm => [o, where]
|
|
1122
|
-
end
|
|
1123
|
-
end
|
|
1124
|
-
end
|
|
1125
|
-
|
|
1126
|
-
require_relative "./ruby_lexer.rex.rb"
|
|
1127
|
-
require_relative "./ruby_lexer_strings.rb"
|
|
1128
|
-
|
|
1129
|
-
if ENV["RP_LINENO_DEBUG"] then
|
|
1130
|
-
class RubyLexer
|
|
1131
|
-
def d o
|
|
1132
|
-
$stderr.puts o.inspect
|
|
1133
|
-
end
|
|
1134
|
-
|
|
1135
|
-
alias old_lineno= lineno=
|
|
1136
|
-
|
|
1137
|
-
def lineno= n
|
|
1138
|
-
self.old_lineno= n
|
|
1139
|
-
where = caller.first.split(/:/).first(2).join(":")
|
|
1140
|
-
$stderr.puts
|
|
1141
|
-
d :lineno => [n, where]
|
|
1142
|
-
end
|
|
1143
|
-
end
|
|
1144
|
-
end
|