zk-ruby / zookeeper

Zookeeper bindings for Ruby
MIT License
147 stars 75 forks source link

Fix loading on Ruby 3.2 #122

Closed malmckay closed 1 year ago

malmckay commented 1 year ago

RubyGems 3.4 will now clean up built artifacts after building extensions. Our previous require loaded the artifact from the ext directory.

This PR rescues from this load failure and loads the .bundle/.so instead. I briefly looked loading from the correct place, without this try/catch, that would take more work.