From 61d9a42007a61be9d59fc2e161c59a5ecde32214 Mon Sep 17 00:00:00 2001 From: ganmacs Date: Mon, 14 May 2018 17:52:34 +0900 Subject: [PATCH] Moved pubsub demo_demo to examples directory of ruby so that grpc does not depends on googleauth gem. This project (pubsub demo) is introduced at [this commit](https://github.com/grpc/grpc/commit/d5d00d5c8fac4495ea42020866feb913c854aa1e#diff-c495642bb64c09cae54f3ccff463bd51) as demo project for grpc with ruby. This demo is awesome. But the position of this project directory seems to be not suitable for demo app. This project added unnecessary gem dependency about googleauth to grpc ruby gem. --- examples/ruby/grpc-demo.gemspec | 1 + .../bin/apis => examples/ruby/pubsub}/google/protobuf/empty.rb | 0 {src/ruby/bin/apis => examples/ruby/pubsub}/pubsub_demo.rb | 0 .../apis => examples/ruby/pubsub}/tech/pubsub/proto/pubsub.rb | 0 .../ruby/pubsub}/tech/pubsub/proto/pubsub_services.rb | 0 5 files changed, 1 insertion(+) rename {src/ruby/bin/apis => examples/ruby/pubsub}/google/protobuf/empty.rb (100%) rename {src/ruby/bin/apis => examples/ruby/pubsub}/pubsub_demo.rb (100%) rename {src/ruby/bin/apis => examples/ruby/pubsub}/tech/pubsub/proto/pubsub.rb (100%) rename {src/ruby/bin/apis => examples/ruby/pubsub}/tech/pubsub/proto/pubsub_services.rb (100%) diff --git a/examples/ruby/grpc-demo.gemspec b/examples/ruby/grpc-demo.gemspec index 4423fd34d42..c77446249e7 100644 --- a/examples/ruby/grpc-demo.gemspec +++ b/examples/ruby/grpc-demo.gemspec @@ -18,6 +18,7 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.add_dependency 'grpc', '~> 1.0' + s.add_dependency 'googleauth', '>= 0.5.1', '< 0.7' s.add_development_dependency 'bundler', '~> 1.7' end diff --git a/src/ruby/bin/apis/google/protobuf/empty.rb b/examples/ruby/pubsub/google/protobuf/empty.rb similarity index 100% rename from src/ruby/bin/apis/google/protobuf/empty.rb rename to examples/ruby/pubsub/google/protobuf/empty.rb diff --git a/src/ruby/bin/apis/pubsub_demo.rb b/examples/ruby/pubsub/pubsub_demo.rb similarity index 100% rename from src/ruby/bin/apis/pubsub_demo.rb rename to examples/ruby/pubsub/pubsub_demo.rb diff --git a/src/ruby/bin/apis/tech/pubsub/proto/pubsub.rb b/examples/ruby/pubsub/tech/pubsub/proto/pubsub.rb similarity index 100% rename from src/ruby/bin/apis/tech/pubsub/proto/pubsub.rb rename to examples/ruby/pubsub/tech/pubsub/proto/pubsub.rb diff --git a/src/ruby/bin/apis/tech/pubsub/proto/pubsub_services.rb b/examples/ruby/pubsub/tech/pubsub/proto/pubsub_services.rb similarity index 100% rename from src/ruby/bin/apis/tech/pubsub/proto/pubsub_services.rb rename to examples/ruby/pubsub/tech/pubsub/proto/pubsub_services.rb