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?
require 'openssl'
NameError: uninitialized constant Object::OpenSSL
gem list
openssl
Gemfile
base64
It is very likely that you compiled ruby without openssl support. If you use RVM, you can try this
Source: https://habr.com/ru/post/1787362/More articles:What security issues should I worry about when writing an auto-update client? - securityHow to remove a specific element from an array? - arraysHow to add a Protovis diagram to a specific HTML tag? - javascriptAn example of using the Mule ESB to route web service calls - javaCreate passage through Mule ESB 2.2.1 - esbAndroid: how to convert MP4A audio to MP3 or Wav using Java - javaYou can install gem ruby-debug, but the rails server cannot find it - ruby-on-railsDoxygen Out of Line Documenting for C ++ Class Operators - c ++как удалить двоичные значения arraylist - javaWhat version of windows do I need to develop with .NET 4 and C #? - c #All Articles