summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby_smb/files/ruby_smb-3.2.5-import-pathname-no-simplecov.patch
blob: 074c5a70b3432dfda32abec0a4496198d1fc81fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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