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

drop json_pure dependency ? #22

Closed
grosser opened this issue Apr 5, 2016 · 8 comments
Closed

drop json_pure dependency ? #22

grosser opened this issue Apr 5, 2016 · 8 comments
Milestone

Comments

@grosser
Copy link

grosser commented Apr 5, 2016

I already have enough json libraries ... and json works on rubinius/java/c ... so I'd love to not add yet another one to my project ... can this be a development dependency ?

@trevorrowe

@grosser
Copy link
Author

grosser commented Apr 5, 2016

looks like this is some kind of fix for a ruby 1.9.3 issue ... how about dropping 1.9.3 support ?
alternatively do a JSON.load('1') and if that fails instruct users how to update

@trevorrowe
Copy link
Contributor

I would like to drop support for Ruby 1.9.3, but the primary downstream dependency (the aws-sdk gem) supports back through Ruby 1.9.3. The json_pure dependency is soft dependency. It will be forced to be present only as a fallback. This library will attempt first to load json/ext first.

@grosser
Copy link
Author

grosser commented Apr 6, 2016

then make it a soft/development dependency ... atm you force everyone to install it :(

adding something like this would make only 1.9.3 users have to deal with it ...

gem 'json_pure' if ruby1.9.3

@trevorrowe
Copy link
Contributor

@grosser That approach has the negative side-effect of allowing 1.9.3 users to install jmespath and then have it fail at runtime, which would be a breaking change. I would consider this only with a major version bump of the library.

@grosser
Copy link
Author

grosser commented Apr 6, 2016

Then how about we do that ... maybe you want to get other breaking changes in too ... if not tag this issue v2.0 so it does not get lost ...

@trevorrowe trevorrowe added this to the Version 2.0 milestone Apr 6, 2016
@trevorrowe
Copy link
Contributor

That is a reasonable suggestion. I've created a label and milestone for a version 2.0. Currently there are no plans to version bump this library, but this will ensure this issue is not lost.

@fcarreiro
Copy link

+1 to dropping the json_pure dependency (or making it work better); it is also giving problems with Rails in #34.

@trevorrowe
Copy link
Contributor

Closed by #35. We've removed the dependency on json_pure, and have added some additional code to deal with the old Ruby 1.9.3 & JSON 1.5.5 differences.

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

No branches or pull requests

3 participants