tristandunn / pusher-fake

A fake Pusher server for development and testing.
https://rubygems.org/gems/pusher-fake
MIT License
173 stars 32 forks source link

Gem::DependencyError on install #18

Closed imakewebthings closed 11 years ago

imakewebthings commented 11 years ago

Hi Tristan,

When running gem install pusher-fake I get the following error:

ERROR:  While executing gem ... (Gem::DependencyError)
  Unable to resolve dependencies: em-websocket requires http_parser.rb (~> 0.5.3);
  em-http-request requires http_parser.rb (>= 0.6.0.beta.2)

It does look like this commit in em-http-request bumped the http_parser requirement to the 0.6 beta for em-http-request v1.1. Perhaps pusher-fake could resolve this by specifying patch level ~> dependencies, or anything else more specific than ~> 1.0? For now I'm working around it by forcing a local install of em-http-request v1.0.3 and then installing pusher-fake.

Thank you for your time, this gem, and all your work.

tristandunn commented 11 years ago

I'm not seeing the issue.

$ gem install pusher-fake
Fetching: pusher-fake-0.9.0.gem (100%)
Successfully installed pusher-fake-0.9.0
1 gem installed

Are you specifying a different version or requiring one of the dependencies at a different version elsewhere?

imakewebthings commented 11 years ago

@tristandunn If you run gem list do you have em-http-request v 1.0.3 (or earlier) already installed? I believe this will only present itself if you do not have any version of those two dependencies, em-http-request and em-websocket, installed, as I didn't. Because I didn't, it tried to fetch em-http-request v1.1.0 leading to the dependency mismatch. In simpler words, does it not fail for you from a fresh Ruby installation?

tristandunn commented 11 years ago

@imakewebthings Ah, you're correct. I'll get a fix in over the weekend.