Merge pull request #5274 from murgatroid99/ruby_no_recursive_require

Ruby: explicitly require 'grpc/grpc' when loading C core, to avoid circular import warning
pull/5359/head
Nicolas Noble 9 years ago
commit 91d0ad0fde
  1. 4
      src/ruby/lib/grpc/core/time_consts.rb
  2. 4
      src/ruby/lib/grpc/errors.rb

@ -1,4 +1,4 @@
# Copyright 2015, Google Inc.
# Copyright 2015-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -27,7 +27,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require 'grpc'
require 'grpc/grpc'
# GRPC contains the General RPC module.
module GRPC

@ -1,4 +1,4 @@
# Copyright 2015, Google Inc.
# Copyright 2015-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -27,7 +27,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
require 'grpc'
require 'grpc/grpc'
# GRPC contains the General RPC module.
module GRPC

Loading…
Cancel
Save