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

Why isn't json in your gemspec? #33

Closed
dtropp opened this issue Oct 10, 2011 · 2 comments
Closed

Why isn't json in your gemspec? #33

dtropp opened this issue Oct 10, 2011 · 2 comments

Comments

@dtropp
Copy link

dtropp commented Oct 10, 2011

Seems to break on: require 'json'

If you have the require, is it worth adding it to your gemspec?

Bundler.require
LoadError: no such file to load -- json
from /Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:24:in require' from /Library/Ruby/Gems/1.8/gems/flickraw-0.9/lib/flickraw.rb:24 from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:inrequire'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:in require' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:62:ineach'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:62:in require' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:51:ineach'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/runtime.rb:51:in require' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler.rb:112:inrequire'
from (irb):1

Thanks,
Dan

@hanklords
Copy link
Owner

Hello Dan,

json is present in ruby 1.9 stdlib, so there is no dependency required. We can't specify selective dependencies with gems, so if you use ruby 1.8 do a gem install json before.

See issue #20

Regards,
Mael

@hanklords
Copy link
Owner

I updated (in 8f87af1) the README to reflect this.

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