gentoo/dev-ruby/ruby_smb/files/ruby_smb-3.2.5-import-pathname-no-simplecov.patch
Sam James c09e267a0a
dev-ruby/ruby_smb: add 3.2.5
Signed-off-by: Sam James <sam@gentoo.org>
2023-03-22 07:35:10 +00:00

22 lines
814 B
Diff

https://github.com/rapid7/ruby_smb/pull/250
From a786565241b721e971ec60697d91516695cecb0a Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Wed, 22 Mar 2023 07:22:14 +0000
Subject: [PATCH] virtual_disk: Add 'pathname' require
Needed for join()'s call to Pathname.new(). Only comes up if disabling
simplecov because of a transitive-require.
--- a/lib/ruby_smb/server/share/provider/virtual_disk/virtual_pathname.rb
+++ b/lib/ruby_smb/server/share/provider/virtual_disk/virtual_pathname.rb
@@ -3,6 +3,8 @@ class Server
module Share
module Provider
class VirtualDisk < Disk
+ require 'pathname'
+
# This object emulates Ruby's builtin Pathname object but uses a virtual file system instead of the real local
# one.
class VirtualPathname