Jump to content

How to use gems in a Ruby script?


Recommended Posts

Posted

How can I use gems in a Ruby script? Is there a step-by-step walkthrough for this? I've checked a few tutorials but there doesn't seem to be a detailed walkthrough for this.

Posted

Nevermind, I later realized that Alfred is using the system Ruby, whereas I usually use rvm for Ruby. So I had to install the relevant gems with the system Ruby instead, by switching to that via rvm with "rvm system".

Posted

You should probably install your gems in the workflow directory itself.

If you want to distribute your workflow, asking users to install stuff in their system Ruby is pretty shady.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...