getting warning messages about gem obsolete

R

Rae

I uninstalled my old ruby (v 1.8521 I think it was), and installed
1.8522 (windows installer).
When the interactive Ruby console comes up it states:

C:0:Warning: require_gem is obsolete. Use gem instead.
C:0:Warning: require_gem is obsolete. Use gem instead.
C:0:Warning: require_gem is obsolete. Use gem instead.

It states this three times like above. Is there something I need to
do ?

Rae
 
T

Timothy Hunter

Rae said:
I uninstalled my old ruby (v 1.8521 I think it was), and installed
1.8522 (windows installer).
When the interactive Ruby console comes up it states:

C:0:Warning: require_gem is obsolete. Use gem instead.
C:0:Warning: require_gem is obsolete. Use gem instead.
C:0:Warning: require_gem is obsolete. Use gem instead.

It states this three times like above. Is there something I need to
do ?

Rae
Do you have an .irbrc file? Does it use "require_gem"? If so, edit the
file and change all the "require_gem" method calls to plain old
"require". (Unless you were using "require_gem" for it's actual purpose
of requiring a specific version of a gem, instead of using it as a
synonym for "require", which is what it was used for most of the time.)
 
R

Rae

Do you have an .irbrc file? Does it use "require_gem"? If so, edit the
file and change all the "require_gem" method calls to plain old
"require". (Unless you were using "require_gem" for it's actual purpose
of requiring a specific version of a gem, instead of using it as a
synonym for "require", which is what it was used for most of the time.)- Hide quoted text -

- Show quoted text -

I just did a search on my computer and I didn't find any .irbrc files.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top