From 7c2fe325787c0f1dd44c7618ab2f0ab8f8c8e7de Mon Sep 17 00:00:00 2001 From: birdee Date: Thu, 21 Nov 2024 05:14:20 -0800 Subject: [PATCH] neovim: fix ruby provider warning Fixing this warning from checkhealth provider.ruby: require("provider.ruby.health").check() Ruby provider (optional) ~ - Ruby: ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux] - Host: /nix/store/l354hgiahcjd81qazlc870104i26lm9b-neovim-0.10.2birdeevim/bin/birdeeVim-ruby - OK Latest "neovim" gem is installed: /home/birdee/.local/share/gem/ruby/3.3.0/gems/neovim-0.10.0/lib/neovim/connection.rb:1: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. You can add logger to your Gemfile or gemspec to silence this warning. 0.10.0 steps taken: added `gem 'logger'` to Gemfile ran the following on the directory nix run --no-write-lock-file github:BirdeeHub/neovim_ruby_updater --- .../editors/neovim/ruby_provider/Gemfile | 1 + .../editors/neovim/ruby_provider/Gemfile.lock | 6 ++++-- .../editors/neovim/ruby_provider/gemset.nix | 14 ++++++++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/editors/neovim/ruby_provider/Gemfile b/pkgs/applications/editors/neovim/ruby_provider/Gemfile index eebecf2906fb..e59d0636aacc 100644 --- a/pkgs/applications/editors/neovim/ruby_provider/Gemfile +++ b/pkgs/applications/editors/neovim/ruby_provider/Gemfile @@ -1,3 +1,4 @@ source 'https://rubygems.org' gem 'neovim' +gem 'logger' diff --git a/pkgs/applications/editors/neovim/ruby_provider/Gemfile.lock b/pkgs/applications/editors/neovim/ruby_provider/Gemfile.lock index dc0140032066..ad005030b00e 100644 --- a/pkgs/applications/editors/neovim/ruby_provider/Gemfile.lock +++ b/pkgs/applications/editors/neovim/ruby_provider/Gemfile.lock @@ -1,7 +1,8 @@ GEM remote: https://rubygems.org/ specs: - msgpack (1.7.2) + logger (1.6.1) + msgpack (1.7.5) multi_json (1.15.0) neovim (0.10.0) msgpack (~> 1.1) @@ -11,7 +12,8 @@ PLATFORMS ruby DEPENDENCIES + logger neovim BUNDLED WITH - 2.3.27 + 2.5.16 diff --git a/pkgs/applications/editors/neovim/ruby_provider/gemset.nix b/pkgs/applications/editors/neovim/ruby_provider/gemset.nix index e2df8d535c47..75b461a908a3 100644 --- a/pkgs/applications/editors/neovim/ruby_provider/gemset.nix +++ b/pkgs/applications/editors/neovim/ruby_provider/gemset.nix @@ -1,13 +1,23 @@ { + logger = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0lwncq2rf8gm79g2rcnnyzs26ma1f4wnfjm6gs4zf2wlsdz5in9s"; + type = "gem"; + }; + version = "1.6.1"; + }; msgpack = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1a5adcb7bwan09mqhj3wi9ib52hmdzmqg7q08pggn3adibyn5asr"; + sha256 = "1a5fsgchkpcca4wf3pipbb2jbj523l7fbaq37j10cr0yymwlkc7z"; type = "gem"; }; - version = "1.7.2"; + version = "1.7.5"; }; multi_json = { groups = ["default"];