courier_spec 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/courier_proto.gemspec +30 -0
- data/lib/todo_pb.rb +33 -0
- data/lib/todo_services_pb.rb +26 -0
- metadata +59 -0
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: dc81821e421522e470a75bf1391ca9288157b55e5828a94479bfe15c004e3a7e
         | 
| 4 | 
            +
              data.tar.gz: cd1401004e35f4542147d53b83b28d00d846f5b4a5a6f049c008f7c5613801f6
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: e2d2ea38ec049a081816b65144a37d3a33e18d203da3b7600bd30b8b87d84aa083ac676ee6791b494605ceecbcc54bbc12558f22d3e11df13706f564cb5b91a3
         | 
| 7 | 
            +
              data.tar.gz: 3e368d01bd7141a37cc1b7daa43b357d12664dd3f61a84cc684a38f58acfedcb1302d07d85fad1e0f5c4ab0f8f9d6b48f3abd4f8aab137c4c9e46a7f1526dbe1
         | 
| @@ -0,0 +1,30 @@ | |
| 1 | 
            +
            # coding: utf-8
         | 
| 2 | 
            +
            lib = File.expand_path('../lib', __FILE__)
         | 
| 3 | 
            +
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Gem::Specification.new do |spec|
         | 
| 6 | 
            +
               spec.name        = 'courier_spec'
         | 
| 7 | 
            +
               spec.version     = '0.0.0'
         | 
| 8 | 
            +
               spec.date        = '2019-09-12'
         | 
| 9 | 
            +
               spec.summary     = "Courier Spec for proto files!"
         | 
| 10 | 
            +
               spec.description = "The gem is the generated files for proto file"
         | 
| 11 | 
            +
               spec.authors     = ["Ruiyang Zhang"]
         | 
| 12 | 
            +
               spec.email       = 'ruiyang.zhang@juvo.com'
         | 
| 13 | 
            +
               spec.homepage    =
         | 
| 14 | 
            +
                 'https://rubygemspec.org/gems/courier_proto'
         | 
| 15 | 
            +
               spec.license       = 'MIT'
         | 
| 16 | 
            +
             | 
| 17 | 
            +
             # Prevent pushing this gem to RubyGemspec.org. To allow pushes either set the 'allowed_push_host'
         | 
| 18 | 
            +
             # to allow pushing to a single host or delete this section to allow pushing to any host.
         | 
| 19 | 
            +
            #  if spec.respond_to?(:metadata)
         | 
| 20 | 
            +
            #    spec.metadata['allowed_push_host'] = "https://rubygemspec.org/gems"
         | 
| 21 | 
            +
            #  else
         | 
| 22 | 
            +
            #    raise "RubyGems 2.0 or newer is required to protect against " \
         | 
| 23 | 
            +
            #      "public gem pushespec."
         | 
| 24 | 
            +
            #  end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
             spec.files        = Dir['**/*']
         | 
| 27 | 
            +
             spec.require_path = 'lib'
         | 
| 28 | 
            +
             | 
| 29 | 
            +
             spec.add_runtime_dependency 'grpc', '~> 1.6'
         | 
| 30 | 
            +
            end
         | 
    
        data/lib/todo_pb.rb
    ADDED
    
    | @@ -0,0 +1,33 @@ | |
| 1 | 
            +
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         | 
| 2 | 
            +
            # source: todo.proto
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            require 'google/protobuf'
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            Google::Protobuf::DescriptorPool.generated_pool.build do
         | 
| 7 | 
            +
              add_file("todo.proto", :syntax => :proto3) do
         | 
| 8 | 
            +
                add_message "gogrpcspec.Employee" do
         | 
| 9 | 
            +
                  optional :name, :string, 1
         | 
| 10 | 
            +
                end
         | 
| 11 | 
            +
                add_message "gogrpcspec.Task" do
         | 
| 12 | 
            +
                  optional :employee, :message, 1, "gogrpcspec.Employee"
         | 
| 13 | 
            +
                  optional :name, :string, 2
         | 
| 14 | 
            +
                  optional :status, :string, 3
         | 
| 15 | 
            +
                end
         | 
| 16 | 
            +
                add_message "gogrpcspec.Summary" do
         | 
| 17 | 
            +
                  optional :todoTasks, :int32, 1
         | 
| 18 | 
            +
                  optional :doingTasks, :int32, 2
         | 
| 19 | 
            +
                  optional :doneTasks, :int32, 3
         | 
| 20 | 
            +
                end
         | 
| 21 | 
            +
                add_message "gogrpcspec.SpecificSummary" do
         | 
| 22 | 
            +
                  optional :employee, :message, 1, "gogrpcspec.Employee"
         | 
| 23 | 
            +
                  optional :summary, :message, 2, "gogrpcspec.Summary"
         | 
| 24 | 
            +
                end
         | 
| 25 | 
            +
              end
         | 
| 26 | 
            +
            end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            module Gogrpcspec
         | 
| 29 | 
            +
              Employee = Google::Protobuf::DescriptorPool.generated_pool.lookup("gogrpcspec.Employee").msgclass
         | 
| 30 | 
            +
              Task = Google::Protobuf::DescriptorPool.generated_pool.lookup("gogrpcspec.Task").msgclass
         | 
| 31 | 
            +
              Summary = Google::Protobuf::DescriptorPool.generated_pool.lookup("gogrpcspec.Summary").msgclass
         | 
| 32 | 
            +
              SpecificSummary = Google::Protobuf::DescriptorPool.generated_pool.lookup("gogrpcspec.SpecificSummary").msgclass
         | 
| 33 | 
            +
            end
         | 
| @@ -0,0 +1,26 @@ | |
| 1 | 
            +
            # Generated by the protocol buffer compiler.  DO NOT EDIT!
         | 
| 2 | 
            +
            # Source: todo.proto for package 'gogrpcspec'
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            require 'grpc'
         | 
| 5 | 
            +
            require 'todo_pb'
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            module Gogrpcspec
         | 
| 8 | 
            +
              module TaskManager
         | 
| 9 | 
            +
                class Service
         | 
| 10 | 
            +
             | 
| 11 | 
            +
                  include GRPC::GenericService
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                  self.marshal_class_method = :encode
         | 
| 14 | 
            +
                  self.unmarshal_class_method = :decode
         | 
| 15 | 
            +
                  self.service_name = 'gogrpcspec.TaskManager'
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                  rpc :GetSummary, Employee, SpecificSummary
         | 
| 18 | 
            +
                  rpc :AddTask, Task, SpecificSummary
         | 
| 19 | 
            +
                  rpc :AddTasks, stream(Task), Summary
         | 
| 20 | 
            +
                  rpc :GetTasks, Employee, stream(Task)
         | 
| 21 | 
            +
                  rpc :ChangeToDone, stream(Task), stream(Task)
         | 
| 22 | 
            +
                end
         | 
| 23 | 
            +
             | 
| 24 | 
            +
                Stub = Service.rpc_stub_class
         | 
| 25 | 
            +
              end
         | 
| 26 | 
            +
            end
         | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,59 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: courier_spec
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.0.0
         | 
| 5 | 
            +
            platform: ruby
         | 
| 6 | 
            +
            authors:
         | 
| 7 | 
            +
            - Ruiyang Zhang
         | 
| 8 | 
            +
            autorequire: 
         | 
| 9 | 
            +
            bindir: bin
         | 
| 10 | 
            +
            cert_chain: []
         | 
| 11 | 
            +
            date: 2019-09-12 00:00:00.000000000 Z
         | 
| 12 | 
            +
            dependencies:
         | 
| 13 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 14 | 
            +
              name: grpc
         | 
| 15 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 | 
            +
                requirements:
         | 
| 17 | 
            +
                - - "~>"
         | 
| 18 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            +
                    version: '1.6'
         | 
| 20 | 
            +
              type: :runtime
         | 
| 21 | 
            +
              prerelease: false
         | 
| 22 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 | 
            +
                requirements:
         | 
| 24 | 
            +
                - - "~>"
         | 
| 25 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            +
                    version: '1.6'
         | 
| 27 | 
            +
            description: The gem is the generated files for proto file
         | 
| 28 | 
            +
            email: ruiyang.zhang@juvo.com
         | 
| 29 | 
            +
            executables: []
         | 
| 30 | 
            +
            extensions: []
         | 
| 31 | 
            +
            extra_rdoc_files: []
         | 
| 32 | 
            +
            files:
         | 
| 33 | 
            +
            - courier_proto.gemspec
         | 
| 34 | 
            +
            - lib/todo_pb.rb
         | 
| 35 | 
            +
            - lib/todo_services_pb.rb
         | 
| 36 | 
            +
            homepage: https://rubygemspec.org/gems/courier_proto
         | 
| 37 | 
            +
            licenses:
         | 
| 38 | 
            +
            - MIT
         | 
| 39 | 
            +
            metadata: {}
         | 
| 40 | 
            +
            post_install_message: 
         | 
| 41 | 
            +
            rdoc_options: []
         | 
| 42 | 
            +
            require_paths:
         | 
| 43 | 
            +
            - lib
         | 
| 44 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 45 | 
            +
              requirements:
         | 
| 46 | 
            +
              - - ">="
         | 
| 47 | 
            +
                - !ruby/object:Gem::Version
         | 
| 48 | 
            +
                  version: '0'
         | 
| 49 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 50 | 
            +
              requirements:
         | 
| 51 | 
            +
              - - ">="
         | 
| 52 | 
            +
                - !ruby/object:Gem::Version
         | 
| 53 | 
            +
                  version: '0'
         | 
| 54 | 
            +
            requirements: []
         | 
| 55 | 
            +
            rubygems_version: 3.0.6
         | 
| 56 | 
            +
            signing_key: 
         | 
| 57 | 
            +
            specification_version: 4
         | 
| 58 | 
            +
            summary: Courier Spec for proto files!
         | 
| 59 | 
            +
            test_files: []
         |