[gem] what is the rubygems-update package?

L

Lionel Thiry

Hello!
What is the rubygems-update package? What is its exact purpose?

I suppose it's for updating rubygem itself. I've downloaded it, but I don't
understand, how am I suppose to use it? Is the update already done once it is
installed? Or do I have some commands to run after that?

Thanks in advance for any clue,
Lionel Thiry
 
C

Chad Fowler

Hello!
What is the rubygems-update package? What is its exact purpose?

I suppose it's for updating rubygem itself. I've downloaded it, but I don't
understand, how am I suppose to use it? Is the update already done once it is
installed? Or do I have some commands to run after that?

After you install it, you do `update_rubygems` to complete the
upgrade. Hopefully will finally fold this into a firstclass feature
this weekend.


--

Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 100,000 gems served!)
 
L

Lionel Thiry

Chad said:
After you install it, you do `update_rubygems` to complete the
upgrade. Hopefully will finally fold this into a firstclass feature
this weekend.
Thanks a lot!

Lionel Thiry
 
A

Arie Kusuma Atmaja

Hi y'all,
I'm new here so please be kind to me :)

I'm using WinXP Pro, One-click installer Window ruby182-14.exe and
mysql-4.1.10-win32.zip

The code I wrote is : mysql.rb

require 'mysql'

m = Mysql.new("localhost", "ariebanaranakai", "iwakkaring", "budiman")
r = m.query("SELECT username, password FROM user");
r.each_hash do |f|
print "#{f['username']} . #{f['password']}"
end

The Error I got is :

/mysql.rb:3: uninitialized constant Mysql (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
'require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
'require'
from mysql.rb:1

What's the matter with this ? I've searched the archieves but found
nothing :-(
I've also asked rubyist mailing list in my country but they averagely
said they never get the problem like I do :'(

Please help me and thanks a lot.

Arie
 
N

Navindra Umanee

Arie Kusuma Atmaja said:
The code I wrote is : mysql.rb

require 'mysql'

Give your file another name. require 'mysql' might be including
itself instead of the Mysql class.
The Error I got is :

./mysql.rb:3: uninitialized constant Mysql (NameError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
'require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in
'require'

Argh RubyGems... they do some ugly things with require too. Anyway
try the above suggestion first before worrying about rubygems...

-N.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top