Is any one interested in using RubyGems? A few points:
-
Given the current ruby setup in SU, one should not expect a ‘public’ plugin/extension to be able to install gems.
-
From #1, depending on the gem, one may be able to include the gem files in a plugin. This may involve licensing issues, I don’t know.
-
Gems that require compiling may be able to be used by SU, but to compile them, one needs a stand-alone version of Ruby matching the version used in SU, and the compile tools. Also, some of these type of gems may require additional ‘package’ files, which may be tricky to add to a plugin/extension. Haven’t tried, nor thought about. On windows, some of these gems are available ‘pre-compiled’.
-
Current SU RubyGems setup will not allow one to use gems installed as ‘–user-install’.
-
SU 2016 and earlier have a version of RubyGems that must be updated.
-
RubyGems, like many Ruby utilities, is largely used from a command line, which can’t be done with SU.
So, given the above, what can I provide?
-
Instructions for updating RubyGems. It requires either a standalone version of Ruby or 7-Zip. Files will need to updated in the base SU install folder
-
A file that correctly configures RubyGems to allow operations on ‘–user-install’ gems. Note that once this is done, gems installed this way can be used by both SU and a matching stand-alone Ruby install.
-
A small file that creates a module (
SUGem
), allowing one to type all gem commands in the SU console, some examples:
SUGem.install "anygem -N --user-install"
SUGem.list "-d"
SUGem.outdated
If anyone is interested, I can write it up this weekend…
Thanks, Greg