You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-full-overlay/dev-ruby/ruby_smb/files/ruby_smb-3.2.5-import-pathn...

22 lines
814 B

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