RVM gemset path separator change

20 views
Skip to first unread message

Wayne E. Seguin

unread,
Mar 21, 2010, 9:56:03 PM3/21/10
to rubyversionmanager
It has been brought to my attention (Evan Light) that the original
gemset separator '%' triggers a bug in URI.parse in ruby 1.9 stdlib.

Rather than attempting to change 1.9 right now I am adjusting RVM itself.

The set of characters we can use for the separator is very limited, I
have chosen '+' as default moving forward.

One benefit from this change is that it is now a tweakable setting in
your .rvmrc file:

export rvm_gemset_seperator="{:-p" # I really don't recommend you try this.

If anyone can think of a better character that will not conflict with
ruby's internal libraries and all shells out there... please let me
know :)

Thanks,

~Wayne

Jacques Crocker

unread,
Mar 24, 2010, 1:53:25 PM3/24/10
to rvm (Ruby Version Manager)
Hi Wayne. I've got a ton of gemsets so any sort of migration as part
of the install would be a gigantic help here if you do change the
separator.

Thanks

Chad Woolley

unread,
Mar 24, 2010, 2:17:31 PM3/24/10
to rubyversi...@googlegroups.com
On Wed, Mar 24, 2010 at 10:53 AM, Jacques Crocker <merb...@gmail.com> wrote:
> Hi Wayne. I've got a ton of gemsets so any sort of migration as part
> of the install would be a gigantic help here if you do change the
> separator.

Shouldn't you just be able to configure it to be "%", and no migration
is needed?

Rick DeNatale

unread,
Mar 22, 2010, 8:22:51 AM3/22/10
to rubyversi...@googlegroups.com
On Sun, Mar 21, 2010 at 9:56 PM, Wayne E. Seguin <waynee...@gmail.com> wrote

> One benefit from this change is that it is now a tweakable setting in
> your .rvmrc file:
>
> export rvm_gemset_seperator="{:-p"  # I really don't recommend you try this.

or is this rvm_gemset_separator

Some old teacher drummed it into my head that "there is a rat in separate"

--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

Wayne E. Seguin

unread,
Mar 24, 2010, 4:01:33 PM3/24/10
to rubyversi...@googlegroups.com
rvm update --head and/or install from git should do such a migration.

http://github.com/wayneeseguin/rvm/blob/master/scripts/install#L156-180

~Wayne

Wayne E. Seguin

unread,
Mar 24, 2010, 4:02:48 PM3/24/10
to rubyversi...@googlegroups.com
On Mon, Mar 22, 2010 at 8:22 AM, Rick DeNatale <rick.d...@gmail.com> wrote:
> On Sun, Mar 21, 2010 at 9:56 PM, Wayne E. Seguin <waynee...@gmail.com> wrote
>> One benefit from this change is that it is now a tweakable setting in
>> your .rvmrc file:
>>
>> export rvm_gemset_seperator="{:-p"  # I really don't recommend you try this.
>
> or is this rvm_gemset_separator
>
> Some old teacher drummed it into my head that "there is a rat in separate"

I wager that you would be able to guess the subject in which I
struggled with the most in grade school ;)

~Wayne

Reply all
Reply to author
Forward
0 new messages