Closed spradlig closed 10 years ago
Sorry for the formatting, never posted an issue on git before.
It's okay, I fixed the formatting. My guess is that it's an issue with ruby 1.8.7. This version is very old and now unsupported by the core developers. Ubuntu 12.04 has a ruby1.9.1 package I think or you could install another version from source. There's various utilities like ruby-build, ruby-install and RVM that help you with that.
Fixed on master
So I've worked with Ruby some but wouldn't qualify myself and strong in Ruby. However, the PHP library for a pusher client is broken and so I was attempting to get the Ruby one working.
It appears to connect but then bomb when getting a message. The test script subscribes to 2 channels and then uses your
code to bind the channel message. Here's my error message.
Here are my gems:
* LOCAL GEMS *
clipboard (1.0.5) commonwatir (4.0.0) dalli (2.7.0) firewatir (1.9.4) headless (1.0.1) json (1.8.1) multi_json (1.8.4) mysql (2.9.1) narray (0.6.0.8) pusher-client (0.4.0) websocket (1.0.7)
I'm running Ubuntu 12.04 with Ruby 1.8.7 (I think that is the version Ubuntu installs by default. I haven't changed it from Ubuntu's default.)
My googling led to lots of other gems having this issue and some fingers pointing at jruby but I can't say they seemed conclusive.