Updates the module name in the idiomatic and stub layers

pull/567/head
Tim Emiola 10 years ago
parent 409e6c804b
commit 7e7911f70d
  1. 2
      src/ruby/lib/grpc.rb
  2. 4
      src/ruby/lib/grpc/auth/compute_engine.rb
  3. 4
      src/ruby/lib/grpc/auth/service_account.rb
  4. 7
      src/ruby/lib/grpc/core/event.rb
  5. 5
      src/ruby/lib/grpc/core/time_consts.rb
  6. 6
      src/ruby/lib/grpc/errors.rb
  7. 6
      src/ruby/lib/grpc/generic/active_call.rb
  8. 6
      src/ruby/lib/grpc/generic/bidi_call.rb
  9. 6
      src/ruby/lib/grpc/generic/client_stub.rb
  10. 5
      src/ruby/lib/grpc/generic/rpc_desc.rb
  11. 6
      src/ruby/lib/grpc/generic/rpc_server.rb
  12. 6
      src/ruby/lib/grpc/generic/service.rb
  13. 6
      src/ruby/lib/grpc/logconfig.rb
  14. 6
      src/ruby/lib/grpc/version.rb
  15. 4
      src/ruby/spec/auth/compute_engine_spec.rb
  16. 4
      src/ruby/spec/auth/service_account_spec.rb

@ -41,4 +41,4 @@ require 'grpc/generic/service'
require 'grpc/generic/rpc_server'
# alias GRPC
GRPC = Google::RPC
GRPC = GRPC

@ -30,8 +30,7 @@
require 'faraday'
require 'grpc/auth/signet'
module Google
module RPC
module GRPC
# Module Auth provides classes that provide Google-specific authentication
# used to access Google gRPC services.
module Auth
@ -66,4 +65,3 @@ module Google
end
end
end
end

@ -39,8 +39,7 @@ def read_json_key(json_key_io)
[json_key['private_key'], json_key['client_email']]
end
module Google
module RPC
module GRPC
# Module Auth provides classes that provide Google-specific authentication
# used to access Google gRPC services.
module Auth
@ -65,4 +64,3 @@ module Google
end
end
end
end

@ -27,8 +27,10 @@
# (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 Google
module RPC
require 'grpc'
# GRPC contains the General RPC module.
module GRPC
module Core
# Event is a class defined in the c extension
#
@ -40,4 +42,3 @@ module Google
end
end
end
end

@ -29,8 +29,8 @@
require 'grpc'
module Google
module RPC
# GRPC contains the General RPC module.
module GRPC
module Core
# TimeConsts is a module from the C extension.
#
@ -69,4 +69,3 @@ module Google
end
end
end
end

@ -29,9 +29,8 @@
require 'grpc'
module Google
# Google::RPC contains the General RPC module.
module RPC
# GRPC contains the General RPC module.
module GRPC
# OutOfTime is an exception class that indicates that an RPC exceeded its
# deadline.
OutOfTime = Class.new(StandardError)
@ -60,4 +59,3 @@ module Google
end
end
end
end

@ -36,9 +36,8 @@ def assert_event_type(ev, want)
fail "Unexpected rpc event: got #{got}, want #{want}" unless got == want
end
module Google
# Google::RPC contains the General RPC module.
module RPC
# GRPC contains the General RPC module.
module GRPC
# The ActiveCall class provides simple methods for sending marshallable
# data to a call
class ActiveCall
@ -535,4 +534,3 @@ module Google
end
end
end
end

@ -36,9 +36,8 @@ def assert_event_type(ev, want)
fail("Unexpected rpc event: got #{got}, want #{want}") unless got == want
end
module Google
# Google::RPC contains the General RPC module.
module RPC
# GRPC contains the General RPC module.
module GRPC
# The BiDiCall class orchestrates exection of a BiDi stream on a client or
# server.
class BidiCall
@ -220,4 +219,3 @@ module Google
end
end
end
end

@ -30,9 +30,8 @@
require 'grpc/generic/active_call'
require 'xray/thread_dump_signal_handler'
module Google
# Google::RPC contains the General RPC module.
module RPC
# GRPC contains the General RPC module.
module GRPC
# ClientStub represents an endpoint used to send requests to GRPC servers.
class ClientStub
include Core::StatusCodes
@ -407,4 +406,3 @@ module Google
end
end
end
end

@ -29,8 +29,8 @@
require 'grpc/grpc'
module Google
module RPC
# GRPC contains the General RPC module.
module GRPC
# RpcDesc is a Descriptor of an RPC method.
class RpcDesc < Struct.new(:name, :input, :output, :marshal_method,
:unmarshal_method)
@ -148,4 +148,3 @@ module Google
end
end
end
end

@ -33,9 +33,8 @@ require 'grpc/generic/service'
require 'thread'
require 'xray/thread_dump_signal_handler'
module Google
# Google::RPC contains the General RPC module.
module RPC
# GRPC contains the General RPC module.
module GRPC
# RpcServer hosts a number of services and makes them available on the
# network.
class RpcServer
@ -403,4 +402,3 @@ module Google
end
end
end
end

@ -48,9 +48,8 @@ class String
end
end
module Google
# Google::RPC contains the General RPC module.
module RPC
# GRPC contains the General RPC module.
module GRPC
# Provides behaviour used to implement schema-derived service classes.
#
# Is intended to be used to support both client and server
@ -234,4 +233,3 @@ module Google
end
end
end
end

@ -35,6 +35,6 @@ Logging.logger.root.appenders = Logging.appenders.stdout
Logging.logger.root.level = :info
# TODO: provide command-line configuration for logging
Logging.logger['Google::RPC'].level = :debug
Logging.logger['Google::RPC::ActiveCall'].level = :info
Logging.logger['Google::RPC::BidiCall'].level = :info
Logging.logger['GRPC'].level = :debug
Logging.logger['GRPC::ActiveCall'].level = :info
Logging.logger['GRPC::BidiCall'].level = :info

@ -27,9 +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.
module Google
# Google::RPC contains the General RPC module.
module RPC
# GRPC contains the General RPC module.
module GRPC
VERSION = '0.0.1'
end
end

@ -36,9 +36,9 @@ require 'faraday'
require 'grpc/auth/compute_engine'
require 'spec_helper'
describe Google::RPC::Auth::GCECredentials do
describe GRPC::Auth::GCECredentials do
MD_URI = '/computeMetadata/v1/instance/service-accounts/default/token'
GCECredentials = Google::RPC::Auth::GCECredentials
GCECredentials = GRPC::Auth::GCECredentials
before(:example) do
@client = GCECredentials.new

@ -38,7 +38,7 @@ require 'multi_json'
require 'openssl'
require 'spec_helper'
describe Google::RPC::Auth::ServiceAccountCredentials do
describe GRPC::Auth::ServiceAccountCredentials do
before(:example) do
@key = OpenSSL::PKey::RSA.new(2048)
cred_json = {
@ -49,7 +49,7 @@ describe Google::RPC::Auth::ServiceAccountCredentials do
type: 'service_account'
}
cred_json_text = MultiJson.dump(cred_json)
@client = Google::RPC::Auth::ServiceAccountCredentials.new(
@client = GRPC::Auth::ServiceAccountCredentials.new(
'https://www.googleapis.com/auth/userinfo.profile',
StringIO.new(cred_json_text))
end

Loading…
Cancel
Save