DOTfiles and DOTfolders aren't allowed in $HOME folder on Haiku
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 .rubyrc (<- this file also should have no dot at the beginning!)
For --user-install the gem files should go into /boot/system/non-packaged/lib/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?
Updated by extrowerk (Zoltán Mizsei) 5 months ago
We need something along theese lines, but integrated as default in ruby:
rubver=`ruby --version | cut -d" " -f2 | cut -d. -f3 --complement` #had no better idea :( export RUBY_VER="$rubver.0" export GEM_PATH="/boot/system/non-packaged/lib/ruby" export GEM_HOME="$GEM_PATH/$RUBY_VER" export GEM_SPEC_CACHE="$GEM_PATH/spec" export BUNDLE_USER_CACHE="$GEM_PATH/bundle" export PATH="$GEM_HOME/bin/:$PATH"
Updated by nobu (Nobuyoshi Nakada) 5 months ago
References to dot-files under the HOME in standard libraries are:
OptionParser#load now supports XDG base directory specification and Haiku guideline.
irb, rdoc and RubyGems have each upstreams.