Forum: Ruby on Rails "frozen gems" with "payload" information

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B98a3bcf2c5a7a38b7596da957b05069?d=identicon&s=25 Manuel Holtgrewe (Guest)
on 2007-02-18 22:54
(Received via mailing list)

I have written a small gem that contains a PEM file with the root
certificates of the major certificate authorities. The library needs
this to check whether the remote side is trustworthy. This PEM file is
in /var/cacert.pem and my code lives in /lib.

Now, I tried to "freeze" the gem by copying the files of it into the
directory "RAILS_ROOT/lib" but of course the cacert.pem file is
"missing" since the gem tries to find it relative to the including

So my question is how to resolve this most elegantly: Put the
cacert.pem file into my lib directory? Or is there another way to
"freeze" a gem? Seemingly, copying the library to "RAILS_ROOT/vendor"
only works for rails itself.


This topic is locked and can not be replied to.