Confused about using gems...
-
I'm trying to use some RubyGems. I have Ruby191 and Ruby192 installed, but not 186, which is my RUBY_VERSION as given by SketchUp...
I am looking at the script in this thread: http://forums.sketchucation.com/viewtopic.php?f=180&t=29412
Must I install version 1.8.6 of Ruby (or, generally, a version matching SketchUp's reported Ruby version) to use gems etc? I've read around the forum that I shouldn't mix Ruby versions with what SketchUp uses.
-
Well, I ended up just copying the gem scripts I needed into my plugin folder (it was Builder fyi)... but it's really not ideal for when people already have an existing Ruby installation, and I don't think it will even work if the gem is more complex (I suppose it could be using a C library, or a dll, which is harder for me to copy around, or have too many dependencies to realistically copy all of them into my plugin).
Why is SketchUp reporting version 1.8.6 for me, when I don't technically have that version installed? Is it just the interpreter that SketchUp is using? Why doesn't it use the interpreter from my installed version?
Maybe Dan Rathbun has some advice for me here?
-
SketchUp runs its own version of Ruby. That is why it is reporting 1.8.6.
Advertisement