stompgem / stomp

A ruby gem for sending and receiving messages from a Stomp protocol compliant message queue. Includes: failover logic, ssl support.
http://stomp.github.com
Apache License 2.0
152 stars 80 forks source link

Object#timeout is deprecated, use Timeout.timeout instead #118

Closed dsilver829 closed 8 years ago

dsilver829 commented 8 years ago

I had to re-install my system and I upgraded (I think) to Ruby 2.3.

Now, upon running my Rails migrations, I get this error:

.rvm/gems/ruby-head/gems/stomp-1.3.4/lib/stomp/client.rb:90:in `initialize': Object#timeout is deprecated, use Timeout.timeout instead.

This looks like a pretty straightforward issue and I'm happy to create the pull request. I just want to check first - should I try to fix this?

Thanks!

aeberlin commented 8 years ago

@dsilver829, Yes, please do! If you don't get around to it, let me know and I'll send up a pull request.

Deprecation warnings polluting my logs drive me insane.