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

please namespace okjson to avoid conflicts with other libraries #26

Closed
wants to merge 1 commit into from

Conversation

kr
Copy link

@kr kr commented Sep 20, 2011

Hi, I've had reports of people getting errors when using two
libraries that both bundle okjson. These errors are usually
innocuous -- it's just things like constants being defined
twice -- but still it'd be nice to avoid them. (And it's more
serious if someone has patched their bundled copy of
okjson to modify its behavior.)

The solution we came up with was to request that libraries
bundling okjson rename the module to avoid conflicts. So
here's a patch to do that.

This prevents errors when multi_json is used alongside another library
that also bundles okjson.
@joshk
Copy link
Contributor

joshk commented Sep 20, 2011

Hey @kr!

Thanks for OkJson!

Funnily enough I have already done this in a branch (https://github.com/intridea/multi_json/tree/okjson_to_json_fallback) which I need to merge in.

I saw your advice in the OkJson readme last week and made the change as we have experienced this issue before.

I'm closing this PR as I will merge in the branch tomorrow.

Thanks again!

Josh

@joshk joshk closed this Sep 20, 2011
@kr
Copy link
Author

kr commented Sep 21, 2011

Nice, sounds good! And you're welcome, I'm glad people are finding okjson useful!

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

Successfully merging this pull request may close these issues.

2 participants