From nobody Tue May 28 10:24:18 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VpTC65F9Jz5Lxxh; Tue, 28 May 2024 10:24:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VpTC61PQRz4LQb; Tue, 28 May 2024 10:24:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716891858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yiDOcx0YFLB5Yg0LlkTyolNcoCblJdUHmTX9y3WKSfc=; b=km2GPqhpr7ArscXUw2igkSm11BcWXK5XOPDnQa/8Zhlw+KhhgOsU1bO9V68/fINeYHCtc1 RN8K2iS5BXzFTmh8Omcs3nsC+NdMOHh7tagnhs6zSCtCTCwb/pk2Fj5z83PsTBmapdoAOk yEojrTZaW4F0XnqoAWIj9F9hnSDqwd5BynuefFG0ghcE64glYDzQDyt/RDkwa8wfz2m0E+ 9Ijz0mtKbCjrIguZ28x91R0zKK2W4XHNjBIa4bhn8SpKa6aIkfQ9EzgU4t0fDf5KfSdxwU qJ17qaKTIYVqORSckGF2HNX7lnia4KalUO5CypbvSWxbTF0nhFlsCW7pl/5Nlg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716891858; a=rsa-sha256; cv=none; b=p6NpP38PxWHFsu+MmsQu60HiLpKJ4ErAQI3W3/tyukp7HwWcoc/s5wIDhwbcXYTn8jHBi5 g/V8B9e3o6vtCoBOLuTInKNMTAokgL0aTA8DhzmpSwPDpVHiK3+s84PkKj8cDchFMvmDE4 nOMc1s89PH7vc2UwzfpeR5PqKrmeu0CHLIDenS1mlWPWLOlJOg1GJ3Ggt/BGk6Wo7DeUKm 2pFvR41CkEk8Q/2YdxBFn+TsZjMpCz9g0BjMB3HsL0MdHmNXKUzoEo9JI1zJ7BefWGntxU /ECgKQQAYgmDCjwoWoDckXm4XOCYcIxN8e7NttvzM5grpeVl93PKrmQ70nF3bA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716891858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yiDOcx0YFLB5Yg0LlkTyolNcoCblJdUHmTX9y3WKSfc=; b=wC9KUfpJmMhxBgqV0J2gCXDklglqH1wImcZaZ+IzaWr+ExCufqipqOKm31vJcAsQq53y1y FBzUN62S2RPbnPxMlzHpsLUvfY36m7k9jx6nLhLHwzlNvq4bstL31cUBngWzAIQc6TKqwB QNxHohjYK+6imjsQL37jXVPbEtcSU76FxsQH99HaylVzsdpUiGBGVHBa30CD/bAymkN1NK cRg3pjsKvrQk6snx2USpDk9gcpjMJVCg/hgR/2N8DQDLGf4Ok2Db6DwcSJJMk/nthMM3Aa gGtDiiifJN6tSunYWplatl5bfZkMRjY29m2PAZszCkftEat+fsNDP/zFMAUH3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VpTC60zGJz1NjP; Tue, 28 May 2024 10:24:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44SAOI3p031967; Tue, 28 May 2024 10:24:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44SAOI3T031964; Tue, 28 May 2024 10:24:18 GMT (envelope-from git) Date: Tue, 28 May 2024 10:24:18 GMT Message-Id: <202405281024.44SAOI3T031964@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: f3ecda044594 - main - devel/rubygem-ruby-lsp: Update to 0.16.7 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f3ecda044594f14f22ae7e4ac193baa3b7037381 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f3ecda044594f14f22ae7e4ac193baa3b7037381 commit f3ecda044594f14f22ae7e4ac193baa3b7037381 Author: Po-Chuan Hsieh AuthorDate: 2024-05-28 10:01:26 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-05-28 10:21:46 +0000 devel/rubygem-ruby-lsp: Update to 0.16.7 Changes: https://github.com/Shopify/ruby-lsp/releases --- devel/rubygem-ruby-lsp/Makefile | 2 +- devel/rubygem-ruby-lsp/distinfo | 6 +- devel/rubygem-ruby-lsp/files/patch-gemspec | 14 --- devel/rubygem-ruby-lsp/files/patch-prism | 156 ----------------------------- 4 files changed, 4 insertions(+), 174 deletions(-) diff --git a/devel/rubygem-ruby-lsp/Makefile b/devel/rubygem-ruby-lsp/Makefile index 51551b245d06..be6174f4dd74 100644 --- a/devel/rubygem-ruby-lsp/Makefile +++ b/devel/rubygem-ruby-lsp/Makefile @@ -1,5 +1,5 @@ PORTNAME= ruby-lsp -PORTVERSION= 0.16.6 +PORTVERSION= 0.16.7 CATEGORIES= devel rubygems MASTER_SITES= RG diff --git a/devel/rubygem-ruby-lsp/distinfo b/devel/rubygem-ruby-lsp/distinfo index 2631626f934a..7d4f2447df92 100644 --- a/devel/rubygem-ruby-lsp/distinfo +++ b/devel/rubygem-ruby-lsp/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1715843722 -SHA256 (rubygem/ruby-lsp-0.16.6.gem) = eefd337ca6ff51b5ccf8a6b82161fde1477a36e75d78295ad6294318db5495cc -SIZE (rubygem/ruby-lsp-0.16.6.gem) = 87040 +TIMESTAMP = 1716448802 +SHA256 (rubygem/ruby-lsp-0.16.7.gem) = c3d555463f04b50288afed9514a33a0df3e79b12f5c7507a533134a7c230601c +SIZE (rubygem/ruby-lsp-0.16.7.gem) = 88576 diff --git a/devel/rubygem-ruby-lsp/files/patch-gemspec b/devel/rubygem-ruby-lsp/files/patch-gemspec deleted file mode 100644 index 819f6170860f..000000000000 --- a/devel/rubygem-ruby-lsp/files/patch-gemspec +++ /dev/null @@ -1,14 +0,0 @@ -Obtained from: https://github.com/Shopify/ruby-lsp/commit/e3c0f201239b56f47c5c6bdd3d034ea6b0bda5f9 - https://github.com/Shopify/ruby-lsp/commit/70f7d59827d4e6c0c8c9ebb3aa85e0bdc07e25e2 - ---- ruby-lsp.gemspec.orig 2024-05-17 18:30:23 UTC -+++ ruby-lsp.gemspec -@@ -24,7 +24,7 @@ Gem::Specification.new do |s| - s.specification_version = 4 - - s.add_runtime_dependency(%q.freeze, ["~> 3.17.0".freeze]) -- s.add_runtime_dependency(%q.freeze, [">= 0.23.0".freeze, "< 0.28".freeze]) -+ s.add_runtime_dependency(%q.freeze, [">= 0.29.0".freeze, "< 0.30".freeze]) - s.add_runtime_dependency(%q.freeze, [">= 0.5.10782".freeze]) - end - diff --git a/devel/rubygem-ruby-lsp/files/patch-prism b/devel/rubygem-ruby-lsp/files/patch-prism deleted file mode 100644 index f41efbe1ce42..000000000000 --- a/devel/rubygem-ruby-lsp/files/patch-prism +++ /dev/null @@ -1,156 +0,0 @@ -Obtained from: https://github.com/Shopify/ruby-lsp/commit/e3c0f201239b56f47c5c6bdd3d034ea6b0bda5f9 - ---- lib/core_ext/uri.rb.orig 2024-05-17 18:30:23 UTC -+++ lib/core_ext/uri.rb -@@ -11,6 +11,9 @@ module URI - # On Windows, if the path begins with the disk name, we need to add a leading slash to make it a valid URI - escaped_path = if /^[A-Z]:/i.match?(path) - DEFAULT_PARSER.escape("/#{path}") -+ elsif path.start_with?("//?/") -+ # Some paths on Windows start with "//?/". This is a special prefix that allows for long file paths -+ DEFAULT_PARSER.escape(path.delete_prefix("//?")) - else - DEFAULT_PARSER.escape(path) - end ---- lib/ruby_lsp/listeners/document_highlight.rb.orig 2024-05-17 18:30:23 UTC -+++ lib/ruby_lsp/listeners/document_highlight.rb -@@ -271,7 +271,7 @@ module RubyLsp - def on_constant_path_node_enter(node) - return unless matches?(node, CONSTANT_PATH_NODES) - -- add_highlight(Constant::DocumentHighlightKind::READ, node.location) -+ add_highlight(Constant::DocumentHighlightKind::READ, node.name_loc) - end - - sig { params(node: Prism::ConstantReadNode).void } ---- lib/ruby_lsp/listeners/document_link.rb.orig 2024-05-17 18:30:23 UTC -+++ lib/ruby_lsp/listeners/document_link.rb -@@ -30,7 +30,7 @@ module RubyLsp - lookup[spec.name] = {} - lookup[spec.name][spec.version.to_s] = {} - -- Dir.glob("**/*.rb", base: "#{spec.full_gem_path}/").each do |path| -+ Dir.glob("**/*.rb", base: "#{spec.full_gem_path.delete_prefix("//?/")}/").each do |path| - lookup[spec.name][spec.version.to_s][path] = "#{spec.full_gem_path}/#{path}" - end - end ---- lib/ruby_lsp/listeners/semantic_highlighting.rb.orig 2024-05-17 18:30:23 UTC -+++ lib/ruby_lsp/listeners/semantic_highlighting.rb -@@ -58,6 +58,7 @@ module RubyLsp - :on_constant_operator_write_node_enter, - :on_constant_or_write_node_enter, - :on_constant_target_node_enter, -+ :on_constant_path_node_enter, - :on_local_variable_and_write_node_enter, - :on_local_variable_operator_write_node_enter, - :on_local_variable_or_write_node_enter, -@@ -302,17 +303,64 @@ module RubyLsp - def on_class_node_enter(node) - return unless visible?(node, @range) - -- @response_builder.add_token(node.constant_path.location, :class, [:declaration]) -+ constant_path = node.constant_path - -+ if constant_path.is_a?(Prism::ConstantReadNode) -+ @response_builder.add_token(constant_path.location, :class, [:declaration]) -+ else -+ each_constant_path_part(constant_path) do |part| -+ loc = case part -+ when Prism::ConstantPathNode -+ part.name_loc -+ when Prism::ConstantReadNode -+ part.location -+ end -+ next unless loc -+ -+ @response_builder.add_token(loc, :class, [:declaration]) -+ end -+ end -+ - superclass = node.superclass -- @response_builder.add_token(superclass.location, :class) if superclass -+ -+ if superclass.is_a?(Prism::ConstantReadNode) -+ @response_builder.add_token(superclass.location, :class) -+ elsif superclass -+ each_constant_path_part(superclass) do |part| -+ loc = case part -+ when Prism::ConstantPathNode -+ part.name_loc -+ when Prism::ConstantReadNode -+ part.location -+ end -+ next unless loc -+ -+ @response_builder.add_token(loc, :class) -+ end -+ end - end - - sig { params(node: Prism::ModuleNode).void } - def on_module_node_enter(node) - return unless visible?(node, @range) - -- @response_builder.add_token(node.constant_path.location, :namespace, [:declaration]) -+ constant_path = node.constant_path -+ -+ if constant_path.is_a?(Prism::ConstantReadNode) -+ @response_builder.add_token(constant_path.location, :namespace, [:declaration]) -+ else -+ each_constant_path_part(constant_path) do |part| -+ loc = case part -+ when Prism::ConstantPathNode -+ part.name_loc -+ when Prism::ConstantReadNode -+ part.location -+ end -+ next unless loc -+ -+ @response_builder.add_token(loc, :namespace, [:declaration]) -+ end -+ end - end - - sig { params(node: Prism::ImplicitNode).void } -@@ -325,6 +373,14 @@ module RubyLsp - sig { params(node: Prism::ImplicitNode).void } - def on_implicit_node_leave(node) - @inside_implicit_node = false -+ end -+ -+ sig { params(node: Prism::ConstantPathNode).void } -+ def on_constant_path_node_enter(node) -+ return if @inside_implicit_node -+ return unless visible?(node, @range) -+ -+ @response_builder.add_token(node.name_loc, :namespace) - end - - private ---- lib/ruby_lsp/requests/support/common.rb.orig 2024-05-17 18:30:23 UTC -+++ lib/ruby_lsp/requests/support/common.rb -@@ -167,6 +167,24 @@ module RubyLsp - constant_name(path) - end - end -+ -+ # Iterates over each part of a constant path, so that we can easily push response items for each section of the -+ # name. For example, for `Foo::Bar::Baz`, this method will invoke the block with `Foo`, then `Bar` and finally -+ # `Baz`. -+ sig do -+ params( -+ node: Prism::Node, -+ block: T.proc.params(part: Prism::Node).void, -+ ).void -+ end -+ def each_constant_path_part(node, &block) -+ current = T.let(node, T.nilable(Prism::Node)) -+ -+ while current.is_a?(Prism::ConstantPathNode) -+ block.call(current) -+ current = current.parent -+ end -+ end - end - end - end