gem is an evil?

Hi all,

looks like "gem update" killed my application. it was a very simplistic application that i carefully cooked under ubuntu after the selfprepared recipe:

rails+goldberg+activescaffold+capistrano+mongrel+apache2

not sure if a strange*) gem rails-1.2.3.6906 was an indirect killer, but definitely as for now I am motivated to use plugins more, more and more...

Comments to this bloggy post are welcome.

regards,

Valery.

*) try to google for "rails-1.2.3.6906" i got only TWO pages, both are in Polish language

Valery wrote:

Hi all,

looks like "gem update" killed my application. it was a very simplistic application that i carefully cooked under ubuntu after the selfprepared recipe:

rails+goldberg+activescaffold+capistrano+mongrel+apache2

not sure if a strange*) gem rails-1.2.3.6906 was an indirect killer, but definitely as for now I am motivated to use plugins more, more and more...

Comments to this bloggy post are welcome.

regards,

Valery.

*) try to google for "rails-1.2.3.6906" i got only TWO pages, both are in Polish language

Freeze your stuff, both Rails and gems. Then you won't have to rely on whatever versions the system has installed.

rake rails:freeze:gems

http://svn.techno-weenie.net/projects/plugins/gems/

Thanks for your post, Jacob!

Oh, at least i know the application-wide name of the cure now :slight_smile:

hehe, I am quite happy that i am not the admin, who may fail to know all rails apps being developed by developers working in his realm and therefore fail to freeze all things at once...

best regards

That's a beta rails version. As for why gem is now pulling from the beta rails gem server, I don't know. Those beta releases don't go to the official rubyforge servers.

Hi Valery,

I detected recently that an update of rubygems to version 0.93 had some problems. After installing rubygems it was not possible to update any gem. Only solution (I found): Download rubygems 0.94 to disk, unpack it in you ruby folder and execute the setup.rb

Best luck Chris

Hi Chris,

thanks for reply, i don’t have “rubygems” gem, just “rubygems-update” of version 0.9.4

best regards

i think the reason is found. No idea why, but there are two repositories among the gem sources that caused the edge version to be installed:

http://gems.rubyonrails.com http://gems.rubyonrails.org

i have deleted them, cleared the cache and now things go alright.

best regards