diff options
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' |
