git: c46f9a831cdf - main - devel/rubygem-ruby-lsp-rails: Update to 0.3.26
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Nov 2024 13:47:09 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c46f9a831cdf401064b440698480541d98d90fc2 commit c46f9a831cdf401064b440698480541d98d90fc2 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-11-21 13:30:03 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-11-21 13:39:25 +0000 devel/rubygem-ruby-lsp-rails: Update to 0.3.26 Changes: https://github.com/Shopify/ruby-lsp-rails/releases --- devel/rubygem-ruby-lsp-rails/Makefile | 3 +- devel/rubygem-ruby-lsp-rails/distinfo | 6 +- devel/rubygem-ruby-lsp-rails/files/patch-ruby-lsp | 128 ---------------------- 3 files changed, 4 insertions(+), 133 deletions(-) diff --git a/devel/rubygem-ruby-lsp-rails/Makefile b/devel/rubygem-ruby-lsp-rails/Makefile index 8a1c28002cc1..851b195dcc83 100644 --- a/devel/rubygem-ruby-lsp-rails/Makefile +++ b/devel/rubygem-ruby-lsp-rails/Makefile @@ -1,6 +1,5 @@ PORTNAME= ruby-lsp-rails -PORTVERSION= 0.3.21 -PORTREVISION= 1 +PORTVERSION= 0.3.26 CATEGORIES= devel rubygems MASTER_SITES= RG diff --git a/devel/rubygem-ruby-lsp-rails/distinfo b/devel/rubygem-ruby-lsp-rails/distinfo index 7c80fefac430..4510e87bfbf7 100644 --- a/devel/rubygem-ruby-lsp-rails/distinfo +++ b/devel/rubygem-ruby-lsp-rails/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1729927063 -SHA256 (rubygem/ruby-lsp-rails-0.3.21.gem) = 8a56466510a1c2c2f171460972aab532544d539cabbea57eb922f8250eb7f6b7 -SIZE (rubygem/ruby-lsp-rails-0.3.21.gem) = 18944 +TIMESTAMP = 1731679764 +SHA256 (rubygem/ruby-lsp-rails-0.3.26.gem) = f58e92c17a78a7df27bd563b32cc1557400fcd5e7f1d0c782ca272b9b34b6351 +SIZE (rubygem/ruby-lsp-rails-0.3.26.gem) = 20480 diff --git a/devel/rubygem-ruby-lsp-rails/files/patch-ruby-lsp b/devel/rubygem-ruby-lsp-rails/files/patch-ruby-lsp deleted file mode 100644 index ddc43ba2304d..000000000000 --- a/devel/rubygem-ruby-lsp-rails/files/patch-ruby-lsp +++ /dev/null @@ -1,128 +0,0 @@ -Obtained from: https://github.com/Shopify/ruby-lsp-rails/commit/77650f0303da7bd0ff7ce718721f3fef767e16de - https://github.com/Shopify/ruby-lsp-rails/commit/3a01040ac964764cf672c4c59f3b7d92da8f015a - ---- lib/ruby_lsp/ruby_lsp_rails/addon.rb.orig 2024-11-04 01:43:34 UTC -+++ lib/ruby_lsp/ruby_lsp_rails/addon.rb -@@ -53,7 +53,7 @@ module RubyLsp - @outgoing_queue << Notification.window_log_message("Activating Ruby LSP Rails add-on v#{VERSION}") - - register_additional_file_watchers(global_state: global_state, outgoing_queue: outgoing_queue) -- @global_state.index.register_enhancement(IndexingEnhancement.new) -+ @global_state.index.register_enhancement(IndexingEnhancement.new(@global_state.index)) - - # Start booting the real client in a background thread. Until this completes, the client will be a NullClient - @client_mutex.unlock -@@ -128,7 +128,7 @@ module RubyLsp - - sig { params(global_state: GlobalState, outgoing_queue: Thread::Queue).void } - def register_additional_file_watchers(global_state:, outgoing_queue:) -- return unless global_state.supports_watching_files -+ return unless global_state.client_capabilities.supports_watching_files - - outgoing_queue << Request.new( - id: "ruby-lsp-rails-file-watcher", ---- lib/ruby_lsp/ruby_lsp_rails/indexing_enhancement.rb.orig 2024-11-04 01:43:34 UTC -+++ lib/ruby_lsp/ruby_lsp_rails/indexing_enhancement.rb -@@ -3,13 +3,11 @@ module RubyLsp - - module RubyLsp - module Rails -- class IndexingEnhancement -+ class IndexingEnhancement < RubyIndexer::Enhancement - extend T::Sig -- include RubyIndexer::Enhancement - - sig do - override.params( -- index: RubyIndexer::Index, - owner: T.nilable(RubyIndexer::Entry::Namespace), - node: Prism::CallNode, - file_path: String, -@@ -19,16 +17,16 @@ module RubyLsp - ), - ).void - end -- def on_call_node(index, owner, node, file_path, code_units_cache) -+ def on_call_node_enter(owner, node, file_path, code_units_cache) - return unless owner - - name = node.name - - case name - when :extend -- handle_concern_extend(index, owner, node) -+ handle_concern_extend(owner, node) - when :has_one, :has_many, :belongs_to, :has_and_belongs_to_many -- handle_association(index, owner, node, file_path, code_units_cache) -+ handle_association(owner, node, file_path, code_units_cache) - end - end - -@@ -36,7 +34,6 @@ module RubyLsp - - sig do - params( -- index: RubyIndexer::Index, - owner: RubyIndexer::Entry::Namespace, - node: Prism::CallNode, - file_path: String, -@@ -46,7 +43,7 @@ module RubyLsp - ), - ).void - end -- def handle_association(index, owner, node, file_path, code_units_cache) -+ def handle_association(owner, node, file_path, code_units_cache) - arguments = node.arguments&.arguments - return unless arguments - -@@ -64,7 +61,7 @@ module RubyLsp - loc = RubyIndexer::Location.from_prism_location(name_arg.location, code_units_cache) - - # Reader -- index.add(RubyIndexer::Entry::Method.new( -+ @index.add(RubyIndexer::Entry::Method.new( - name, - file_path, - loc, -@@ -76,7 +73,7 @@ module RubyLsp - )) - - # Writer -- index.add(RubyIndexer::Entry::Method.new( -+ @index.add(RubyIndexer::Entry::Method.new( - "#{name}=", - file_path, - loc, -@@ -90,12 +87,11 @@ module RubyLsp - - sig do - params( -- index: RubyIndexer::Index, - owner: RubyIndexer::Entry::Namespace, - node: Prism::CallNode, - ).void - end -- def handle_concern_extend(index, owner, node) -+ def handle_concern_extend(owner, node) - arguments = node.arguments&.arguments - return unless arguments - -@@ -105,7 +101,7 @@ module RubyLsp - module_name = node.full_name - next unless module_name == "ActiveSupport::Concern" - -- index.register_included_hook(owner.name) do |index, base| -+ @index.register_included_hook(owner.name) do |index, base| - class_methods_name = "#{owner.name}::ClassMethods" - - if index.indexed?(class_methods_name) ---- ruby-lsp-rails.gemspec.orig 2024-11-04 01:43:34 UTC -+++ ruby-lsp-rails.gemspec -@@ -21,6 +21,6 @@ Gem::Specification.new do |s| - - s.specification_version = 4 - -- s.add_runtime_dependency(%q<ruby-lsp>.freeze, [">= 0.20.0".freeze, "< 0.21.0".freeze]) -+ s.add_runtime_dependency(%q<ruby-lsp>.freeze, [">= 0.21.2".freeze, "< 0.22.0".freeze]) - end -