Issue #15828 has been updated by extrowerk (Zolt=E1n Mizsei).


We need something along theese lines, but integrated as default in ruby:

rubver=3D`ruby --version | cut -d" " -f2 | cut -d. -f3 --complement`       =
    #had no better idea :(
export RUBY_VER=3D"$rubver.0"
export GEM_PATH=3D"/boot/system/non-packaged/lib/ruby"
export GEM_HOME=3D"$GEM_PATH/$RUBY_VER"
export GEM_SPEC_CACHE=3D"$GEM_PATH/spec"
export BUNDLE_USER_CACHE=3D"$GEM_PATH/bundle"
export PATH=3D"$GEM_HOME/bin/:$PATH"

----------------------------------------
Bug #15828: DOTfiles and DOTfolders aren't allowed in $HOME folder on Haiku
https://bugs.ruby-lang.org/issues/15828#change-77921

* Author: extrowerk (Zolt=E1n Mizsei)
* Status: Open
* Priority: Normal
* Assignee: =

* Target version: =

* ruby -v: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
According to the guidelines, no program should create any file directly in =
$HOME

For config files we should use the ~/config/settings/ruby folder for .rubyr=
c (<- this file also should have no dot at the beginning!)
For --user-install the gem files should go into /boot/system/non-packaged/l=
ib/ruby$rubyVersion folder

The system-install path seems to be ok.

I tried to grep the whole source tree, but i can't seem to find the correct=
 place, where they defined. Can somebody give me some hints?
Thanks!



-- =

https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>