trouble installing ruby gems
Hey everyone! So I found this was a simple 2 step process. If this is what's intended maybe the help docks may need a bit-o-dusting off.
Step 1. In your packages install the gem you want to use. In my case it was bcrypt.
Step 2. In your .replit file for your run use "run="bundle exec ruby YourRubyFile.rb"
Thats all I had to do. Just use the standard require 'bcrypt' at the top of your script and go! I hope this helps.
Gem search -r rails will return a list of Rails-related gems. With the --local ( -l ) option, you would perform a local search through your installed gems. To install a gem, use gem install [gem] .
If this helped or answered your question please mark this as correct!
No, but if you can find the source code for ruby gems you can add a file called
ruby.h and then at the top of your code
import ruby.h if you can import things in ruby.