diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-15 23:01:35 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-15 23:01:35 +0200 |
| commit | 9ecd212123f9b67dc78ddb61584b618ad7334662 (patch) | |
| tree | 86a1b7918fc90ebca22d6212034ccac8b6397469 /snippets/hyperstack/hyperstack_vm.rb | |
| parent | 9e19e9d14ef1e08b26fc474cbc9793f0316fd91f (diff) | |
cleanup
Diffstat (limited to 'snippets/hyperstack/hyperstack_vm.rb')
| -rw-r--r-- | snippets/hyperstack/hyperstack_vm.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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' |
