.gemrc obscurity

P

Perry Smith

Is it just me? I have to put a colon at the front of my attribute names
so they look like symbols to get anything to work in my .gemrc file.
i.e. this does NOT work:

---
gemhome: /home/pedzsan/ruby/gems
gempath:
- /home/pedzsan/ruby/gems
- /usr/lib/ruby/gems/1.8

but this does:

---
:gemhome: /home/pedzsan/ruby/gems
:gempath:
- /home/pedzsan/ruby/gems
- /usr/lib/ruby/gems/1.8

I'm not sure if this:

http://rubygems.org/read/chapter/11

is suppose to be up to date or if this is a recently introduced bug or
if my brain is buggy.
 
E

Eric Hodel

Is it just me? I have to put a colon at the front of my attribute
names
so they look like symbols to get anything to work in my .gemrc file.
i.e. this does NOT work:

---
gemhome: /home/pedzsan/ruby/gems
gempath:
- /home/pedzsan/ruby/gems
- /usr/lib/ruby/gems/1.8

but this does:

---
:gemhome: /home/pedzsan/ruby/gems
:gempath:
- /home/pedzsan/ruby/gems
- /usr/lib/ruby/gems/1.8

I'm not sure if this:

http://rubygems.org/read/chapter/11

is suppose to be up to date or if this is a recently introduced bug or
if my brain is buggy.

Go straight to the source:

gem help env
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top