diff options
Diffstat (limited to 'snippets/hyperstack/hyperstack.rb')
| -rwxr-xr-x | snippets/hyperstack/hyperstack.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/snippets/hyperstack/hyperstack.rb b/snippets/hyperstack/hyperstack.rb index d5b409b..dd83225 100755 --- a/snippets/hyperstack/hyperstack.rb +++ b/snippets/hyperstack/hyperstack.rb @@ -3,12 +3,8 @@ begin require 'bundler/setup' -rescue LoadError +rescue LoadError, Gem::GemNotFoundException, Gem::LoadError, Errno::ENOENT 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' |
