From 9ecd212123f9b67dc78ddb61584b618ad7334662 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 15 Mar 2026 23:01:35 +0200 Subject: cleanup --- snippets/hyperstack/hyperstack_vm.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'snippets/hyperstack/hyperstack_vm.rb') diff --git a/snippets/hyperstack/hyperstack_vm.rb b/snippets/hyperstack/hyperstack_vm.rb index 2219fbb..9743683 100644 --- a/snippets/hyperstack/hyperstack_vm.rb +++ b/snippets/hyperstack/hyperstack_vm.rb @@ -5,6 +5,10 @@ begin require 'bundler/setup' rescue LoadError nil +rescue Gem::Exception => e + # Ruby can ship with a Bundler library version whose matching executable + # is not installed locally. Fall back to direct gem loading in that case. + raise unless e.is_a?(Gem::GemNotFoundException) || e.is_a?(Gem::LoadError) end require 'json' -- cgit v1.2.3