From a175314c3e5827eb193872241446f2f8f5c9d33c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:07:14 +0200 Subject: Adding upstream version 1:10.5.12. Signed-off-by: Daniel Baumann --- .../vendor/groonga/lib/mrb/scripts/plugin_loader.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 storage/mroonga/vendor/groonga/lib/mrb/scripts/plugin_loader.rb (limited to 'storage/mroonga/vendor/groonga/lib/mrb/scripts/plugin_loader.rb') diff --git a/storage/mroonga/vendor/groonga/lib/mrb/scripts/plugin_loader.rb b/storage/mroonga/vendor/groonga/lib/mrb/scripts/plugin_loader.rb new file mode 100644 index 00000000..09b972f1 --- /dev/null +++ b/storage/mroonga/vendor/groonga/lib/mrb/scripts/plugin_loader.rb @@ -0,0 +1,14 @@ +module Groonga + class PluginLoader + class << self + def load_file(path) + begin + load(path) + rescue => error + Context.instance.record_error(:plugin_error, error) + nil + end + end + end + end +end -- cgit v1.2.3