Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix detection for the json_gem adapter
* JSON::JSON_LOADED is also set by json/pure and so it is not enough to detect if the JSON native extension is loaded. * JSON::Ext is not enough either, because json_pure includes json/ext.rb. * JSON::Ext::Parser is only defined if the native extension is loaded so that is reliable. * Fixes #196 * See that issue for details.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters