Gary King Posted April 29, 2016 Posted April 29, 2016 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.
Gary King Posted April 30, 2016 Author Posted April 30, 2016 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".
deanishe Posted May 1, 2016 Posted May 1, 2016 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.
Gary King Posted May 1, 2016 Author Posted May 1, 2016 Yeah I eventually used bundle --standalone to do that.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now