Index: third_party/grpc/src/ruby/lib/grpc/grpc.rb |
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_globals.py b/third_party/grpc/src/ruby/lib/grpc/grpc.rb |
similarity index 89% |
copy from third_party/WebKit/Source/bindings/scripts/v8_globals.py |
copy to third_party/grpc/src/ruby/lib/grpc/grpc.rb |
index 9ca2a3574a9fdb27ae567f8c6ab0a301a9bdbaf2..d8a4947494f010b68a8fa2bd81f9fa8b011f1030 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_globals.py |
+++ b/third_party/grpc/src/ruby/lib/grpc/grpc.rb |
@@ -1,4 +1,5 @@ |
-# Copyright (C) 2013 Google Inc. All rights reserved. |
+# Copyright 2015-2016, Google Inc. |
+# All rights reserved. |
# |
# Redistribution and use in source and binary forms, with or without |
# modification, are permitted provided that the following conditions are |
@@ -26,7 +27,8 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-"""Module to share global variables (includes and interfaces) across modules.""" |
- |
-includes = set() |
-interfaces = {} |
+begin |
+ require "grpc/#{RUBY_VERSION.sub(/\.\d$/, '')}/grpc_c" |
+rescue LoadError |
+ require 'grpc/grpc_c' |
+end |