Require from http or ftp

HI! Is there a way to require from http or ftp ? Something like: require “website.com/plugin.rb”

Cheers

Usually not require. It usually only uses the $LOAD_PATH array to find files locally. However, SketchUp does load Rubygems which modifies the require method to also load gems from the RubyGems server.
But gems are not SketchUp extensions. They are meant for standalone Ruby or Ruby on Rails in most cases.


Within SketchUp you could use Sketchup::Http::Request and Sketchup::Http::Response to download an RBZ archive to the user’s computer, then use Sketchup.install_from_archive to install it.

Thanks! I am a beginner. I understand that there is no simple way. My goal was to have a plugin on many computers, but with no need to reinstall each time I update the plugin. Cheers