I have a problem with Gem packages. My packages installed by Gem.install are not visible from my extensions:
For example:
Error: #<LoadError: cannot load such file -- rubyXL>
I am pretty sure that reason for that is that I have special character in GEM_HOME path and that character is evaluated in sketchup incorrect.
I cannot paste how path looks like from Ruby console in sketchup because special character is not printable in that editor. But instead of polish character ‘ó’ in ruby console there is non-printable character (represented by square).
I believe this is the reason why I cannot see Gem packages in sketchup. I checked it on different accounts where there are no special characters in GEM_HOME path and everything works just fine.
Is there way to change GEM_HOME in flight? I tried to set ENV[‘GEM_HOME’] from extension script (and ensure that under that path there are installed gem packages) but that doesn’t work.
Any ideas?