Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gems: difference between sqlite3 and sqlite3-ruby?

I accidentally ran:

sudo gem install sqlite3

instead of:

sudo gem install sqlite3-ruby

So now when I run gem list I get:

gem list

*** LOCAL GEMS ***

sqlite3 (0.0.7)
sqlite3-ruby (1.2.5)

What is the difference between the two? And do I need both?

like image 551
aarona Avatar asked Feb 19 '10 05:02

aarona


2 Answers

As far as I can tell today (June 2011), both gems are the same.

On RubyGems.org sqlite3 and sqlite3-ruby point to the same sqlite3-ruby repository on github.

From the project description on github:

This module allows Ruby programs to interface with the SQLite3 database engine (http://www.sqlite.org). You must have the SQLite engine installed in order to build this module. Note that this module is NOT compatible with SQLite 2.x.

One of the maintainers confirmed the renaming of the gem from sqlite3-ruby to sqlite3 here:

This announcement is to let you know that the sqlite3-ruby gem is being renamed to (drum roll please) "sqlite3".

We will maintain backwards compatibility by releasing an empty "sqlite3-ruby" gem that depends on "sqlite3". The empty sqlite3-ruby gem will contain a post installation message that will inform people to make the switch.

like image 66
cschol Avatar answered Sep 22 '22 19:09

cschol


When using sqlite3-ruby, you'll get the following output:

Hello! The sqlite3-ruby gem has changed it's name to just sqlite3. Rather than installing sqlite3-ruby, you should install sqlite3. Please update your dependencies accordingly.

Thanks from the Ruby sqlite3 team!

<3 <3 <3 <3

so it seems like 'sqlite3' is the way to go

like image 30
KrauseFx Avatar answered Sep 22 '22 19:09

KrauseFx