From 83f9c12453f7cf5b51b1ef87b9e27d1e4af13948 Mon Sep 17 00:00:00 2001 From: yorik1984 Date: Fri, 6 Jan 2023 04:02:41 +0200 Subject: [PATCH 1/2] Update ruby.lua --- lua/neogen/configurations/ruby.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/neogen/configurations/ruby.lua b/lua/neogen/configurations/ruby.lua index a13b423..7cefdec 100644 --- a/lua/neogen/configurations/ruby.lua +++ b/lua/neogen/configurations/ruby.lua @@ -6,7 +6,7 @@ local extractors = require("neogen.utilities.extractors") local template = {} template.parent = { - func = { "method" }, + func = { "method", "singleton_method" }, class = { "class", "module" }, type = { "call" }, } @@ -20,7 +20,7 @@ local identifier = { template.data = { func = { - ["method"] = { + ["method|singleton_method"] = { ["0"] = { extract = function(node) local tree = { From eb2841043ab984751033b78bd316d042c1e38e09 Mon Sep 17 00:00:00 2001 From: danymat Date: Fri, 6 Jan 2023 11:49:19 +0100 Subject: [PATCH 2/2] ref: Versioning --- lua/neogen/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/neogen/init.lua b/lua/neogen/init.lua index 50e9d99..7aa2973 100644 --- a/lua/neogen/init.lua +++ b/lua/neogen/init.lua @@ -241,6 +241,8 @@ end --- --- Note: We will only document `major` and `minor` versions, not `patch` ones. (only X and Y in X.Y.z) --- +--- ## 2.12.0~ +--- - Fetch singleton methods in ruby (#121) --- ## 2.11.0~ --- - Calling `:Neogen` will try to find the best type used to generate annotations (#116) --- It'll recursively go up the syntax tree from the cursor position. @@ -290,7 +292,7 @@ end --- with multiple annotation conventions. ---@tag neogen-changelog ---@toc_entry Changes in neogen plugin -neogen.version = "2.11.0" +neogen.version = "2.12.0" --minidoc_afterlines_end return neogen