[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

editing environment.rb files

Rae

2/11/2007 5:24:00 PM

I did a search on the internet to try to find a way to get rid of
message:
C:0:Warning: require_gem is obsolete. Use gem instead.

I found in an old archive, the following suggestion:
"You can fix it in environment.rb. Find the 'require_gem' lines and
replace them with 'gem' "

When I do a search on my computer for this environment.rb file, I
find several of them in various folders, but many do not show up as to
their location. If I right click on them from the search window, (This
is all in Windows XP), it has an open option, but no open with option.
So I don't know how to get to that environment.rb file. I can change
all othe others but not sure if that will change these Ruby files.

Rae

3 Answers

Chris Carter

2/11/2007 6:59:00 PM

0

On 2/11/07, Rae <Raeka8@yahoo.com> wrote:
> I did a search on the internet to try to find a way to get rid of
> message:
> C:0:Warning: require_gem is obsolete. Use gem instead.
>
> I found in an old archive, the following suggestion:
> "You can fix it in environment.rb. Find the 'require_gem' lines and
> replace them with 'gem' "
>
> When I do a search on my computer for this environment.rb file, I
> find several of them in various folders, but many do not show up as to
> their location. If I right click on them from the search window, (This
> is all in Windows XP), it has an open option, but no open with option.
> So I don't know how to get to that environment.rb file. I can change
> all othe others but not sure if that will change these Ruby files.
>
> Rae
>
>
>
Hi Rae,
The environment.rb suggestion is only if you use Ruby on Rails. The
warning is given by libraries you might use that are out of date, and
use the recently deprecated require_gem, you need to wwait for the
maintainer to update the package

--
Chris Carter
concentrationstudios.com
brynmawrcs.com

Rae

2/11/2007 8:48:00 PM

0

On Feb 11, 1:59 pm, "Chris Carter" <cdcar...@gmail.com> wrote:
> On 2/11/07, Rae <Rae...@yahoo.com> wrote:
>
>
>
> > I did a search on the internet to try to find a way to get rid of
> > message:
> > C:0:Warning: require_gem is obsolete. Use gem instead.
>
> > I found in an old archive, the following suggestion:
> > "You can fix it in environment.rb. Find the 'require_gem' lines and
> > replace them with 'gem' "
>
> > When I do a search on my computer for this environment.rb file, I
> > find several of them in various folders, but many do not show up as to
> > their location. If I right click on them from the search window, (This
> > is all in Windows XP), it has an open option, but no open with option.
> > So I don't know how to get to that environment.rb file. I can change
> > all othe others but not sure if that will change these Ruby files.
>
> > Rae
>
> Hi Rae,
> The environment.rb suggestion is only if you use Ruby on Rails. The
> warning is given by libraries you might use that are out of date, and
> use the recently deprecated require_gem, you need to wwait for the
> maintainer to update the package
>
> --
> Chris Carter
> concentrationstudios.com
> brynmawrcs.com- Hide quoted text -
>
> - Show quoted text -


Thanks for the reply.
I use InstantRails.exe .
I'm not sure what you mean by
"wait[ing] for the maintainer to update the package."

But if its not going to affect my ability to play with the program or
run tutorials and such, I won't worry about it.
Rae

Brian Candler

2/12/2007 9:10:00 AM

0

On Mon, Feb 12, 2007 at 02:25:05AM +0900, Rae wrote:
> I did a search on the internet to try to find a way to get rid of
> message:
> C:0:Warning: require_gem is obsolete. Use gem instead.
>
> I found in an old archive, the following suggestion:
> "You can fix it in environment.rb. Find the 'require_gem' lines and
> replace them with 'gem' "
>
> When I do a search on my computer for this environment.rb file, I
> find several of them in various folders, but many do not show up as to
> their location.

As usual, the best way to do anything in Windows is to do it in DOS :-)
Start -> Run... cmd

C:\> dir \environment.rb /s

will find you all the files (with their locations!), and

C:\> edit \path\to\environment.rb

will let you edit them.

Regards,

Brian.