diff options
author | murgatroid99 <mlumish@google.com> | 2015-12-18 13:05:34 -0800 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-12-18 13:05:34 -0800 |
commit | b5703222a5f856bd7b678636964be36fab1f9e17 (patch) | |
tree | 196ca9e3861c01850c403767e00d3f1f5175b9ff /src/ruby/lib | |
parent | d7e1a10628b87d9437f15ffb44d74499345ba757 (diff) |
Include roots.pem with Ruby package
Diffstat (limited to 'src/ruby/lib')
-rw-r--r-- | src/ruby/lib/grpc.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ruby/lib/grpc.rb b/src/ruby/lib/grpc.rb index 80b5743e91..228fbe366c 100644 --- a/src/ruby/lib/grpc.rb +++ b/src/ruby/lib/grpc.rb @@ -27,6 +27,11 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +ssl_roots_path = File.expand_path('../../../etc/roots.pem', __FILE__) +unless ENV['GRPC_DEFAULT_SSL_ROOTS_FILE_PATH'] + ENV['GRPC_DEFAULT_SSL_ROOTS_FILE_PATH'] = ssl_roots_path +end + require 'grpc/errors' require 'grpc/grpc' require 'grpc/logconfig' |