protosum2 0.2.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a69085f89b233aae7177c85e554fffe1aecc87325eddbd294b4ab930cecd6300
4
- data.tar.gz: 9ac487e2e50e47b3e0e46cafad71ebbe295732ea84c6b1100aa7953680f133e8
3
+ metadata.gz: 726ac9b17a4319b38e20e77462c78ffe044bdb21524ee0a3f7b4c91277f5c30d
4
+ data.tar.gz: 8b76e1d2a41a7283b4e45e68342feab9406f5776e55c88ad1ee712a9345f63ea
5
5
  SHA512:
6
- metadata.gz: 4e5a643a4f5ffe102d34e15a8f03802ee943dd3f61f332adf7bc0578c208f0cfc042b2b530658b1aaaae2b603f93b9e5535bbdfbfdcac91b636a31d19f1ec359
7
- data.tar.gz: ba40c285597814ba895d3777db4da5f1d0aa978fa13d6b0217256dd27142f497098e8b564a2971716f86a46347b6b7b948006c13245caef3e54849c83e384491
6
+ metadata.gz: e0d85c441ca26243dcf4dc795382b4c3d90e27d30fb3a04162bcc313be05335f642de301d91766b010210fceea965ee510c012e7eb1c865cb8ce9a469d08ee39
7
+ data.tar.gz: 5b32df03ff82537981c48e178293fc1c87be117fd68381469b994141e2af449bd53883fcc3dd16e9eeac48bb271c9bd08d010a6b0043f032c6d2d36adee01166
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- protosum2 (0.2.0)
4
+ protosum2 (0.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,13 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: feature/feature_api.proto
2
+ # source: proto/feature/feature_api.proto
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("feature/feature_api.proto", :syntax => :proto3) do
7
+ add_file("proto/feature/feature_api.proto", :syntax => :proto3) do
8
8
  add_message "feature.feature_api_pb.Point" do
9
9
  optional :latitude, :int32, 1
10
- optional :longitude, :int32, 2
11
10
  end
12
11
  add_message "feature.feature_api_pb.Feature" do
13
12
  optional :code, :int32, 1
@@ -1,8 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: feature/feature_api.proto for package 'Protosum.Feature.FeatureApiPb'
2
+ # Source: proto/feature/feature_api.proto for package 'Protosum.Feature.FeatureApiPb'
3
3
 
4
4
  require 'grpc'
5
- require 'feature/feature_api_pb'
5
+ require 'proto/feature/feature_api_pb'
6
6
 
7
7
  module Protosum
8
8
  module Feature
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: proto/post.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("proto/post.proto", :syntax => :proto3) do
8
+ add_message "postpb.Post" do
9
+ optional :name, :string, 1
10
+ optional :type, :int64, 2
11
+ optional :user_name, :int64, 3
12
+ optional :title, :string, 4
13
+ optional :description, :string, 5
14
+ end
15
+ end
16
+ end
17
+
18
+ module Protosum
19
+ module PostPb
20
+ Post = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("postpb.Post").msgclass
21
+ end
22
+ end
@@ -0,0 +1,21 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: proto/user.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("proto/user.proto", :syntax => :proto3) do
8
+ add_message "userpb.User" do
9
+ optional :name, :string, 1
10
+ optional :email, :string, 2
11
+ optional :age, :int64, 3
12
+ optional :type, :int64, 4
13
+ end
14
+ end
15
+ end
16
+
17
+ module Protosum
18
+ module UserPb
19
+ User = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("userpb.User").msgclass
20
+ end
21
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Protosum2
4
- VERSION = "0.2.0"
4
+ VERSION = "0.5.0"
5
5
  end
data/lib/protosum2.rb CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  require_relative "protosum2/version"
4
4
 
5
+ Dir.glob("#{__dir__}/**/*_pb.rb").each {|file| require file}
6
+
5
7
  module Protosum2
6
8
  class Error < StandardError; end
7
9
  # Your code goes here...
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protosum2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - igsr5
@@ -25,10 +25,12 @@ files:
25
25
  - Rakefile
26
26
  - bin/console
27
27
  - bin/setup
28
- - lib/gen/feature/feature_api_pb.rb
29
- - lib/gen/feature/feature_api_services_pb.rb
30
28
  - lib/gen/gen.rb
31
29
  - lib/gen/post_pb.rb
30
+ - lib/gen/proto/feature/feature_api_pb.rb
31
+ - lib/gen/proto/feature/feature_api_services_pb.rb
32
+ - lib/gen/proto/post_pb.rb
33
+ - lib/gen/proto/user_pb.rb
32
34
  - lib/gen/user_pb.rb
33
35
  - lib/protosum2.rb
34
36
  - lib/protosum2/version.rb