Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
Loading rubygems and other packages ?
-
Hello,
How do I load rubygems into sketchup? I am interested in being
able to use rubygems to load other packages, likegem install spreadsheet
Or maybe it is better to load the spreadsheet gem directly.
I have tried copying the gems files into the plugin directory
but it complained about 'date' method undefined.Thanks,
Robert -
After digging around various threads I figured it out:
- Install the "loadpaths.rb" script (http://forums.sketchucation.com/viewtopic.php?f=180&t=29412)
into SU Plugins. I modified it with:
$LOAD_PATH << "#{pre}/gems/1.8/gems/ruby-ole-1.2.10.1/lib"
$LOAD_PATH << "#{pre}/gems/1.8/gems/spreadsheet-0.6.4.1/lib"-
Backup and clobber the msvcrt-ruby18.dll with the one from the ruby1.8.6 release.
-
require 'spreadsheet.rb' -> true
-Robert
- Install the "loadpaths.rb" script (http://forums.sketchucation.com/viewtopic.php?f=180&t=29412)
Advertisement