Skip to content

Error using MultiJson.load in gem #5

Description

@murrekatt

In Ruby 1.9.3 and Rails 3.1.x, opening the ESHQ like this

socket = ESHQ.open(channel: 'channel')

results in this problem

LoadError: cannot load such file -- {"presence_id":null,"channel":"chat","socket":"..."}

The problem is with the multi_json version (<1.3.4) that comes with this Rails version

activesupport (3.1.10)
  multi_json (>= 1.0, < 1.3)

and it has some kind of conflict for MultiJson.load used in this gem you can read about here and here.

Changing the gem code to use decode solves this problem, but a better way is maybe to detect which to use - decode or load.

I'll make a pull request for this shortly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions