hanklords/flickraw

Why isn't json in your gemspec?

Closed this issue · 2 comments

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

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

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