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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92870dc8af487c83349918c8493db9f66efd5651db9664849aab09894a08c38a
|
|
4
|
+
data.tar.gz: 8c9a3ffd9d7de88a284fb66fe4f0f107ba11ae8f733b6ce00f2b15568329cbc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d76521983617afd374ef4360f4d408e200d115912770850afbfe1200c3e204ac71a774e059fdbda7da2476388b30ce05d768a3181c59f7cfa98cc53333a1272
|
|
7
|
+
data.tar.gz: 705c23e41e760c3d02f1e358af0e4c9e26bbcaf4a8deeb340102fd52fe2ebf6e0155438b043909292d5efb417ae006c8f262c4c0ddba41a0ae880a336f07f36c
|
data/CHANGES.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
# 8.1.1 - 2026-11-20
|
|
2
|
+
|
|
3
|
+
* Only skip `UnscopedFind` when all `belongs_to` are optional (Artin Boghosian)
|
|
4
|
+
* Add check for Ruby2Shell/CVE-2026-132825
|
|
5
|
+
|
|
6
|
+
# 8.1.0 - 2026-09-30
|
|
7
|
+
|
|
8
|
+
* Better help and error message for `--ensure-latest`
|
|
9
|
+
* Fix frozen string error (Shai Coleman)
|
|
10
|
+
* Update Sonar report format (fangxing)
|
|
11
|
+
* Fix frozen `src` string error
|
|
12
|
+
* Recognize `Haml::AttributeBuilder.build_class` as an escaped output (Yuriy Tumanov)
|
|
13
|
+
* Include regex code in validation warnings (Eliot Sykes)
|
|
14
|
+
* Check validation regexes in non-activerecord models (Eliot Sykes)
|
|
15
|
+
* Skip top-level vendor directory before recursive globbing (Conor O'Donnell)
|
|
16
|
+
* Support Rails 7.1+ positional enum syntax in SQL injection check (Michael Vogl/Yuriy Tumanov)
|
|
17
|
+
|
|
1
18
|
# 8.0.6 - 2026-08-13
|
|
2
19
|
|
|
3
20
|
* Fix EOL date for Rails 8.0 (yeaseul-kim)
|
data/bundle/load.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
path = File.expand_path('../..', __FILE__)
|
|
2
|
-
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/csv-3.3.
|
|
2
|
+
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/csv-3.3.7/lib"
|
|
3
3
|
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/erubi-1.13.1/lib"
|
|
4
4
|
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/haml-6.4.0/lib"
|
|
5
5
|
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/highline-3.1.2/lib"
|
|
@@ -8,10 +8,10 @@ $:.unshift "#{path}/bundle/ruby/3.2.0/gems/reline-0.7.0/lib"
|
|
|
8
8
|
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/rexml-3.4.4/lib"
|
|
9
9
|
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/ruby2ruby-2.5.2/lib"
|
|
10
10
|
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/ruby_parser-3.22.0/lib"
|
|
11
|
-
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/sexp_processor-4.17.
|
|
11
|
+
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/sexp_processor-4.17.6/lib"
|
|
12
12
|
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/slim-5.2.2/lib"
|
|
13
|
-
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/temple-0.10.
|
|
13
|
+
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/temple-0.10.7/lib"
|
|
14
14
|
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/terminal-table-4.0.0/lib"
|
|
15
|
-
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/tilt-2.
|
|
16
|
-
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/unicode-display_width-3.
|
|
17
|
-
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/unicode-emoji-4.
|
|
15
|
+
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/tilt-2.9.0/lib"
|
|
16
|
+
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/unicode-display_width-3.3.0/lib"
|
|
17
|
+
$:.unshift "#{path}/bundle/ruby/3.2.0/gems/unicode-emoji-4.3.0/lib"
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# News
|
|
2
2
|
|
|
3
|
+
## 3.3.7 - 2026-10-28
|
|
4
|
+
|
|
5
|
+
### Improvements
|
|
6
|
+
|
|
7
|
+
* Improved documents.
|
|
8
|
+
* GH-376
|
|
9
|
+
* Patch by Oskar Eichler
|
|
10
|
+
|
|
11
|
+
* Improved error handling.
|
|
12
|
+
* GH-378
|
|
13
|
+
* GH-379
|
|
14
|
+
* Reported by sswander
|
|
15
|
+
|
|
16
|
+
### Thanks
|
|
17
|
+
|
|
18
|
+
* Oskar Eichler
|
|
19
|
+
|
|
20
|
+
* sswander
|
|
21
|
+
|
|
3
22
|
## 3.3.6 - 2026-07-27
|
|
4
23
|
|
|
5
24
|
### Improvements
|
|
@@ -978,63 +978,69 @@ class CSV
|
|
|
978
978
|
|
|
979
979
|
def parse_quotable_loose(&block)
|
|
980
980
|
@scanner.keep_start
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
@
|
|
985
|
-
next
|
|
986
|
-
end
|
|
987
|
-
original_line = line
|
|
988
|
-
line = line.delete_suffix(@row_separator)
|
|
989
|
-
|
|
990
|
-
if line.empty?
|
|
991
|
-
if @skip_blanks
|
|
981
|
+
kept = true
|
|
982
|
+
begin
|
|
983
|
+
@scanner.each_line(@row_separator) do |line|
|
|
984
|
+
if @skip_lines and skip_line?(line)
|
|
992
985
|
@scanner.keep_drop
|
|
993
986
|
@scanner.keep_start
|
|
994
987
|
next
|
|
995
988
|
end
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
989
|
+
original_line = line
|
|
990
|
+
line = line.delete_suffix(@row_separator)
|
|
991
|
+
|
|
992
|
+
if line.empty?
|
|
993
|
+
if @skip_blanks
|
|
994
|
+
@scanner.keep_drop
|
|
995
|
+
@scanner.keep_start
|
|
996
|
+
next
|
|
997
|
+
end
|
|
998
|
+
row = []
|
|
999
|
+
quoted_fields = FieldsConverter::NO_QUOTED_FIELDS
|
|
1000
|
+
elsif line.include?(@cr) or line.include?(@lf)
|
|
1001
|
+
kept = false
|
|
1002
|
+
@scanner.keep_back
|
|
1003
|
+
@parse_method = :parse_quotable_robust
|
|
1004
|
+
return parse_quotable_robust(&block)
|
|
1005
|
+
else
|
|
1006
|
+
row = line.split(@split_column_separator, -1)
|
|
1007
|
+
quoted_fields = []
|
|
1008
|
+
n_columns = row.size
|
|
1009
|
+
i = 0
|
|
1010
|
+
while i < n_columns
|
|
1011
|
+
column = row[i]
|
|
1012
|
+
if column.empty?
|
|
1015
1013
|
quoted_fields << false
|
|
1016
|
-
|
|
1017
|
-
elsif n_quotes == 2 and
|
|
1018
|
-
column.start_with?(@quote_character) and
|
|
1019
|
-
column.end_with?(@quote_character)
|
|
1020
|
-
quoted_fields << true
|
|
1021
|
-
row[i] = column[1..-2]
|
|
1014
|
+
row[i] = nil
|
|
1022
1015
|
else
|
|
1023
|
-
@
|
|
1024
|
-
|
|
1025
|
-
|
|
1016
|
+
n_quotes = column.count(@quote_character)
|
|
1017
|
+
if n_quotes.zero?
|
|
1018
|
+
quoted_fields << false
|
|
1019
|
+
# no quote
|
|
1020
|
+
elsif n_quotes == 2 and
|
|
1021
|
+
column.start_with?(@quote_character) and
|
|
1022
|
+
column.end_with?(@quote_character)
|
|
1023
|
+
quoted_fields << true
|
|
1024
|
+
row[i] = column[1..-2]
|
|
1025
|
+
else
|
|
1026
|
+
kept = false
|
|
1027
|
+
@scanner.keep_back
|
|
1028
|
+
@parse_method = :parse_quotable_robust
|
|
1029
|
+
return parse_quotable_robust(&block)
|
|
1030
|
+
end
|
|
1031
|
+
validate_field_size(row[i])
|
|
1026
1032
|
end
|
|
1027
|
-
|
|
1033
|
+
i += 1
|
|
1028
1034
|
end
|
|
1029
|
-
i += 1
|
|
1030
1035
|
end
|
|
1036
|
+
@scanner.keep_drop
|
|
1037
|
+
@scanner.keep_start
|
|
1038
|
+
@last_line = original_line
|
|
1039
|
+
emit_row(row, quoted_fields, &block)
|
|
1031
1040
|
end
|
|
1032
|
-
|
|
1033
|
-
@scanner.
|
|
1034
|
-
@last_line = original_line
|
|
1035
|
-
emit_row(row, quoted_fields, &block)
|
|
1041
|
+
ensure
|
|
1042
|
+
@scanner.keep_drop if kept
|
|
1036
1043
|
end
|
|
1037
|
-
@scanner.keep_drop
|
|
1038
1044
|
end
|
|
1039
1045
|
|
|
1040
1046
|
def parse_quotable_robust(&block)
|
data/bundle/ruby/3.2.0/gems/{sexp_processor-4.17.5 → sexp_processor-4.17.6}/lib/sexp_processor.rb
RENAMED
|
@@ -34,7 +34,7 @@ require "sexp"
|
|
|
34
34
|
class SexpProcessor
|
|
35
35
|
|
|
36
36
|
# duh
|
|
37
|
-
VERSION = "4.17.
|
|
37
|
+
VERSION = "4.17.6"
|
|
38
38
|
|
|
39
39
|
##
|
|
40
40
|
# Automatically shifts off the Sexp type before handing the
|
|
@@ -218,7 +218,7 @@ class SexpProcessor
|
|
|
218
218
|
return nil if exp.nil?
|
|
219
219
|
|
|
220
220
|
unless Sexp === exp then
|
|
221
|
-
raise SexpTypeError, "exp must be a Sexp, was
|
|
221
|
+
raise SexpTypeError, "exp must be a Sexp, was %s:%p" % [exp.class, exp]
|
|
222
222
|
end
|
|
223
223
|
|
|
224
224
|
if self.context.empty? then
|
|
@@ -296,7 +296,7 @@ class SexpProcessor
|
|
|
296
296
|
end
|
|
297
297
|
# result << sub_result
|
|
298
298
|
result = result.class.new(*result, sub_result) # HACK
|
|
299
|
-
end
|
|
299
|
+
end # until empty
|
|
300
300
|
|
|
301
301
|
# NOTE: this is costly, but we are in the generic processor
|
|
302
302
|
# so we shouldn't hit it too much with RubyToC stuff at least.
|
|
@@ -325,8 +325,8 @@ class SexpProcessor
|
|
|
325
325
|
rescue StandardError => err
|
|
326
326
|
return @exceptions[type].call self, exp, err if @exceptions.key? type
|
|
327
327
|
|
|
328
|
-
warn "
|
|
329
|
-
$DEBUG
|
|
328
|
+
warn "%s Exception thrown while processing %s for sexp %p %p" % \
|
|
329
|
+
[err.class, type, exp, caller] if $DEBUG
|
|
330
330
|
|
|
331
331
|
raise
|
|
332
332
|
end
|
data/bundle/ruby/3.2.0/gems/{temple-0.10.6 → temple-0.10.7}/lib/temple/filters/remove_bom.rb
RENAMED
|
@@ -6,7 +6,7 @@ module Temple
|
|
|
6
6
|
# @api public
|
|
7
7
|
class RemoveBOM < Parser
|
|
8
8
|
def call(s)
|
|
9
|
-
return s
|
|
9
|
+
return s unless /^UTF-(8|16|32)(BE|LE)?/.match?(s.encoding.name)
|
|
10
10
|
s.gsub(Regexp.new("\\A\uFEFF".encode(s.encoding.name)), ''.freeze)
|
|
11
11
|
end
|
|
12
12
|
end
|
|
@@ -26,7 +26,7 @@ module Temple
|
|
|
26
26
|
|
|
27
27
|
def on_static(content)
|
|
28
28
|
return [:static, content] unless @pretty
|
|
29
|
-
unless @pre_tags && @pre_tags
|
|
29
|
+
unless @pre_tags && @pre_tags.match?(content)
|
|
30
30
|
content = content.sub(/\A\s*\n?/, "\n".freeze) if @indent_next
|
|
31
31
|
content = content.gsub("\n".freeze, indent)
|
|
32
32
|
end
|
|
@@ -77,7 +77,7 @@ module Temple
|
|
|
77
77
|
def indent_dynamic(text, indent_next, indent, pre_tags = nil)
|
|
78
78
|
text = text.to_s
|
|
79
79
|
safe = text.respond_to?(:html_safe?) && text.html_safe?
|
|
80
|
-
return text if pre_tags && text
|
|
80
|
+
return text if pre_tags && pre_tags.match?(text)
|
|
81
81
|
|
|
82
82
|
level = text.scan(/^\s*/).map(&:size).min
|
|
83
83
|
text = text.gsub(/(?!\A)^\s{#{level}}/, '') if level > 0
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# = Herb (<tt>herb</tt>, <tt>html.erb</tt>)
|
|
4
|
+
#
|
|
5
|
+
# {Herb}[https://herb-tools.dev] is an HTML-aware ERB implementation, which parses the
|
|
6
|
+
# HTML in the template in addition to the embedded Ruby.
|
|
7
|
+
#
|
|
8
|
+
# Herb's engine is API compatible with the Erubi engine, so all the documentation of
|
|
9
|
+
# {Erubi}[rdoc-ref:lib/tilt/erubi.rb] applies in addition to the following:
|
|
10
|
+
#
|
|
11
|
+
# === Differences from Erubi
|
|
12
|
+
#
|
|
13
|
+
# Herb parses the HTML in the template, and raises <tt>Herb::Engine::CompilationError</tt>
|
|
14
|
+
# when creating the template if the HTML is invalid (such as unclosed or mismatched tags),
|
|
15
|
+
# or if the embedded Ruby has invalid syntax. Erubi inspects neither the HTML nor the Ruby;
|
|
16
|
+
# with Erubi, invalid Ruby syntax instead raises a SyntaxError when Tilt compiles the
|
|
17
|
+
# template, which by default does not happen until the template is first rendered.
|
|
18
|
+
#
|
|
19
|
+
# Herb escapes interpolated values based on where they appear in the document, using a
|
|
20
|
+
# separate escape function for attribute values, <tt><script></tt> content, and
|
|
21
|
+
# <tt><style></tt> content. Erubi uses a single escape function everywhere.
|
|
22
|
+
#
|
|
23
|
+
# Herb accepts additional engine options. As with the Erubi engine options, these are
|
|
24
|
+
# passed through to the engine class. See
|
|
25
|
+
# {Herb::Engine}[https://herb-tools.dev/projects/engine] for the full list.
|
|
26
|
+
#
|
|
27
|
+
# === Usage
|
|
28
|
+
#
|
|
29
|
+
# The <tt>Tilt::HerbTemplate</tt> class is registered for all files ending in <tt>.herb</tt> or
|
|
30
|
+
# <tt>.html.erb</tt> by default. Unlike {Erubi}[rdoc-ref:lib/tilt/erubi.rb], it is not
|
|
31
|
+
# registered for <tt>.erb</tt> or <tt>.rhtml</tt>, since that would change which engine is
|
|
32
|
+
# used for existing templates. To use Herb for those as well, use:
|
|
33
|
+
#
|
|
34
|
+
# Tilt.register Tilt::HerbTemplate, 'erb', 'rhtml'
|
|
35
|
+
#
|
|
36
|
+
# __NOTE:__ It's suggested that your program <tt>require 'herb'</tt> at load time when
|
|
37
|
+
# using this template engine within a threaded environment.
|
|
38
|
+
#
|
|
39
|
+
# === Options
|
|
40
|
+
#
|
|
41
|
+
# ==== <tt>:engine_class => Herb::Engine</tt>
|
|
42
|
+
#
|
|
43
|
+
# Allows you to specify a custom engine class to use instead of the
|
|
44
|
+
# default which is <tt>Herb::Engine</tt>.
|
|
45
|
+
#
|
|
46
|
+
# ==== Other
|
|
47
|
+
#
|
|
48
|
+
# Other options are passed to the constructor of the engine class.
|
|
49
|
+
#
|
|
50
|
+
# === See also
|
|
51
|
+
#
|
|
52
|
+
# * {Herb Home}[https://herb-tools.dev]
|
|
53
|
+
# * {Herb::Engine}[https://herb-tools.dev/projects/engine]
|
|
54
|
+
# * {Herb Source}[https://github.com/marcoroth/herb]
|
|
55
|
+
#
|
|
56
|
+
# === Related module
|
|
57
|
+
#
|
|
58
|
+
# * Tilt::HerbTemplate
|
|
59
|
+
|
|
60
|
+
require_relative 'template'
|
|
61
|
+
require 'herb'
|
|
62
|
+
require 'herb/engine'
|
|
63
|
+
|
|
64
|
+
module Tilt
|
|
65
|
+
class HerbTemplate < Template
|
|
66
|
+
def prepare
|
|
67
|
+
@options[:preamble] = false
|
|
68
|
+
@options[:postamble] = false
|
|
69
|
+
@options[:ensure] = true
|
|
70
|
+
|
|
71
|
+
# Unlike Erubi, Herb uses the filename when reporting errors, so pass
|
|
72
|
+
# the file Tilt loaded the template from if the caller did not set one.
|
|
73
|
+
@options[:filename] ||= file
|
|
74
|
+
|
|
75
|
+
engine_class = @options[:engine_class] || Herb::Engine
|
|
76
|
+
|
|
77
|
+
# If :freeze option is given, the intent is to setup frozen string
|
|
78
|
+
# literals in the template. So enable frozen string literals in the
|
|
79
|
+
# code Tilt generates if the :freeze option is given.
|
|
80
|
+
if @freeze_string_literals = !!@options[:freeze]
|
|
81
|
+
# Passing the :freeze option to Herb sets the
|
|
82
|
+
# frozen-string-literal magic comment, which doesn't have an effect
|
|
83
|
+
# with Tilt as Tilt wraps the resulting code. Worse, the magic
|
|
84
|
+
# comment appearing not at the top of the file can cause a warning.
|
|
85
|
+
# So remove the :freeze option before passing to Herb.
|
|
86
|
+
@options.delete(:freeze)
|
|
87
|
+
|
|
88
|
+
# Herb by default appends .freeze to template literals, but that is
|
|
89
|
+
# not necessary and slows down code when Tilt is using frozen string
|
|
90
|
+
# literals, so pass the :freeze_template_literals option to not
|
|
91
|
+
# append .freeze.
|
|
92
|
+
@options[:freeze_template_literals] = false
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
@engine = engine_class.new(@data, @options)
|
|
96
|
+
@outvar = @engine.bufvar
|
|
97
|
+
@src = @engine.src
|
|
98
|
+
|
|
99
|
+
@engine
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def precompiled_template(locals)
|
|
103
|
+
@src
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def freeze_string_literals?
|
|
107
|
+
@freeze_string_literals
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
@@ -5,7 +5,7 @@ require_relative 'tilt/template'
|
|
|
5
5
|
# Namespace for Tilt. This module is not intended to be included anywhere.
|
|
6
6
|
module Tilt
|
|
7
7
|
# Current version.
|
|
8
|
-
VERSION = '2.
|
|
8
|
+
VERSION = '2.9.0'
|
|
9
9
|
|
|
10
10
|
EMPTY_ARRAY = [].freeze
|
|
11
11
|
private_constant :EMPTY_ARRAY
|
|
@@ -146,8 +146,9 @@ module Tilt
|
|
|
146
146
|
# Template Implementations ================================================
|
|
147
147
|
|
|
148
148
|
# ERB
|
|
149
|
-
register_lazy :ERBTemplate, 'tilt/erb', 'erb', 'rhtml'
|
|
150
|
-
register_lazy :ErubiTemplate, 'tilt/erubi', 'erb', 'rhtml', 'erubi'
|
|
149
|
+
register_lazy :ERBTemplate, 'tilt/erb', 'erb', 'rhtml', 'html.erb'
|
|
150
|
+
register_lazy :ErubiTemplate, 'tilt/erubi', 'erb', 'rhtml', 'erubi', 'html.erb'
|
|
151
|
+
register_lazy :HerbTemplate, 'tilt/herb', 'herb', 'html.erb'
|
|
151
152
|
|
|
152
153
|
# Markdown
|
|
153
154
|
register_lazy :KramdownTemplate, 'tilt/kramdown', 'markdown', 'mkd', 'md'
|
data/bundle/ruby/3.2.0/gems/{unicode-display_width-3.2.0 → unicode-display_width-3.3.0}/README.md
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Determines the monospace display width of a string in Ruby, which is useful for all kinds of terminal-based applications. The implementation is based on [EastAsianWidth.txt](https://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt), the [Emoji specfication](https://www.unicode.org/reports/tr51/) and other data, 100% in Ruby. It does not rely on the OS vendor ([wcwidth](https://github.com/janlelis/wcswidth-ruby)) to provide an up-to-date method for measuring string width in terminals.
|
|
4
4
|
|
|
5
|
-
Unicode version: **
|
|
5
|
+
Unicode version: **18.0.0** (September 2026)
|
|
6
6
|
|
|
7
7
|
## Gem Version 3 — Improved Emoji Support
|
|
8
8
|
|
|
@@ -188,7 +188,7 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
|
188
188
|
|
|
189
189
|
## Copyright & Info
|
|
190
190
|
|
|
191
|
-
- Copyright (c) 2011, 2015-
|
|
191
|
+
- Copyright (c) 2011, 2015-2026 Jan Lelis, https://janlelis.com, released under the MIT
|
|
192
192
|
license
|
|
193
193
|
- Early versions based on runpaint's unicode-data interface: Copyright (c) 2009 Run Paint Run Run
|
|
194
194
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
|
Binary file
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Unicode
|
|
4
4
|
class DisplayWidth
|
|
5
|
-
VERSION = "3.
|
|
6
|
-
UNICODE_VERSION = "
|
|
5
|
+
VERSION = "3.3.0"
|
|
6
|
+
UNICODE_VERSION = "18.0.0"
|
|
7
7
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/")
|
|
8
8
|
INDEX_FILENAME = DATA_DIRECTORY + "/display_width.marshal.gz"
|
|
9
9
|
end
|
|
@@ -51,9 +51,9 @@ module Unicode
|
|
|
51
51
|
def self.of(string, ambiguous = nil, overwrite = nil, old_options = {}, **options)
|
|
52
52
|
# Binary strings don't make much sense when calculating display width.
|
|
53
53
|
# Assume it's valid UTF-8
|
|
54
|
-
if string.encoding == Encoding::BINARY
|
|
55
|
-
|
|
56
|
-
string.
|
|
54
|
+
if string.encoding == Encoding::BINARY
|
|
55
|
+
utf8_string = string.dup.force_encoding(Encoding::UTF_8)
|
|
56
|
+
string = utf8_string if utf8_string.valid_encoding?
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
string = string.encode(Encoding::UTF_8, invalid: :replace, undef: :replace) unless string.encoding == Encoding::UTF_8
|
|
@@ -236,7 +236,7 @@ module Unicode
|
|
|
236
236
|
{
|
|
237
237
|
ambiguous: kwargs[:ambiguous] || @ambiguous,
|
|
238
238
|
overwrite: kwargs[:overwrite] || @overwrite,
|
|
239
|
-
emoji: kwargs
|
|
239
|
+
emoji: kwargs.fetch(:emoji, @emoji),
|
|
240
240
|
}
|
|
241
241
|
end
|
|
242
242
|
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
unicode-emoji (4.
|
|
4
|
+
unicode-emoji (4.3.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
+
drb (2.2.3)
|
|
9
10
|
io-console (0.6.0)
|
|
10
11
|
irb (1.8.1)
|
|
11
12
|
rdoc
|
|
12
13
|
reline (>= 0.3.8)
|
|
13
|
-
minitest (
|
|
14
|
+
minitest (6.0.6)
|
|
15
|
+
drb (~> 2.0)
|
|
16
|
+
prism (~> 1.5)
|
|
14
17
|
mutex_m (0.3.0)
|
|
15
18
|
ostruct (0.6.3)
|
|
19
|
+
prism (1.9.0)
|
|
16
20
|
psych (5.1.0)
|
|
17
21
|
stringio
|
|
18
22
|
rake (13.0.6)
|
|
@@ -34,4 +38,4 @@ DEPENDENCIES
|
|
|
34
38
|
unicode-emoji!
|
|
35
39
|
|
|
36
40
|
BUNDLED WITH
|
|
37
|
-
|
|
41
|
+
4.1.0.beta1
|
|
@@ -8,9 +8,9 @@ Additional features:
|
|
|
8
8
|
- A categorized list of Emoji (RGI: Recommended for General Interchange)
|
|
9
9
|
- Retrieve Emoji properties info about specific codepoints (Emoji_Modifier, Emoji_Presentation, etc.)
|
|
10
10
|
|
|
11
|
-
Emoji version: **
|
|
11
|
+
Emoji version: **18.0** (September 2026)
|
|
12
12
|
|
|
13
|
-
CLDR version (used for sub-region flags): **
|
|
13
|
+
CLDR version (used for sub-region flags): **48** (October 2025)
|
|
14
14
|
|
|
15
15
|
## Gemfile
|
|
16
16
|
|
|
@@ -184,7 +184,7 @@ A list of all Emoji (generated from this gem) can be found at [character.constru
|
|
|
184
184
|
|
|
185
185
|
## Usage – Properties Data
|
|
186
186
|
|
|
187
|
-
Allows you to access the codepoint data for a single character form Unicode's [emoji-data.txt](https://www.unicode.org/Public/
|
|
187
|
+
Allows you to access the codepoint data for a single character form Unicode's [emoji-data.txt](https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-data.txt) file:
|
|
188
188
|
|
|
189
189
|
```ruby
|
|
190
190
|
require "unicode/emoji"
|
|
@@ -201,5 +201,5 @@ Unicode::Emoji.properties "☝" # => ["Emoji", "Emoji_Modifier_Base"]
|
|
|
201
201
|
|
|
202
202
|
## MIT
|
|
203
203
|
|
|
204
|
-
- Copyright (C) 2017-
|
|
204
|
+
- Copyright (C) 2017-2026 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
|
205
205
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
|
Binary file
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module Unicode
|
|
4
4
|
module Emoji
|
|
5
|
-
VERSION = "4.
|
|
6
|
-
EMOJI_VERSION = "
|
|
7
|
-
UNICODE_VERSION = "
|
|
5
|
+
VERSION = "4.3.0"
|
|
6
|
+
EMOJI_VERSION = "18.0"
|
|
7
|
+
UNICODE_VERSION = "18.0.0"
|
|
8
8
|
CLDR_VERSION = "48"
|
|
9
9
|
DATA_DIRECTORY = File.expand_path('../../../data', __dir__).freeze
|
|
10
10
|
INDEX_FILENAME = (DATA_DIRECTORY + "/emoji.marshal.gz").freeze
|
|
11
11
|
|
|
12
|
-
# Unicode properties, see https://www.unicode.org/Public/
|
|
12
|
+
# Unicode properties, see https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-data.txt
|
|
13
13
|
PROPERTY_NAMES = {
|
|
14
14
|
E: "Emoji",
|
|
15
15
|
B: "Emoji_Modifier_Base",
|