langalex/couch_potato — pull request #95 by cstettner (2014-03-23 11:28:19+00:00)
Title: Removing the dependency to json/add/core

Need to remove the json/add/core dependency, because there is a bug in that library.
Calling the `.to_json` method on a symbol will not return the expected JSON.
```
2.1.1 :001 > require 'json/add/core'
=> true
2.1.1 :002 > :test.to_json
=> "{\"json_class\":\"Symbol\",\"s\":\"test\"}"
```
So on calling the `.to_json` without including the json/add/core, the result is correct.
```
2.1.1 :001 > require 'json'
=> true
2.1.1 :002 > :test.to_json
=> "\"test\""
```

The bug occures when other libraries are calling the `.to_json` method. In my case, I can't use the poltergeist gem for headless capybara testing.

It would be nice, if the change could get included into the gem on rubygems.