Forum: Ruby editing environment.rb files

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
on 2007-02-11 18:25
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
on 2007-02-11 19:59
On 2/11/07, Rae <Raeka8@yahoo.com> wrote:
> 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
on 2007-02-11 21:50
On Feb 11, 1:59 pm, "Chris Carter" <cdcar...@gmail.com> wrote:
> > replace them with 'gem' "
> Hi Rae,
> - Show quoted text -
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
on 2007-02-12 12:59
On Mon, Feb 12, 2007 at 02:25:05AM +0900, Rae wrote:
> 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.
on 2007-02-13 23:26
On 2/11/07, Rae <Raeka8@yahoo.com> wrote:
> > > I found in an old archive, the following suggestion:
> > > Rae
> > brynmawrcs.com- Hide quoted text -
> run tutorials and such, I won't worry about it.
> Rae

It won't have any affect other than being annoying. An update to Instant
Rails is coming soon.

Curt
This topic is locked and can not be replied to.