Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method trigger_async does not work? #55

Closed
interpegasus opened this issue Feb 11, 2014 · 1 comment
Closed

Method trigger_async does not work? #55

interpegasus opened this issue Feb 11, 2014 · 1 comment

Comments

@interpegasus
Copy link

Hi,

I would like to know why 'trigger_async' does not work sometimes?
It seems to work fine at Heroku, but not from my development machine (MAC OS 10.9)

This works:

    Pusher[('timeline ' + self.event.name.to_s).parameterize].trigger('timeline', {
        timeline_event: pusher_object, action: action
    })

This doesn't work:

    Pusher[('timeline ' + self.event.name.to_s).parameterize].trigger_async('timeline', {
        timeline_event: pusher_object, action: action
    })

Error:

cannot load such file -- em-http

$ rvm info

ruby-1.9.3-p448:

  system:
    uname:       "Darwin -MacBook-Air.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64"
    system:      "osx/10.9/x86_64"
    bash:        "/bin/bash => GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)"
    zsh:         "/bin/zsh => zsh 5.0.2 (x86_64-apple-darwin13.0)"

  rvm:
    version:      "rvm 1.22.1 () by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]"
    updated:      "5 months 27 days 5 hours 25 minutes 47 seconds ago"
    path:         "/Users/user/.rvm"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p448"
    date:         "2013-06-27"
    platform:     "x86_64-darwin11.4.2"
    patchlevel:   "2013-06-27 revision 41675"
    full_version: "ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin11.4.2]"

Thanks in advance

@zimbatm
Copy link
Contributor

zimbatm commented Oct 16, 2014

Sorry this issue slipped trough. The trigger_async method actually depends on em-http-request being installed. I think it might have been installed on one system and not the other.

@zimbatm zimbatm closed this as completed Oct 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants