sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Confused about using gems...

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 303 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      draftomatic
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • D Offline
        draftomatic
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • Chris FullmerC Offline
          Chris Fullmer
          last edited by

          SketchUp runs its own version of Ruby. That is why it is reporting 1.8.6.

          Lately you've been tan, suspicious for the winter.
          All my Plugins I've written

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement