-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Add yajl, multi_json and uuidtools to travis #157
Conversation
We have a few extra code paths that will only be activated if we use one of these gems. Adding them to the build matrix should cover those cases with all the tests in the regular test suite.
Previously travis was failing because it was looking for a gemspec in the gemfiles directory
d1a0b24
to
6f3fe0a
Compare
understand failures
By default it returns nil, but unfortunately json-schema expects failure to result in an exception. If nil is returned it's treated as a valid result and is used. In the case of initialize_data this is a problem because it overwrites the data passed in with nil
It turns out that yajl support is broken - it will parse strings that contain a json hash just fine, but if you pass it a string that does not parse, json-schema throws it away and tries to parse nil instead. Two of the common test suite tests picked this up (but I'm surprised it wasn't more than that) |
0af4076
to
35a828d
Compare
latest version of ruby Should make the build faster
35a828d
to
7f5ed1c
Compare
👍, it's cool you got this down to fewer jobs than what it was earlier today =) |
👍 What a mess, thanks for taking these on @pd and @iainbeeston |
Add yajl, multi_json and uuidtools to travis
I discovered today that there are a few extra code paths that will only be activated if we use one of the following gems:
It's possible for json-schema to break when using some of those gems, but for the test suite to still pass. This pull request should fix that problem.