Should I add files that are part of the Ruby standard library to `Gemfile`?

I need to do require 'openssl'in my code. Otherwise, I get NameError: uninitialized constant Object::OpenSSL. But, when I do gem list, I do not see openssl. I am deploying a Sinatra application on the Heroku bamboo-mri-1.9.2 stack. Should I add opensslin Gemfile? I don’t think so, because I think it opensslis part of the Ruby standard library . Also, what about base64?

+3
source share
1 answer

It is very likely that you compiled ruby ​​without openssl support. If you use RVM, you can try this

0
source

Source: https://habr.com/ru/post/1787362/


All Articles