From 00b06afc2e7c04989eda58ae4936a840c4e484d5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:09:16 +0000 Subject: [PATCH 1/4] Bump commonmarker from 0.23.10 to 1.0.4 in /updater Bumps [commonmarker](https://github.com/gjtorikian/commonmarker) from 0.23.10 to 1.0.4. - [Release notes](https://github.com/gjtorikian/commonmarker/releases) - [Changelog](https://github.com/gjtorikian/commonmarker/blob/main/CHANGELOG.md) - [Commits](https://github.com/gjtorikian/commonmarker/compare/v0.23.10...v1.0.4) --- updated-dependencies: - dependency-name: commonmarker dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- common/dependabot-common.gemspec | 2 +- updater/Gemfile.lock | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/dependabot-common.gemspec b/common/dependabot-common.gemspec index 5d002925d1..aba24e90b3 100644 --- a/common/dependabot-common.gemspec +++ b/common/dependabot-common.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.add_dependency "aws-sdk-codecommit", "~> 1.28" spec.add_dependency "aws-sdk-ecr", "~> 1.5" spec.add_dependency "bundler", ">= 1.16", "< 3.0.0" - spec.add_dependency "commonmarker", ">= 0.20.1", "< 0.24.0" + spec.add_dependency "commonmarker", ">= 0.20.1", "< 1.1.0" spec.add_dependency "docker_registry2", "~> 1.18.0" spec.add_dependency "excon", "~> 0.109" spec.add_dependency "faraday", "2.7.11" diff --git a/updater/Gemfile.lock b/updater/Gemfile.lock index de10bf4423..d1fbf6b108 100644 --- a/updater/Gemfile.lock +++ b/updater/Gemfile.lock @@ -18,7 +18,7 @@ PATH aws-sdk-codecommit (~> 1.28) aws-sdk-ecr (~> 1.5) bundler (>= 1.16, < 3.0.0) - commonmarker (>= 0.20.1, < 0.24.0) + commonmarker (>= 0.20.1, < 1.1.0) docker_registry2 (~> 1.18.0) excon (~> 0.109) faraday (= 2.7.11) @@ -163,7 +163,8 @@ GEM base64 (0.1.1) bigdecimal (3.1.7) citrus (3.0.2) - commonmarker (0.23.10) + commonmarker (1.0.4) + rb_sys (~> 0.9) concurrent-ruby (1.2.3) crack (1.0.0) bigdecimal @@ -283,6 +284,7 @@ GEM racc (1.7.3) rainbow (3.1.1) rake (13.2.1) + rb_sys (0.9.97) rdoc (6.6.3.1) psych (>= 4.0.0) regexp_parser (2.9.0) From 3726970b8703f348b36546035429cdf1c273fe7d Mon Sep 17 00:00:00 2001 From: Rob Aiken Date: Wed, 24 Apr 2024 11:20:52 +0100 Subject: [PATCH 2/4] Bump top-level Gemfile.lock --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 755087184e..0e029d651c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,7 +18,7 @@ PATH aws-sdk-codecommit (~> 1.28) aws-sdk-ecr (~> 1.5) bundler (>= 1.16, < 3.0.0) - commonmarker (>= 0.20.1, < 0.24.0) + commonmarker (>= 0.20.1, < 1.1.0) docker_registry2 (~> 1.18.0) excon (~> 0.109) faraday (= 2.7.11) From 339a18294d3a6fb5e5f3408d618d99885e44f36f Mon Sep 17 00:00:00 2001 From: Rob Aiken Date: Wed, 24 Apr 2024 12:09:57 +0100 Subject: [PATCH 3/4] CommonMarker -> Commonmarker --- .../link_and_mention_sanitizer.rb | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/common/lib/dependabot/pull_request_creator/message_builder/link_and_mention_sanitizer.rb b/common/lib/dependabot/pull_request_creator/message_builder/link_and_mention_sanitizer.rb index e89c29bc25..298bc40ab4 100644 --- a/common/lib/dependabot/pull_request_creator/message_builder/link_and_mention_sanitizer.rb +++ b/common/lib/dependabot/pull_request_creator/message_builder/link_and_mention_sanitizer.rb @@ -1,10 +1,10 @@ # typed: strong # frozen_string_literal: true -require "commonmarker" require "sorbet-runtime" require "strscan" require "dependabot/pull_request_creator/message_builder" +require 'commonmarker' module Dependabot class PullRequestCreator @@ -44,7 +44,7 @@ def initialize(github_redirection_service:) sig { params(text: String, unsafe: T::Boolean, format_html: T::Boolean).returns(String) } def sanitize_links_and_mentions(text:, unsafe: false, format_html: true) - doc = CommonMarker.render_doc( + doc = Commonmarker.render_doc( text, :LIBERAL_HTML_TAG, COMMONMARKER_EXTENSIONS ) @@ -61,7 +61,7 @@ def sanitize_links_and_mentions(text:, unsafe: false, format_html: true) private - sig { params(doc: CommonMarker::Node).void } + sig { params(doc: Commonmarker::Node).void } def sanitize_mentions(doc) doc.walk do |node| if node.type == :text && @@ -86,7 +86,7 @@ def sanitize_mentions(doc) # This is because there are ecosystems that have packages that follow the same pattern # (e.g. @angular/angular-cli), and we don't want to create an invalid link, since # team mentions link to `https://github.com/org/:organization_name/teams/:team_name`. - sig { params(doc: CommonMarker::Node).void } + sig { params(doc: Commonmarker::Node).void } def sanitize_team_mentions(doc) doc.walk do |node| if node.type == :text && @@ -102,7 +102,7 @@ def sanitize_team_mentions(doc) end end - sig { params(doc: CommonMarker::Node).void } + sig { params(doc: Commonmarker::Node).void } def sanitize_links(doc) doc.walk do |node| if node.type == :link && node.url.match?(GITHUB_REF_REGEX) @@ -126,7 +126,7 @@ def sanitize_links(doc) end end - sig { params(doc: CommonMarker::Node).void } + sig { params(doc: Commonmarker::Node).void } def sanitize_nwo_text(doc) doc.walk do |node| if node.type == :text && @@ -137,7 +137,7 @@ def sanitize_nwo_text(doc) end end - sig { params(node: CommonMarker::Node).void } + sig { params(node: Commonmarker::Node).void } def replace_nwo_node(node) match = T.must(node.string_content.match(GITHUB_NWO_REGEX)) repo = match.named_captures.fetch("repo") @@ -156,9 +156,9 @@ def replace_github_host(text) ) end - sig { params(text: String).returns(T::Array[CommonMarker::Node]) } + sig { params(text: String).returns(T::Array[Commonmarker::Node]) } def build_mention_nodes(text) - nodes = T.let([], T::Array[CommonMarker::Node]) + nodes = T.let([], T::Array[Commonmarker::Node]) scan = StringScanner.new(text) until scan.eos? @@ -166,7 +166,7 @@ def build_mention_nodes(text) scan.scan_until(EOS_REGEX) line_match = T.must(line).match(MENTION_REGEX) mention = line_match&.to_s - text_node = CommonMarker::Node.new(:text) + text_node = Commonmarker::Node.new(:text) if mention && !mention.end_with?("/") text_node.string_content = line_match.pre_match @@ -183,9 +183,9 @@ def build_mention_nodes(text) nodes end - sig { params(text: String).returns(T::Array[CommonMarker::Node]) } + sig { params(text: String).returns(T::Array[Commonmarker::Node]) } def build_team_mention_nodes(text) - nodes = T.let([], T::Array[CommonMarker::Node]) + nodes = T.let([], T::Array[Commonmarker::Node]) scan = StringScanner.new(text) until scan.eos? @@ -193,7 +193,7 @@ def build_team_mention_nodes(text) scan.scan_until(EOS_REGEX) line_match = T.must(line).match(TEAM_MENTION_REGEX) mention = line_match&.to_s - text_node = CommonMarker::Node.new(:text) + text_node = Commonmarker::Node.new(:text) if mention text_node.string_content = line_match.pre_match @@ -208,24 +208,24 @@ def build_team_mention_nodes(text) nodes end - sig { params(text: String).returns(T::Array[CommonMarker::Node]) } + sig { params(text: String).returns(T::Array[Commonmarker::Node]) } def build_mention_link_text_nodes(text) - code_node = CommonMarker::Node.new(:code) + code_node = Commonmarker::Node.new(:code) code_node.string_content = insert_zero_width_space_in_mention(text) [code_node] end - sig { params(text: String).returns(CommonMarker::Node) } + sig { params(text: String).returns(Commonmarker::Node) } def build_nwo_text_node(text) - code_node = CommonMarker::Node.new(:code) + code_node = Commonmarker::Node.new(:code) code_node.string_content = text code_node end - sig { params(url: String, text: String).returns(CommonMarker::Node) } + sig { params(url: String, text: String).returns(Commonmarker::Node) } def create_link_node(url, text) - link_node = CommonMarker::Node.new(:link) - code_node = CommonMarker::Node.new(:code) + link_node = Commonmarker::Node.new(:link) + code_node = Commonmarker::Node.new(:code) link_node.url = url code_node.string_content = insert_zero_width_space_in_mention(text) link_node.append_child(code_node) @@ -241,7 +241,7 @@ def insert_zero_width_space_in_mention(mention) mention.sub("@", "@\u200B").encode("utf-8") end - sig { params(node: CommonMarker::Node).returns(T::Boolean) } + sig { params(node: Commonmarker::Node).returns(T::Boolean) } def parent_node_link?(node) node.type == :link || (!node.parent.nil? && parent_node_link?(T.must(node.parent))) end From 1c48619fb1324aec3de22ce2418df59901045fc9 Mon Sep 17 00:00:00 2001 From: Rob Aiken Date: Wed, 24 Apr 2024 16:55:20 +0100 Subject: [PATCH 4/4] Forces commonmarker to be version 1 or higher --- Gemfile.lock | 4 +- common/dependabot-common.gemspec | 2 +- sorbet/rbi/gems/commonmarker@0.23.10.rbi | 378 ----------------------- sorbet/rbi/gems/commonmarker@1.0.4.rbi | 87 ++++++ updater/Gemfile.lock | 2 +- 5 files changed, 91 insertions(+), 382 deletions(-) delete mode 100644 sorbet/rbi/gems/commonmarker@0.23.10.rbi create mode 100644 sorbet/rbi/gems/commonmarker@1.0.4.rbi diff --git a/Gemfile.lock b/Gemfile.lock index 51d43b4913..74691e8a77 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,7 +18,7 @@ PATH aws-sdk-codecommit (~> 1.28) aws-sdk-ecr (~> 1.5) bundler (>= 1.16, < 3.0.0) - commonmarker (>= 0.20.1, < 1.1.0) + commonmarker (>= 1.0.0, < 1.1.0) docker_registry2 (~> 1.18.0) excon (~> 0.109) faraday (= 2.7.11) @@ -162,7 +162,7 @@ GEM aws-eventstream (~> 1, >= 1.0.2) base64 (0.2.0) citrus (3.0.2) - commonmarker (0.23.10) + commonmarker (1.0.4-arm64-darwin) crack (0.4.5) rexml debug (1.9.2) diff --git a/common/dependabot-common.gemspec b/common/dependabot-common.gemspec index aba24e90b3..9131c477cf 100644 --- a/common/dependabot-common.gemspec +++ b/common/dependabot-common.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.add_dependency "aws-sdk-codecommit", "~> 1.28" spec.add_dependency "aws-sdk-ecr", "~> 1.5" spec.add_dependency "bundler", ">= 1.16", "< 3.0.0" - spec.add_dependency "commonmarker", ">= 0.20.1", "< 1.1.0" + spec.add_dependency "commonmarker", ">= 1.0.0", "< 1.1.0" spec.add_dependency "docker_registry2", "~> 1.18.0" spec.add_dependency "excon", "~> 0.109" spec.add_dependency "faraday", "2.7.11" diff --git a/sorbet/rbi/gems/commonmarker@0.23.10.rbi b/sorbet/rbi/gems/commonmarker@0.23.10.rbi deleted file mode 100644 index aa4e8088c2..0000000000 --- a/sorbet/rbi/gems/commonmarker@0.23.10.rbi +++ /dev/null @@ -1,378 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `commonmarker` gem. -# Please instead update this file by running `bin/tapioca gem commonmarker`. - -# source://commonmarker//lib/commonmarker/config.rb#3 -module CommonMarker - class << self - def extensions; end - - # Public: Parses a Markdown string into a `document` node. - # - # string - {String} to be parsed - # option - A {Symbol} or {Array of Symbol}s indicating the parse options - # extensions - An {Array of Symbol}s indicating the extensions to use - # - # Returns the `document` node. - # - # @raise [TypeError] - # - # source://commonmarker//lib/commonmarker.rb#37 - def render_doc(text, options = T.unsafe(nil), extensions = T.unsafe(nil)); end - - # Public: Parses a Markdown string into an HTML string. - # - # text - A {String} of text - # option - Either a {Symbol} or {Array of Symbol}s indicating the render options - # extensions - An {Array of Symbol}s indicating the extensions to use - # - # Returns a {String} of converted HTML. - # - # @raise [TypeError] - # - # source://commonmarker//lib/commonmarker.rb#23 - def render_html(text, options = T.unsafe(nil), extensions = T.unsafe(nil)); end - end -end - -# For Ruby::Enum, these must be classes, not modules -# -# source://commonmarker//lib/commonmarker/config.rb#5 -module CommonMarker::Config - class << self - # source://commonmarker//lib/commonmarker/config.rb#37 - def process_options(option, type); end - end -end - -# See https://github.com/github/cmark-gfm/blob/master/src/cmark-gfm.h#L673 -# -# source://commonmarker//lib/commonmarker/config.rb#7 -CommonMarker::Config::OPTS = T.let(T.unsafe(nil), Hash) - -# source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#4 -class CommonMarker::HtmlRenderer < ::CommonMarker::Renderer - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#77 - def blockquote(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#159 - def code(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#91 - def code_block(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#5 - def document(_); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#128 - def emph(_); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#223 - def footnote_definition(_); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#219 - def footnote_reference(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#10 - def header(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#85 - def hrule(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#110 - def html(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#146 - def image(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#120 - def inline_html(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#165 - def linebreak(_node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#140 - def link(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#33 - def list(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#57 - def list_item(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#17 - def paragraph(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#169 - def softbreak(_); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#215 - def strikethrough(_); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#132 - def strong(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#179 - def table(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#204 - def table_cell(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#187 - def table_header(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#195 - def table_row(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#66 - def tasklist(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#155 - def text(node); end - - private - - # @return [Boolean] - # - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#252 - def checked?(node); end - - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#239 - def out_footnote_backref; end - - # @return [Boolean] - # - # source://commonmarker//lib/commonmarker/renderer/html_renderer.rb#248 - def tasklist?(node); end -end - -# source://commonmarker//lib/commonmarker/node/inspect.rb#6 -class CommonMarker::Node - include ::Enumerable - include ::CommonMarker::Node::Inspect - - def _render_commonmark(*_arg0); end - def _render_html(_arg0, _arg1); end - def _render_plaintext(*_arg0); end - def _render_xml(_arg0); end - def append_child(_arg0); end - def delete; end - - # Public: Iterate over the children (if any) of the current pointer. - # - # source://commonmarker//lib/commonmarker/node.rb#66 - def each; end - - # Deprecated: Please use `each` instead - # - # source://commonmarker//lib/commonmarker/node.rb#78 - def each_child(&block); end - - def fence_info; end - def fence_info=(_arg0); end - def first_child; end - def header_level; end - def header_level=(_arg0); end - def html_escape_href(_arg0); end - def html_escape_html(_arg0); end - def insert_after(_arg0); end - def insert_before(_arg0); end - def last_child; end - def list_start; end - def list_start=(_arg0); end - def list_tight; end - def list_tight=(_arg0); end - def list_type; end - def list_type=(_arg0); end - def next; end - def parent; end - def prepend_child(_arg0); end - def previous; end - def sourcepos; end - def string_content; end - def string_content=(_arg0); end - def table_alignments; end - def tasklist_item_checked=(_arg0); end - def tasklist_item_checked?; end - def tasklist_state; end - def title; end - def title=(_arg0); end - - # Public: Convert the node to a CommonMark string. - # - # options - A {Symbol} or {Array of Symbol}s indicating the render options - # width - Column to wrap the output at - # - # Returns a {String}. - # - # source://commonmarker//lib/commonmarker/node.rb#49 - def to_commonmark(options = T.unsafe(nil), width = T.unsafe(nil)); end - - # Public: Convert the node to an HTML string. - # - # options - A {Symbol} or {Array of Symbol}s indicating the render options - # extensions - An {Array of Symbol}s indicating the extensions to use - # - # Returns a {String}. - # - # source://commonmarker//lib/commonmarker/node.rb#28 - def to_html(options = T.unsafe(nil), extensions = T.unsafe(nil)); end - - # Public: Convert the node to a plain text string. - # - # options - A {Symbol} or {Array of Symbol}s indicating the render options - # width - Column to wrap the output at - # - # Returns a {String}. - # - # source://commonmarker//lib/commonmarker/node.rb#60 - def to_plaintext(options = T.unsafe(nil), width = T.unsafe(nil)); end - - # Public: Convert the node to an XML string. - # - # options - A {Symbol} or {Array of Symbol}s indicating the render options - # - # Returns a {String}. - # - # source://commonmarker//lib/commonmarker/node.rb#38 - def to_xml(options = T.unsafe(nil)); end - - def type; end - def type_string; end - def url; end - def url=(_arg0); end - - # Public: An iterator that "walks the tree," descending into children recursively. - # - # blk - A {Proc} representing the action to take for each child - # - # @yield [_self] - # @yieldparam _self [CommonMarker::Node] the object that the method was called on - # - # source://commonmarker//lib/commonmarker/node.rb#13 - def walk(&block); end - - class << self - def markdown_to_html(_arg0, _arg1, _arg2); end - def markdown_to_xml(_arg0, _arg1, _arg2); end - def new(_arg0); end - def parse_document(_arg0, _arg1, _arg2, _arg3); end - end -end - -# source://commonmarker//lib/commonmarker/node/inspect.rb#7 -module CommonMarker::Node::Inspect - # source://commonmarker//lib/commonmarker/node/inspect.rb#10 - def inspect; end - - # @param printer [PrettyPrint] pp - # - # source://commonmarker//lib/commonmarker/node/inspect.rb#15 - def pretty_print(printer); end -end - -# source://commonmarker//lib/commonmarker/node/inspect.rb#8 -CommonMarker::Node::Inspect::PP_INDENT_SIZE = T.let(T.unsafe(nil), Integer) - -class CommonMarker::NodeError < ::StandardError; end - -# source://commonmarker//lib/commonmarker/renderer.rb#7 -class CommonMarker::Renderer - # @return [Renderer] a new instance of Renderer - # - # source://commonmarker//lib/commonmarker/renderer.rb#10 - def initialize(options: T.unsafe(nil), extensions: T.unsafe(nil)); end - - # source://commonmarker//lib/commonmarker/renderer.rb#76 - def block; end - - # source://commonmarker//lib/commonmarker/renderer.rb#68 - def blocksep; end - - # source://commonmarker//lib/commonmarker/renderer.rb#56 - def code_block(node); end - - # source://commonmarker//lib/commonmarker/renderer.rb#82 - def container(starter, ender); end - - # source://commonmarker//lib/commonmarker/renderer.rb#72 - def containersep; end - - # source://commonmarker//lib/commonmarker/renderer.rb#62 - def cr; end - - # source://commonmarker//lib/commonmarker/renderer.rb#52 - def document(_node); end - - # Returns the value of attribute in_plain. - # - # source://commonmarker//lib/commonmarker/renderer.rb#8 - def in_plain; end - - # Sets the attribute in_plain - # - # @param value the value to set the attribute in_plain to. - # - # source://commonmarker//lib/commonmarker/renderer.rb#8 - def in_plain=(_arg0); end - - # Returns the value of attribute in_tight. - # - # source://commonmarker//lib/commonmarker/renderer.rb#8 - def in_tight; end - - # Sets the attribute in_tight - # - # @param value the value to set the attribute in_tight to. - # - # source://commonmarker//lib/commonmarker/renderer.rb#8 - def in_tight=(_arg0); end - - # source://commonmarker//lib/commonmarker/renderer.rb#20 - def out(*args); end - - # source://commonmarker//lib/commonmarker/renderer.rb#88 - def plain; end - - # source://commonmarker//lib/commonmarker/renderer.rb#60 - def reference_def(_node); end - - # source://commonmarker//lib/commonmarker/renderer.rb#35 - def render(node); end - - # Returns the value of attribute warnings. - # - # source://commonmarker//lib/commonmarker/renderer.rb#8 - def warnings; end - - # Sets the attribute warnings - # - # @param value the value to set the attribute warnings to. - # - # source://commonmarker//lib/commonmarker/renderer.rb#8 - def warnings=(_arg0); end - - private - - # source://commonmarker//lib/commonmarker/renderer.rb#97 - def escape_href(str); end - - # source://commonmarker//lib/commonmarker/renderer.rb#101 - def escape_html(str); end - - # @return [Boolean] - # - # source://commonmarker//lib/commonmarker/renderer.rb#131 - def option_enabled?(opt); end - - # source://commonmarker//lib/commonmarker/renderer.rb#123 - def sourcepos(node); end - - # source://commonmarker//lib/commonmarker/renderer.rb#105 - def tagfilter(str); end -end - -# source://commonmarker//lib/commonmarker/version.rb#4 -CommonMarker::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/commonmarker@1.0.4.rbi b/sorbet/rbi/gems/commonmarker@1.0.4.rbi new file mode 100644 index 0000000000..52d8e0b672 --- /dev/null +++ b/sorbet/rbi/gems/commonmarker@1.0.4.rbi @@ -0,0 +1,87 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `commonmarker` gem. +# Please instead update this file by running `bin/tapioca gem commonmarker`. + +# source://commonmarker//lib/commonmarker/constants.rb#3 +module Commonmarker + private + + def commonmark_to_html(*_arg0); end + + class << self + def commonmark_to_html(*_arg0); end + + # Public: Parses a CommonMark string into an HTML string. + # + # text - A {String} of text + # options - A {Hash} of render, parse, and extension options to transform the text. + # plugins - A {Hash} of additional plugins. + # + # Returns a {String} of converted HTML. + # + # @raise [TypeError] + # + # source://commonmarker//lib/commonmarker.rb#19 + def to_html(text, options: T.unsafe(nil), plugins: T.unsafe(nil)); end + end +end + +# source://commonmarker//lib/commonmarker/config.rb#4 +module Commonmarker::Config + extend ::Commonmarker::Constants + extend ::Commonmarker::Utils + + class << self + # source://commonmarker//lib/commonmarker/config.rb#46 + def merged_with_defaults(options); end + + # source://commonmarker//lib/commonmarker/config.rb#66 + def process_extension_options(option); end + + # source://commonmarker//lib/commonmarker/config.rb#50 + def process_options(options); end + + # source://commonmarker//lib/commonmarker/config.rb#66 + def process_parse_options(option); end + + # source://commonmarker//lib/commonmarker/config.rb#58 + def process_plugins(plugins); end + + # source://commonmarker//lib/commonmarker/config.rb#66 + def process_render_options(option); end + + # source://commonmarker//lib/commonmarker/config.rb#82 + def process_syntax_highlighter_plugin(plugin); end + end +end + +# For details, see +# https://github.com/kivikakk/comrak/blob/162ef9354deb2c9b4a4e05be495aa372ba5bb696/src/main.rs#L201 +# +# source://commonmarker//lib/commonmarker/config.rb#7 +Commonmarker::Config::OPTIONS = T.let(T.unsafe(nil), Hash) + +# source://commonmarker//lib/commonmarker/config.rb#36 +Commonmarker::Config::PLUGINS = T.let(T.unsafe(nil), Hash) + +# source://commonmarker//lib/commonmarker/constants.rb#4 +module Commonmarker::Constants; end + +# source://commonmarker//lib/commonmarker/constants.rb#5 +Commonmarker::Constants::BOOLS = T.let(T.unsafe(nil), Array) + +# source://commonmarker//lib/commonmarker/renderer.rb#7 +class Commonmarker::Renderer; end + +# source://commonmarker//lib/commonmarker/utils.rb#6 +module Commonmarker::Utils + include ::Commonmarker::Constants + + # source://commonmarker//lib/commonmarker/utils.rb#9 + def fetch_kv(option, key, value, type); end +end + +# source://commonmarker//lib/commonmarker/version.rb#4 +Commonmarker::VERSION = T.let(T.unsafe(nil), String) diff --git a/updater/Gemfile.lock b/updater/Gemfile.lock index 60db5b563b..f7682e4851 100644 --- a/updater/Gemfile.lock +++ b/updater/Gemfile.lock @@ -18,7 +18,7 @@ PATH aws-sdk-codecommit (~> 1.28) aws-sdk-ecr (~> 1.5) bundler (>= 1.16, < 3.0.0) - commonmarker (>= 0.20.1, < 1.1.0) + commonmarker (>= 1.0.0, < 1.1.0) docker_registry2 (~> 1.18.0) excon (~> 0.109) faraday (= 2.7.11)