brakeman 8.0.6 → 8.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 +17 -0
- data/bundle/load.rb +6 -6
- data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/NEWS.md +19 -0
- data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/parser.rb +52 -46
- data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/version.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/History.rdoc +7 -0
- data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/lib/sexp_processor.rb +5 -5
- data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/CHANGES +4 -0
- data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/code_merger.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/remove_bom.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/html/pretty.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/utils.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/version.rb +1 -1
- data/bundle/ruby/3.2.0/gems/tilt-2.9.0/lib/tilt/herb.rb +110 -0
- data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt.rb +4 -3
- data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/CHANGELOG.md +6 -0
- data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/MIT-LICENSE.txt +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/README.md +2 -2
- data/bundle/ruby/3.2.0/gems/unicode-display_width-3.3.0/data/display_width.marshal.gz +0 -0
- data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/lib/unicode/display_width/constants.rb +2 -2
- data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/lib/unicode/display_width/emoji_support.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/lib/unicode/display_width.rb +4 -4
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/CHANGELOG.md +4 -0
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/Gemfile.lock +7 -3
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/MIT-LICENSE.txt +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/README.md +4 -4
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/data/emoji.marshal.gz +0 -0
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/constants.rb +4 -4
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_basic.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_include_mqe.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_include_mqe_uqe.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_include_text.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_picto.rb +1 -1
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/lib/unicode/emoji/generated/regex_picto_no_emoji.rb +8 -0
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/lib/unicode/emoji/generated/regex_possible.rb +8 -0
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_prop_emoji.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_prop_modifier_base.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_prop_presentation.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_text.rb +1 -1
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/lib/unicode/emoji/generated/regex_valid.rb +8 -0
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/lib/unicode/emoji/generated/regex_valid_include_text.rb +8 -0
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/lib/unicode/emoji/generated/regex_well_formed.rb +8 -0
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/lib/unicode/emoji/generated/regex_well_formed_include_text.rb +8 -0
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/lazy_constants.rb +1 -1
- data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji.rb +1 -1
- data/lib/brakeman/app_tree.rb +20 -6
- data/lib/brakeman/checks/base_check.rb +1 -1
- data/lib/brakeman/checks/check_ruby2shell.rb +31 -0
- data/lib/brakeman/checks/check_unscoped_find.rb +9 -8
- data/lib/brakeman/checks/check_validation_regex.rb +3 -2
- data/lib/brakeman/options.rb +2 -2
- data/lib/brakeman/parsers/template_parser.rb +9 -2
- data/lib/brakeman/processors/haml_template_processor.rb +1 -1
- data/lib/brakeman/processors/model_processor.rb +18 -5
- data/lib/brakeman/report/report_sonar.rb +53 -19
- data/lib/brakeman/tracker/config.rb +2 -1
- data/lib/brakeman/version.rb +1 -1
- data/lib/brakeman/warning.rb +1 -2
- data/lib/brakeman/warning_codes.rb +1 -0
- metadata +188 -186
- data/bundle/ruby/3.2.0/gems/unicode-display_width-3.2.0/data/display_width.marshal.gz +0 -0
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.2.0/data/emoji.marshal.gz +0 -0
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.2.0/lib/unicode/emoji/generated/regex_picto_no_emoji.rb +0 -8
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.2.0/lib/unicode/emoji/generated/regex_possible.rb +0 -8
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.2.0/lib/unicode/emoji/generated/regex_valid.rb +0 -8
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.2.0/lib/unicode/emoji/generated/regex_valid_include_text.rb +0 -8
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.2.0/lib/unicode/emoji/generated/regex_well_formed.rb +0 -8
- data/bundle/ruby/3.2.0/gems/unicode-emoji-4.2.0/lib/unicode/emoji/generated/regex_well_formed_include_text.rb +0 -8
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/LICENSE.txt +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/README.md +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/core_ext/array.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/core_ext/string.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/fields_converter.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/input_record_separator.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/row.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/table.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv/writer.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{csv-3.3.6 → csv-3.3.7}/lib/csv.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/Manifest.txt +0 -0
- /data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/README.rdoc +0 -0
- /data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/lib/composite_sexp_processor.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/lib/pt_testcase.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/lib/sexp.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/lib/sexp_matcher.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/lib/strict_sexp.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/lib/unique.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/EXPRESSIONS.md +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/Gemfile +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/LICENSE +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/README.md +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/engine.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/erb/engine.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/erb/parser.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/erb/template.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/erb/trimming.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/exceptions.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filter.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/ambles.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/control_flow.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/dynamic_inliner.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/dynamic_merger.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/encoding.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/eraser.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/escapable.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/multi_flattener.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/static_analyzer.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/static_merger.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/string_splitter.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/validator.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/generator.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/generators/array.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/generators/array_buffer.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/generators/erb.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/generators/rails_output_buffer.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/generators/string_buffer.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/grammar.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/html/attribute_merger.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/html/attribute_remover.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/html/attribute_sorter.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/html/dispatcher.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/html/fast.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/html/filter.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/html/safe.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/map.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/mixins/dispatcher.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/mixins/engine_dsl.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/mixins/grammar_dsl.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/mixins/options.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/mixins/template.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/parser.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/parser_engine.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/static_analyzer.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/templates/rails.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/templates/tilt.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/templates.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/temple.gemspec +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/COPYING +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/_emacs_org.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/_handlebars.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/_jbuilder.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/_org.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/asciidoc.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/babel.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/builder.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/cli.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/coffee.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/commonmarker.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/csv.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/erb.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/erubi.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/etanni.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/haml.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/kramdown.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/liquid.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/livescript.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/mapping.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/markaby.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/nokogiri.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/pandoc.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/pipeline.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/plain.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/prawn.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/radius.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/rdiscount.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/rdoc.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/redcarpet.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/redcloth.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/rst-pandoc.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/sass.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/slim.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/string.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/template.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/typescript.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{tilt-2.8.0 → tilt-2.9.0}/lib/tilt/yajl.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/lib/unicode/display_width/index.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/lib/unicode/display_width/no_string_ext.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/lib/unicode/display_width/reline_ext.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/lib/unicode/display_width/string_ext.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/CODE_OF_CONDUCT.md +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/Gemfile +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/data/generate_constants.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_emoji_keycap.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_prop_component.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_prop_modifier.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated/regex_text_presentation.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_basic.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_emoji_keycap.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_include_mqe.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_include_mqe_uqe.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_include_text.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_picto.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_picto_no_emoji.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_possible.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_prop_component.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_prop_emoji.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_prop_modifier.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_prop_modifier_base.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_prop_presentation.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_text.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_text_presentation.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_valid.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_valid_include_text.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_well_formed.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/generated_native/regex_well_formed_include_text.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/index.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji/list.rb +0 -0
- /data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/unicode-emoji.gemspec +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was generated by a script, please do not edit it by hand.
|
|
2
|
+
# See `$ rake generate_constants` and data/generate_constants.rb for more info.
|
|
3
|
+
|
|
4
|
+
module Unicode
|
|
5
|
+
module Emoji
|
|
6
|
+
REGEX_VALID_INCLUDE_TEXT = /(?:(?:(?:(?:[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?)|[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌚⌛⌨⏏⏩-⏳⏸-⏺Ⓜ▪▫▶◀◻-◾☀-☄☎☑☔☕☘☝☠☢☣☦☪☮☯☸-☺♀♂♈-♓♟♠♣♥♦♨♻♾♿⚒-⚗⚙⚛⚜⚠⚡⚧⚪⚫⚰⚱⚽⚾⛄⛅⛈⛎⛏⛑⛓⛔⛩⛪⛰-⛵⛷-⛺⛽✂✅✈-✍✏✒✔✖✝✡✨✳✴❄❇❌❎❓-❕❗❣❤➕-➗➡➰➿⤴⤵⬅-⬇⬛⬜⭐⭕〰〽㊗㊙🀄🃏🅰🅱🅾🅿🆎🆑-🆚🇦-🇿🈁🈂🈚🈯🈲-🈺🉐🉑🌀-🌡🌤-🎓🎖🎗🎙-🎛🎞-🏰🏳-🏵🏷-📽📿-🔽🕉-🕎🕐-🕧🕯🕰🕳-🕺🖇🖊-🖍🖐🖕🖖🖤🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺-🙏🚀-🛅🛋-🛒🛕-🛜-🛥🛩🛫🛬🛰🛳-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----]))+(?:[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?)|[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌚⌛⌨⏏⏩-⏳⏸-⏺Ⓜ▪▫▶◀◻-◾☀-☄☎☑☔☕☘☝☠☢☣☦☪☮☯☸-☺♀♂♈-♓♟♠♣♥♦♨♻♾♿⚒-⚗⚙⚛⚜⚠⚡⚧⚪⚫⚰⚱⚽⚾⛄⛅⛈⛎⛏⛑⛓⛔⛩⛪⛰-⛵⛷-⛺⛽✂✅✈-✍✏✒✔✖✝✡✨✳✴❄❇❌❎❓-❕❗❣❤➕-➗➡➰➿⤴⤵⬅-⬇⬛⬜⭐⭕〰〽㊗㊙🀄🃏🅰🅱🅾🅿🆎🆑-🆚🇦-🇿🈁🈂🈚🈯🈲-🈺🉐🉑🌀-🌡🌤-🎓🎖🎗🎙-🎛🎞-🏰🏳-🏵🏷-📽📿-🔽🕉-🕎🕐-🕧🕯🕰🕳-🕺🖇🖊-🖍🖐🖕🖖🖤🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺-🙏🚀-🛅🛋-🛒🛕-🛜-🛥🛩🛫🛬🛰🛳-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----]))|(?:🏴(?:[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|[-]|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||))|(?:🇦🇨|🇦🇩|🇦🇪|🇦🇫|🇦🇬|🇦🇮|🇦🇱|🇦🇲|🇦🇴|🇦🇶|🇦🇷|🇦🇸|🇦🇹|🇦🇺|🇦🇼|🇦🇽|🇦🇿|🇧🇦|🇧🇧|🇧🇩|🇧🇪|🇧🇫|🇧🇬|🇧🇭|🇧🇮|🇧🇯|🇧🇱|🇧🇲|🇧🇳|🇧🇴|🇧🇶|🇧🇷|🇧🇸|🇧🇹|🇧🇻|🇧🇼|🇧🇾|🇧🇿|🇨🇦|🇨🇨|🇨🇩|🇨🇫|🇨🇬|🇨🇭|🇨🇮|🇨🇰|🇨🇱|🇨🇲|🇨🇳|🇨🇴|🇨🇵|🇨🇶|🇨🇷|🇨🇺|🇨🇻|🇨🇼|🇨🇽|🇨🇾|🇨🇿|🇩🇪|🇩🇬|🇩🇯|🇩🇰|🇩🇲|🇩🇴|🇩🇿|🇪🇦|🇪🇨|🇪🇪|🇪🇬|🇪🇭|🇪🇷|🇪🇸|🇪🇹|🇪🇺|🇫🇮|🇫🇯|🇫🇰|🇫🇲|🇫🇴|🇫🇷|🇬🇦|🇬🇧|🇬🇩|🇬🇪|🇬🇫|🇬🇬|🇬🇭|🇬🇮|🇬🇱|🇬🇲|🇬🇳|🇬🇵|🇬🇶|🇬🇷|🇬🇸|🇬🇹|🇬🇺|🇬🇼|🇬🇾|🇭🇰|🇭🇲|🇭🇳|🇭🇷|🇭🇹|🇭🇺|🇮🇨|🇮🇩|🇮🇪|🇮🇱|🇮🇲|🇮🇳|🇮🇴|🇮🇶|🇮🇷|🇮🇸|🇮🇹|🇯🇪|🇯🇲|🇯🇴|🇯🇵|🇰🇪|🇰🇬|🇰🇭|🇰🇮|🇰🇲|🇰🇳|🇰🇵|🇰🇷|🇰🇼|🇰🇾|🇰🇿|🇱🇦|🇱🇧|🇱🇨|🇱🇮|🇱🇰|🇱🇷|🇱🇸|🇱🇹|🇱🇺|🇱🇻|🇱🇾|🇲🇦|🇲🇨|🇲🇩|🇲🇪|🇲🇫|🇲🇬|🇲🇭|🇲🇰|🇲🇱|🇲🇲|🇲🇳|🇲🇴|🇲🇵|🇲🇶|🇲🇷|🇲🇸|🇲🇹|🇲🇺|🇲🇻|🇲🇼|🇲🇽|🇲🇾|🇲🇿|🇳🇦|🇳🇨|🇳🇪|🇳🇫|🇳🇬|🇳🇮|🇳🇱|🇳🇴|🇳🇵|🇳🇷|🇳🇺|🇳🇿|🇴🇲|🇵🇦|🇵🇪|🇵🇫|🇵🇬|🇵🇭|🇵🇰|🇵🇱|🇵🇲|🇵🇳|🇵🇷|🇵🇸|🇵🇹|🇵🇼|🇵🇾|🇶🇦|🇷🇪|🇷🇴|🇷🇸|🇷🇺|🇷🇼|🇸🇦|🇸🇧|🇸🇨|🇸🇩|🇸🇪|🇸🇬|🇸🇭|🇸🇮|🇸🇯|🇸🇰|🇸🇱|🇸🇲|🇸🇳|🇸🇴|🇸🇷|🇸🇸|🇸🇹|🇸🇻|🇸🇽|🇸🇾|🇸🇿|🇹🇦|🇹🇨|🇹🇩|🇹🇫|🇹🇬|🇹🇭|🇹🇯|🇹🇰|🇹🇱|🇹🇲|🇹🇳|🇹🇴|🇹🇷|🇹🇹|🇹🇻|🇹🇼|🇹🇿|🇺🇦|🇺🇬|🇺🇲|🇺🇳|🇺🇸|🇺🇾|🇺🇿|🇻🇦|🇻🇨|🇻🇪|🇻🇬|🇻🇮|🇻🇳|🇻🇺|🇼🇫|🇼🇸|🇽🇰|🇾🇪|🇾🇹|🇿🇦|🇿🇲|🇿🇼)|(?:[\#\*0-9]️⃣|[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?![\#\*0-9⃣️🇦-🇿🏻-🏿🦰-🦳-])(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?))|[🏻-🏿🦰-🦳]|(?:(?![\#\*0-9⃣️🇦-🇿🏻-🏿🦰-🦳-])(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳](?!(?:[🏻-🏿]|️))︎?|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----]︎)|[\#\*0-9]⃣))/
|
|
7
|
+
end
|
|
8
|
+
end
|
data/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/lib/unicode/emoji/generated/regex_well_formed.rb
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was generated by a script, please do not edit it by hand.
|
|
2
|
+
# See `$ rake generate_constants` and data/generate_constants.rb for more info.
|
|
3
|
+
|
|
4
|
+
module Unicode
|
|
5
|
+
module Emoji
|
|
6
|
+
REGEX_WELL_FORMED = /(?:(?:(?:(?:[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?)|[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌚⌛⌨⏏⏩-⏳⏸-⏺Ⓜ▪▫▶◀◻-◾☀-☄☎☑☔☕☘☝☠☢☣☦☪☮☯☸-☺♀♂♈-♓♟♠♣♥♦♨♻♾♿⚒-⚗⚙⚛⚜⚠⚡⚧⚪⚫⚰⚱⚽⚾⛄⛅⛈⛎⛏⛑⛓⛔⛩⛪⛰-⛵⛷-⛺⛽✂✅✈-✍✏✒✔✖✝✡✨✳✴❄❇❌❎❓-❕❗❣❤➕-➗➡➰➿⤴⤵⬅-⬇⬛⬜⭐⭕〰〽㊗㊙🀄🃏🅰🅱🅾🅿🆎🆑-🆚🇦-🇿🈁🈂🈚🈯🈲-🈺🉐🉑🌀-🌡🌤-🎓🎖🎗🎙-🎛🎞-🏰🏳-🏵🏷-📽📿-🔽🕉-🕎🕐-🕧🕯🕰🕳-🕺🖇🖊-🖍🖐🖕🖖🖤🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺-🙏🚀-🛅🛋-🛒🛕-🛜-🛥🛩🛫🛬🛰🛳-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----]))+(?:[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?)|[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌚⌛⌨⏏⏩-⏳⏸-⏺Ⓜ▪▫▶◀◻-◾☀-☄☎☑☔☕☘☝☠☢☣☦☪☮☯☸-☺♀♂♈-♓♟♠♣♥♦♨♻♾♿⚒-⚗⚙⚛⚜⚠⚡⚧⚪⚫⚰⚱⚽⚾⛄⛅⛈⛎⛏⛑⛓⛔⛩⛪⛰-⛵⛷-⛺⛽✂✅✈-✍✏✒✔✖✝✡✨✳✴❄❇❌❎❓-❕❗❣❤➕-➗➡➰➿⤴⤵⬅-⬇⬛⬜⭐⭕〰〽㊗㊙🀄🃏🅰🅱🅾🅿🆎🆑-🆚🇦-🇿🈁🈂🈚🈯🈲-🈺🉐🉑🌀-🌡🌤-🎓🎖🎗🎙-🎛🎞-🏰🏳-🏵🏷-📽📿-🔽🕉-🕎🕐-🕧🕯🕰🕳-🕺🖇🖊-🖍🖐🖕🖖🖤🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺-🙏🚀-🛅🛋-🛒🛕-🛜-🛥🛩🛫🛬🛰🛳-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----]))|(?:(?:(?![\#\*0-9⃣️🇦-🇿🏻-🏿🦰-🦳-])(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?)|[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿])[--]{1,30})|\p{RI}{2}|(?:[\#\*0-9]️⃣|[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?![\#\*0-9⃣️🇦-🇿🏻-🏿🦰-🦳-])(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?))|[🏻-🏿🦰-🦳])/
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was generated by a script, please do not edit it by hand.
|
|
2
|
+
# See `$ rake generate_constants` and data/generate_constants.rb for more info.
|
|
3
|
+
|
|
4
|
+
module Unicode
|
|
5
|
+
module Emoji
|
|
6
|
+
REGEX_WELL_FORMED_INCLUDE_TEXT = /(?:(?:(?:(?:[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?)|[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌚⌛⌨⏏⏩-⏳⏸-⏺Ⓜ▪▫▶◀◻-◾☀-☄☎☑☔☕☘☝☠☢☣☦☪☮☯☸-☺♀♂♈-♓♟♠♣♥♦♨♻♾♿⚒-⚗⚙⚛⚜⚠⚡⚧⚪⚫⚰⚱⚽⚾⛄⛅⛈⛎⛏⛑⛓⛔⛩⛪⛰-⛵⛷-⛺⛽✂✅✈-✍✏✒✔✖✝✡✨✳✴❄❇❌❎❓-❕❗❣❤➕-➗➡➰➿⤴⤵⬅-⬇⬛⬜⭐⭕〰〽㊗㊙🀄🃏🅰🅱🅾🅿🆎🆑-🆚🇦-🇿🈁🈂🈚🈯🈲-🈺🉐🉑🌀-🌡🌤-🎓🎖🎗🎙-🎛🎞-🏰🏳-🏵🏷-📽📿-🔽🕉-🕎🕐-🕧🕯🕰🕳-🕺🖇🖊-🖍🖐🖕🖖🖤🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺-🙏🚀-🛅🛋-🛒🛕-🛜-🛥🛩🛫🛬🛰🛳-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----]))+(?:[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?)|[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌚⌛⌨⏏⏩-⏳⏸-⏺Ⓜ▪▫▶◀◻-◾☀-☄☎☑☔☕☘☝☠☢☣☦☪☮☯☸-☺♀♂♈-♓♟♠♣♥♦♨♻♾♿⚒-⚗⚙⚛⚜⚠⚡⚧⚪⚫⚰⚱⚽⚾⛄⛅⛈⛎⛏⛑⛓⛔⛩⛪⛰-⛵⛷-⛺⛽✂✅✈-✍✏✒✔✖✝✡✨✳✴❄❇❌❎❓-❕❗❣❤➕-➗➡➰➿⤴⤵⬅-⬇⬛⬜⭐⭕〰〽㊗㊙🀄🃏🅰🅱🅾🅿🆎🆑-🆚🇦-🇿🈁🈂🈚🈯🈲-🈺🉐🉑🌀-🌡🌤-🎓🎖🎗🎙-🎛🎞-🏰🏳-🏵🏷-📽📿-🔽🕉-🕎🕐-🕧🕯🕰🕳-🕺🖇🖊-🖍🖐🖕🖖🖤🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺-🙏🚀-🛅🛋-🛒🛕-🛜-🛥🛩🛫🛬🛰🛳-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----]))|(?:(?:(?![\#\*0-9⃣️🇦-🇿🏻-🏿🦰-🦳-])(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?)|[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿])[--]{1,30})|\p{RI}{2}|(?:[\#\*0-9]️⃣|[☝⛹✊-✍🎅🏂-🏄🏇🏊-🏌👂👃👆-👐👦-👸👼💁-💃💅-💇💏💑💪🕴🕵🕺🖐🖕🖖🙅-🙇🙋-🙏🚣🚴-🚶🛀🛌🤌🤏🤘-🤟🤦🤰-🤹🤼-🤾🥷🦵🦶🦸🦹🦻🧍-🧏🧑-🧝🫃-🫅🫰-][🏻-🏿]|(?![\#\*0-9⃣️🇦-🇿🏻-🏿🦰-🦳-])(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]️|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----](?!︎)️?))|[🏻-🏿🦰-🦳]|(?:(?![\#\*0-9⃣️🇦-🇿🏻-🏿🦰-🦳-])(?:[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳](?!(?:[🏻-🏿]|️))︎?|[⌚⌛⏩-⏬⏰⏳◽◾☔☕♈-♓♿⚓⚡⚪⚫⚽⚾⛄⛅⛎⛔⛪⛲⛳⛵⛺⛽✅✊✋✨❌❎❓-❕❗➕-➗➰➿⬛⬜⭐⭕🀄🃏🆎🆑-🆚🇦-🇿🈁🈚🈯🈲-🈶🈸-🈺🉐🉑🌀-🌠🌭-🌵🌷-🍼🍾-🎓🎠-🏊🏏-🏓🏠-🏰🏴🏸-🐾👀👂-📼📿-🔽🕋-🕎🕐-🕧🕺🖕🖖🖤🗻-🙏🚀-🛅🛌🛐-🛒🛕-🛜-🛟🛫🛬🛴-🛼🟠-🟫🟰🤌-🤺🤼-🥅🥇-🧿🩰-🩼🪀----]︎)|[\#\*0-9]⃣))/
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -45,7 +45,7 @@ module Unicode
|
|
|
45
45
|
VALID_REGION_FLAGS = INDEX[:FLAGS].freeze
|
|
46
46
|
|
|
47
47
|
# The list of valid subdivisions in regex character class syntax
|
|
48
|
-
VALID_SUBDIVISIONS = INDEX[:SD].map{_1.sub(/(.)~(.)/, '[\1-\2]') }
|
|
48
|
+
VALID_SUBDIVISIONS = INDEX[:SD].map{_1.sub(/(.)~(.)/, '[\1-\2]') }.freeze
|
|
49
49
|
|
|
50
50
|
# The list RGI tag sequence flags
|
|
51
51
|
RECOMMENDED_SUBDIVISION_FLAGS = INDEX[:TAGS].freeze
|
data/bundle/ruby/3.2.0/gems/{unicode-emoji-4.2.0 → unicode-emoji-4.3.0}/lib/unicode/emoji.rb
RENAMED
|
@@ -64,7 +64,7 @@ module Unicode
|
|
|
64
64
|
# Return Emoji properties of character as an Array or nil
|
|
65
65
|
# See PROPERTY_NAMES constant for possible properties
|
|
66
66
|
#
|
|
67
|
-
# Source: see https://www.unicode.org/Public/
|
|
67
|
+
# Source: see https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-data.txt
|
|
68
68
|
def self.properties(char)
|
|
69
69
|
ord = get_codepoint_value(char)
|
|
70
70
|
props = INDEX[:PROPERTIES][ord]
|
data/lib/brakeman/app_tree.rb
CHANGED
|
@@ -64,6 +64,8 @@ module Brakeman
|
|
|
64
64
|
@only_files = init_options[:only_files]
|
|
65
65
|
@additional_libs_path = init_options[:additional_libs_path] || []
|
|
66
66
|
@engine_paths = init_options[:engine_paths] || []
|
|
67
|
+
@additional_libs_path_pairs = @additional_libs_path.map { |p| [p, expand_path(p)] }
|
|
68
|
+
@engine_path_pairs = @engine_paths.map { |p| [p, expand_path(p)] }
|
|
67
69
|
@absolute_engine_paths = @engine_paths.select { |path| path.start_with?(File::SEPARATOR) }
|
|
68
70
|
@relative_engine_paths = @engine_paths - @absolute_engine_paths
|
|
69
71
|
@skip_vendor = init_options[:skip_vendor]
|
|
@@ -194,12 +196,15 @@ module Brakeman
|
|
|
194
196
|
files.uniq.lazy
|
|
195
197
|
else
|
|
196
198
|
if directory == '.'
|
|
197
|
-
pattern = File.join(top_directories_pattern, '**',
|
|
199
|
+
pattern = File.join(top_directories_pattern, '**', '*')
|
|
198
200
|
else
|
|
199
|
-
pattern = "#{root_search_pattern}#{directory}
|
|
201
|
+
pattern = "#{root_search_pattern}#{directory}/**/*"
|
|
200
202
|
end
|
|
201
203
|
|
|
202
|
-
Dir.glob
|
|
204
|
+
# Dir.glob walks the tree again for each alternative in braces,
|
|
205
|
+
# so walk it once and match the extensions on each file name
|
|
206
|
+
file_pattern = "#{name}#{extensions}"
|
|
207
|
+
Dir.glob(pattern).select { |path| File.fnmatch?(file_pattern, File.basename(path), File::FNM_EXTGLOB) }.lazy
|
|
203
208
|
end
|
|
204
209
|
end
|
|
205
210
|
|
|
@@ -251,7 +256,10 @@ module Brakeman
|
|
|
251
256
|
paths.reject do |path|
|
|
252
257
|
relative_path = path.relative
|
|
253
258
|
|
|
254
|
-
if @skip_vendor and
|
|
259
|
+
if @skip_vendor and
|
|
260
|
+
(relative_path == 'vendor' || relative_path.include?('vendor/')) and
|
|
261
|
+
!in_engine_paths?(path) and
|
|
262
|
+
!in_add_libs_paths?(path)
|
|
255
263
|
true
|
|
256
264
|
else
|
|
257
265
|
match_path EXCLUDED_PATHS, path
|
|
@@ -260,11 +268,17 @@ module Brakeman
|
|
|
260
268
|
end
|
|
261
269
|
|
|
262
270
|
def in_engine_paths?(path)
|
|
263
|
-
@
|
|
271
|
+
@engine_path_pairs.any? do |original, expanded|
|
|
272
|
+
path.absolute.include?(original) ||
|
|
273
|
+
expanded.start_with?("#{path.absolute}#{File::SEPARATOR}")
|
|
274
|
+
end
|
|
264
275
|
end
|
|
265
276
|
|
|
266
277
|
def in_add_libs_paths?(path)
|
|
267
|
-
@
|
|
278
|
+
@additional_libs_path_pairs.any? do |original, expanded|
|
|
279
|
+
path.absolute.include?(original) ||
|
|
280
|
+
expanded.start_with?("#{path.absolute}#{File::SEPARATOR}")
|
|
281
|
+
end
|
|
268
282
|
end
|
|
269
283
|
|
|
270
284
|
def match_path files, path
|
|
@@ -470,7 +470,7 @@ class Brakeman::BaseCheck < Brakeman::SexpProcessor
|
|
|
470
470
|
version_between? version, "2.3.18.99", tracker.config.gem_version(:'railslts-version')
|
|
471
471
|
end
|
|
472
472
|
|
|
473
|
-
def version_between? low_version, high_version, current_version =
|
|
473
|
+
def version_between? low_version, high_version, current_version = false
|
|
474
474
|
tracker.config.version_between? low_version, high_version, current_version
|
|
475
475
|
end
|
|
476
476
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
require 'brakeman/checks/base_check'
|
|
2
|
+
|
|
3
|
+
class Brakeman::CheckRuby2Shell < Brakeman::BaseCheck
|
|
4
|
+
Brakeman::Checks.add self
|
|
5
|
+
|
|
6
|
+
@description = 'Check for versions of Ruby vulnerable to Ruby2Shell'
|
|
7
|
+
|
|
8
|
+
def run_check
|
|
9
|
+
ruby_version = tracker.config.ruby_version
|
|
10
|
+
return unless ruby_version
|
|
11
|
+
|
|
12
|
+
fix_version = case
|
|
13
|
+
when version_between?('2.4.0', '3.3.13', ruby_version)
|
|
14
|
+
'3.3.14'
|
|
15
|
+
when version_between?('3.4.0', '3.4.12', ruby_version)
|
|
16
|
+
'3.4.13'
|
|
17
|
+
when version_between?('4.0.0', '4.0.9', ruby_version)
|
|
18
|
+
'4.0.10'
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
if fix_version
|
|
22
|
+
warn warning_type: 'Remote Code Execution',
|
|
23
|
+
warning_code: :ruby2shell,
|
|
24
|
+
message: msg(msg_version(ruby_version, 'Ruby'), ' has a critical remote code execution vulnerability ', msg_cve('CVE-2026-132825'), '. Upgrade to ', msg_version(fix_version, 'Ruby'), ' or later'),
|
|
25
|
+
confidence: :high,
|
|
26
|
+
gem_info: gemfile_or_environment('ruby'),
|
|
27
|
+
link: 'https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/',
|
|
28
|
+
cwe_id: [122, 125, 787]
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -11,7 +11,7 @@ class Brakeman::CheckUnscopedFind < Brakeman::BaseCheck
|
|
|
11
11
|
|
|
12
12
|
associated_model_names = active_record_models.keys.select do |name|
|
|
13
13
|
if belongs_to = active_record_models[name].associations[:belongs_to]
|
|
14
|
-
not
|
|
14
|
+
not all_optional_belongs_to? belongs_to
|
|
15
15
|
else
|
|
16
16
|
false
|
|
17
17
|
end
|
|
@@ -52,15 +52,16 @@ class Brakeman::CheckUnscopedFind < Brakeman::BaseCheck
|
|
|
52
52
|
:cwe_id => [285]
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
def
|
|
55
|
+
def all_optional_belongs_to? exp
|
|
56
56
|
return false unless exp.is_a? Array
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return true
|
|
61
|
-
end
|
|
62
|
-
end
|
|
58
|
+
# Arguments from all belongs_to calls are in one array, so split on association names
|
|
59
|
+
associations = exp.slice_before { |e| symbol? e }.select { |args| symbol? args.first }
|
|
63
60
|
|
|
64
|
-
false
|
|
61
|
+
return false if associations.empty?
|
|
62
|
+
|
|
63
|
+
associations.all? do |args|
|
|
64
|
+
args.any? { |e| hash? e and true? hash_access(e, :optional) }
|
|
65
|
+
end
|
|
65
66
|
end
|
|
66
67
|
end
|
|
@@ -16,7 +16,7 @@ class Brakeman::CheckValidationRegex < Brakeman::BaseCheck
|
|
|
16
16
|
FORMAT = Sexp.new(:lit, :format)
|
|
17
17
|
|
|
18
18
|
def run_check
|
|
19
|
-
|
|
19
|
+
tracker.models.each do |name, model|
|
|
20
20
|
@current_model = model
|
|
21
21
|
format_validations = model.options[:validates_format_of]
|
|
22
22
|
|
|
@@ -92,7 +92,8 @@ class Brakeman::CheckValidationRegex < Brakeman::BaseCheck
|
|
|
92
92
|
:message => msg("Insufficient validation for ", msg_code(get_name validator), " using ", msg_code(regex.inspect), ". Use ", msg_code("\\A"), " and ", msg_code("\\z"), " as anchors"),
|
|
93
93
|
:line => value.line,
|
|
94
94
|
:confidence => :high,
|
|
95
|
-
:cwe_id => [777]
|
|
95
|
+
:cwe_id => [777],
|
|
96
|
+
:code => validator
|
|
96
97
|
end
|
|
97
98
|
end
|
|
98
99
|
|
data/lib/brakeman/options.rb
CHANGED
|
@@ -63,9 +63,9 @@ module Brakeman::Options
|
|
|
63
63
|
options[:exit_on_error] = exit_on_error
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
opts.on "--ensure-latest [DAYS]", Integer, "Fail when Brakeman is outdated. Optionally set minimum age in days." do |days|
|
|
66
|
+
opts.on "--ensure-latest [DAYS]", Integer, "Fail when Brakeman is outdated. Optionally set minimum age in days (1-15)." do |days|
|
|
67
67
|
if days and not (1..15).include? days
|
|
68
|
-
raise OptionParser::InvalidArgument
|
|
68
|
+
raise OptionParser::InvalidArgument, "Minimum age must be 1-15 days."
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
options[:ensure_latest] = days || true
|
|
@@ -56,8 +56,15 @@ module Brakeman
|
|
|
56
56
|
else
|
|
57
57
|
ERB.new(text, nil, '-').src
|
|
58
58
|
end
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
|
|
60
|
+
# Encoding comment at the beginning throws off line numbers
|
|
61
|
+
# but the string is frozen in ERB 6.0.2+, so we don't want to
|
|
62
|
+
# unnecessarily duplicate the string
|
|
63
|
+
if src.start_with? '#'
|
|
64
|
+
src.sub(/^#.*\n/, '')
|
|
65
|
+
else
|
|
66
|
+
src
|
|
67
|
+
end
|
|
61
68
|
end
|
|
62
69
|
end
|
|
63
70
|
|
|
@@ -171,7 +171,7 @@ class Brakeman::HamlTemplateProcessor < Brakeman::TemplateProcessor
|
|
|
171
171
|
|
|
172
172
|
def escaped_builder_method? exp
|
|
173
173
|
case exp.method
|
|
174
|
-
when :build, :build_aria, :build_boolean, :build_data, :build_id, :escape_html
|
|
174
|
+
when :build, :build_aria, :build_boolean, :build_class, :build_data, :build_id, :escape_html
|
|
175
175
|
true? exp.first_arg
|
|
176
176
|
else
|
|
177
177
|
false
|
|
@@ -91,12 +91,25 @@ class Brakeman::ModelProcessor < Brakeman::BaseProcessor
|
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
def add_enum_method call
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
if call.second_arg.nil?
|
|
95
|
+
# Rails < 7.1 syntax: enum status: { active: 0, archived: 1 }
|
|
96
|
+
arg = call.first_arg
|
|
97
|
+
return unless hash? arg
|
|
98
|
+
return unless symbol? arg[1]
|
|
99
|
+
|
|
100
|
+
enum_name = arg[1].value # first key
|
|
101
|
+
enums = arg[2] # first value
|
|
102
|
+
else
|
|
103
|
+
# Rails >= 7.1 syntax: enum :status, { active: 0, archived: 1 }
|
|
104
|
+
first_arg = call.first_arg
|
|
105
|
+
second_arg = call.second_arg
|
|
106
|
+
return unless symbol? first_arg
|
|
107
|
+
return unless hash? second_arg or array? second_arg
|
|
108
|
+
|
|
109
|
+
enum_name = first_arg.value
|
|
110
|
+
enums = second_arg
|
|
111
|
+
end
|
|
97
112
|
|
|
98
|
-
enum_name = arg[1].value # first key
|
|
99
|
-
enums = arg[2] # first value
|
|
100
113
|
enums_name = pluralize(enum_name.to_s).to_sym
|
|
101
114
|
|
|
102
115
|
call_line = call.line
|
|
@@ -1,38 +1,72 @@
|
|
|
1
1
|
class Brakeman::Report::Sonar < Brakeman::Report::Base
|
|
2
2
|
def generate_report
|
|
3
|
+
warnings = all_warnings
|
|
3
4
|
report_object = {
|
|
4
|
-
|
|
5
|
+
rules: rules_json(warnings),
|
|
6
|
+
issues: warnings.map { |warning| issue_json(warning) }
|
|
5
7
|
}
|
|
6
|
-
|
|
8
|
+
JSON.pretty_generate report_object
|
|
7
9
|
end
|
|
8
|
-
|
|
10
|
+
|
|
9
11
|
private
|
|
10
|
-
|
|
12
|
+
|
|
13
|
+
def rules_json(warnings)
|
|
14
|
+
warnings
|
|
15
|
+
.each_with_object({}) do |w, unique_warnings|
|
|
16
|
+
unique_warnings[[w.warning_code, w.confidence]] ||= w
|
|
17
|
+
end
|
|
18
|
+
.values
|
|
19
|
+
.map do |w|
|
|
20
|
+
{
|
|
21
|
+
id: rule_id(w),
|
|
22
|
+
name: w.warning_type.to_s,
|
|
23
|
+
description: w.link,
|
|
24
|
+
engineId: "Brakeman",
|
|
25
|
+
cleanCodeAttribute: "TRUSTWORTHY",
|
|
26
|
+
type: "VULNERABILITY",
|
|
27
|
+
severity: rule_severity_for(w.confidence),
|
|
28
|
+
impacts: [
|
|
29
|
+
{
|
|
30
|
+
softwareQuality: "SECURITY",
|
|
31
|
+
severity: impact_severity_for(w.confidence)
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
11
38
|
def issue_json(warning)
|
|
12
39
|
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type: "VULNERABILITY",
|
|
16
|
-
severity: severity_level_for(warning.confidence),
|
|
40
|
+
ruleId: rule_id(warning),
|
|
41
|
+
effortMinutes: (4 - warning.confidence) * 15,
|
|
17
42
|
primaryLocation: {
|
|
18
43
|
message: warning.message,
|
|
19
44
|
filePath: warning.file.relative,
|
|
20
45
|
textRange: {
|
|
21
|
-
|
|
22
|
-
|
|
46
|
+
startLine: warning.line || 1,
|
|
47
|
+
endLine: warning.line || 1
|
|
23
48
|
}
|
|
24
|
-
}
|
|
25
|
-
effortMinutes: (4 - warning.confidence) * 15
|
|
49
|
+
}
|
|
26
50
|
}
|
|
27
51
|
end
|
|
28
52
|
|
|
29
|
-
def
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
53
|
+
def rule_id(warning)
|
|
54
|
+
"BRAKEMAN_#{warning.warning_code}_#{rule_severity_for(warning.confidence)}"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def rule_severity_for(confidence)
|
|
58
|
+
case confidence
|
|
59
|
+
when 0 then "CRITICAL"
|
|
60
|
+
when 1 then "MAJOR"
|
|
61
|
+
else "MINOR"
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def impact_severity_for(confidence)
|
|
66
|
+
case confidence
|
|
67
|
+
when 0 then "HIGH"
|
|
68
|
+
when 1 then "MEDIUM"
|
|
69
|
+
else "LOW"
|
|
36
70
|
end
|
|
37
71
|
end
|
|
38
72
|
end
|
|
@@ -149,7 +149,8 @@ module Brakeman
|
|
|
149
149
|
#Returns true if low_version <= RAILS_VERSION <= high_version
|
|
150
150
|
#
|
|
151
151
|
#If the Rails version is unknown, returns false.
|
|
152
|
-
def version_between? low_version, high_version, current_version =
|
|
152
|
+
def version_between? low_version, high_version, current_version = false
|
|
153
|
+
return false if current_version.nil? # protect against accidents
|
|
153
154
|
current_version ||= rails_version
|
|
154
155
|
return false unless current_version
|
|
155
156
|
|
data/lib/brakeman/version.rb
CHANGED
data/lib/brakeman/warning.rb
CHANGED
|
@@ -175,7 +175,7 @@ class Brakeman::Warning
|
|
|
175
175
|
def format_with_user_input strip = true, &block
|
|
176
176
|
if self.user_input
|
|
177
177
|
formatted = Brakeman::OutputProcessor.new.format(code, self.user_input, &block)
|
|
178
|
-
formatted.gsub
|
|
178
|
+
formatted = formatted.gsub(/(\t|\r|\n)+/, " ") if strip
|
|
179
179
|
formatted
|
|
180
180
|
else
|
|
181
181
|
format_code
|
|
@@ -321,4 +321,3 @@ class Brakeman::Warning
|
|
|
321
321
|
formatted
|
|
322
322
|
end
|
|
323
323
|
end
|
|
324
|
-
|