File: mongo.gemspec-fix-for-ruby3.3-file.exist.patch

package info (click to toggle)
ruby-mongo 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,332 kB
  • sloc: ruby: 45,579; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 692 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Paul Gevers <elbrus@debian.org>
Date: Thu, 27 Feb 2025 19:48:08 +0100
X-Dgit-Generated: 2.5.1-2 bf37ecf4a4269e7521a6116cd1aa87875c55bad7
Subject: mongo.gemspec: fix for ruby3.3 File.exists? -> File.exist?

Closes: #1094123

---

diff --git a/mongo.gemspec b/mongo.gemspec
index 0cac7d6..e7cb3ed 100644
--- a/mongo.gemspec
+++ b/mongo.gemspec
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
   s.description       = 'A Ruby driver for MongoDB'
   s.license           = 'Apache License Version 2.0'
 
-  if File.exists?('gem-private_key.pem')
+  if File.exist?('gem-private_key.pem')
     s.signing_key     = 'gem-private_key.pem'
     s.cert_chain      = ['gem-public_cert.pem']
   else