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

mime-types requires 'json' but it is not in the dependencies #55

Closed
joekhoobyar opened this issue Feb 17, 2014 · 1 comment
Closed

mime-types requires 'json' but it is not in the dependencies #55

joekhoobyar opened this issue Feb 17, 2014 · 1 comment

Comments

@joekhoobyar
Copy link

Line 4 in mime/type.rb is: require 'json'
This should be added to the gem's dependencies.

@halostatue
Copy link
Member

No. The Ruby standard library includes JSON as of sometime in Ruby 1.9.x, which means that I can always assume that it's there in a sane environment. The installation of the json gem is completely unnecessary, and json-pure does not work with mime-types.

If you're using mime-types on Rubinius, it's up to you to make sure the Ruby standard library is present. My position on this will change if and when MRI stops including JSON.

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

No branches or pull requests

2 participants