socketry / nio4r

Cross-platform asynchronous I/O primitives for scalable network clients and servers.
Other
966 stars 86 forks source link

Resolve issue loading both nio and nio4r gems #302

Closed iterateNZ closed 1 year ago

iterateNZ commented 1 year ago

I've got an older application that uses the nio gem https://rubygems.org/gems/nio.

While updating to use puma I hit uninitialized constant NIO (NameError) as an error as the Nio constant is loaded first.

This change allows loading nio4r explicitly.

gem 'nio', '~> 0.2.5'
gem 'nio4r', require: 'nio4r'
gem 'puma'
ioquatix commented 1 year ago

This seems reasonable to me.