How to actually use a ruby gem

For general discussion related FlowStone
Post Reply
Quentin
Posts: 37
Joined: Sat Jul 14, 2012 5:35 am

How to actually use a ruby gem

Post by Quentin »

I have been trying to parse some JSON, there are ruby gems available which I should be able to employ?
Can someone provide a walkthrough on adding a gem. I have tried quite a few permutations and read all docs that I can find to no avail.
Thanks so much,
Quentin
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: How to actually use a ruby gem

Post by Tronic »

Not simply, but not impossible....
You have to make an full Ruby MRI environment, compiled with the Visual Studio vc90,
after that, you can add your gem to the ruby env,
if the gem probably need to compile some library .so,
and after, you can use it in FS,
requiring in FS all the file that it require to work.

But remember, if you want use it in your app, you have to attach an distribute all the file with it,
and work only in the standalone exported version, in vst it can't require external .so file.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: How to actually use a ruby gem

Post by tulamide »

The gem system is not part of this Ruby install. So you have to install all folders/files manually.
You can only use gems that were compiled with Visual Studio (which is rare)
You can't use gems in VST plugins, only in standalones.
"There lies the dog buried" (German saying translated literally)
User avatar
aronb
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA
Contact:

Re: How to actually use a ruby gem

Post by aronb »

Question...

Is there a tutorial somewhere that outlines how to add a gem (or gems) step by step (file locations, what needs to be added, etc.) to the Flowstone Ruby install ? (Widows 7 x64 or x32 would be typical)

And also how to set up the version (?) of Visual Studio to compile them properly ?

Thanks
Post Reply