copiousfreetime / amalgalite

SQLite database engine embedded in a ruby extension.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FasterCSV

lkfken opened this issue · comments

I am not sure why this is happening....
gem uninstall fastercsv
amalgalite-1.1.2 depends on fastercsv (~> 1.5.4)

I thought amalgalite requires fastercsv only if ruby is < 1.9, but when I do gem install amalgalite, fastercsv is also installed due to dependency.

It is a limitation of rubygems that you cannot have different dependencies in a gem based upon a version of ruby itself. Since both ruby 1.8 and 1.9 will install the same gem, I put in the dependency so that 1.8 can work, since ruby 1.8 does not ship with fastercsv as the CSV library.

Which means that fastercsv will be installed for 1.9, and not used. If you do uninstall it, rubygems will complain that the dependency is missing when you require 'amalgalite'.

Unfortunately this is not an issue that amalgalite may resolve on its own.

I have several gems with a similar situation and am attempting to figure out a proper solution.

And yes i know that ruby 1.8 is being deprecated come June.

thank you very much for the thorough explanation.

glad to help. Also, I'll be pushing a new version of amalgalite soon with ruby 2.0 support. Please let me know if you have any bugs to fix or features you would like to see.