summaryrefslogtreecommitdiff
path: root/dev-ruby/org-ruby/files
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-ruby/org-ruby/files
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-ruby/org-ruby/files')
-rw-r--r--dev-ruby/org-ruby/files/org-ruby-0.9.12-file-exists.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/org-ruby/files/org-ruby-0.9.12-file-exists.patch b/dev-ruby/org-ruby/files/org-ruby-0.9.12-file-exists.patch
new file mode 100644
index 000000000000..04d3c8ba9ad4
--- /dev/null
+++ b/dev-ruby/org-ruby/files/org-ruby-0.9.12-file-exists.patch
@@ -0,0 +1,36 @@
+commit c80af35e142d7705a367b5b39545fbba5b1f9bc2
+Author: Hans de Graaff <hans@degraaff.org>
+Date: Sat Dec 9 09:23:29 2023 +0100
+
+ Use non-deprecated File.exist? method
+
+ File.exists? has been deprecated for some time and is no longer
+ present in Ruby 3.2. With this change the specs pass again on Ruby
+ 3.2.
+
+diff --git a/lib/org-ruby/output_buffer.rb b/lib/org-ruby/output_buffer.rb
+index 90a0aae..3179cd5 100644
+--- a/lib/org-ruby/output_buffer.rb
++++ b/lib/org-ruby/output_buffer.rb
+@@ -137,7 +137,7 @@ module Orgmode
+ end
+
+ def do_custom_markup
+- if File.exists? @options[:markup_file]
++ if File.exist? @options[:markup_file]
+ load_custom_markup
+ if @custom_blocktags.empty?
+ no_valid_markup_found
+diff --git a/lib/org-ruby/parser.rb b/lib/org-ruby/parser.rb
+index a57fd9e..192b855 100644
+--- a/lib/org-ruby/parser.rb
++++ b/lib/org-ruby/parser.rb
+@@ -129,7 +129,7 @@ module Orgmode
+
+ # Check include file availability and permissions
+ def check_include_file(file_path)
+- can_be_included = File.exists? file_path
++ can_be_included = File.exist? file_path
+
+ if not ENV['ORG_RUBY_INCLUDE_ROOT'].nil?
+ # Ensure we have full paths