primary_connect_proto 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +39 -0
  3. data/connect_proto.gemspec +1 -1
  4. data/lib/connect_proto/build/meta_pb.rb +39 -37
  5. metadata +3 -37
  6. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/defs.c +0 -2366
  7. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/encode_decode.c +0 -1795
  8. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/extconf.rb +0 -21
  9. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/map.c +0 -836
  10. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/message.c +0 -859
  11. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/protobuf.c +0 -136
  12. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/protobuf.h +0 -667
  13. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/repeated_field.c +0 -686
  14. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/storage.c +0 -1198
  15. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/upb.c +0 -13817
  16. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/upb.h +0 -6777
  17. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/wrap_memcpy.c +0 -51
  18. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.3/protobuf_c.bundle +0 -0
  19. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.4/protobuf_c.bundle +0 -0
  20. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.5/protobuf_c.bundle +0 -0
  21. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.6/protobuf_c.bundle +0 -0
  22. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.7/protobuf_c.bundle +0 -0
  23. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/any_pb.rb +0 -19
  24. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/api_pb.rb +0 -41
  25. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/duration_pb.rb +0 -19
  26. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/empty_pb.rb +0 -17
  27. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/field_mask_pb.rb +0 -18
  28. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/message_exts.rb +0 -53
  29. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/repeated_field.rb +0 -188
  30. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/source_context_pb.rb +0 -18
  31. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/struct_pb.rb +0 -37
  32. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/timestamp_pb.rb +0 -19
  33. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/type_pb.rb +0 -91
  34. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/well_known_types.rb +0 -230
  35. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/wrappers_pb.rb +0 -50
  36. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf.rb +0 -147
  37. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/basic.rb +0 -543
  38. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/generated_code_test.rb +0 -23
  39. data/vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/stress.rb +0 -38
  40. data/vendor/bundle/ruby/2.6.0/specifications/google-protobuf-4.0.0.rc.2-universal-darwin.gemspec +0 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f60732df2bb7faea8aebbc205c1950037f2a79c6a2ba4f78f5a1ba13d1ca1781
4
- data.tar.gz: 2c026a2465ee3f16cba4e292899633d2bb2546669fd66a1cc2c675de2d0bfdb0
3
+ metadata.gz: 28007336c8abb15d945a63306a734d88b703a84135603853376bfeeaf8e88e29
4
+ data.tar.gz: 3f1e62155bdd7014fdf4ba5faf190d91305f8404b511fa85514fe044f91a4219
5
5
  SHA512:
6
- metadata.gz: 11097e41d2cf1f59284641004d6b1972669252f36ba8b9ef272c119b2d92c6af5bbdd2877166de461079e78c2732cfbb7635f8c08c51968a14091b55ab7a9ae4
7
- data.tar.gz: fd5cf73dbaa3b7cfb9a265ab65f2d0d36e48de4d116ea01c1cc4cc8a9662b821ba31ff6da2d8c4de4941d97799d5a88437dd431ac6dc2c3b3f0e7131b438a63c
6
+ metadata.gz: 8d1de34a28a82e53b62a16e983f65c8cc09bddd9462b04d3df682de642aac3668949bd72fb213ae4bef31509474745c267abcefc41c97424f11597b3ee3dd463
7
+ data.tar.gz: '0477648e25bfe66b7770cab19a2902fc7fd58d0cc77aa1037e6a2370be603ec0e022273d0032b6d5af5da24a2ef0eb049b2959667f2099aaa2598f9afc823c6a'
data/Rakefile ADDED
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :protobuf do
4
+ src_directory = 'lib/connect_proto/src'
5
+
6
+ def compile(src_directory, path)
7
+ print "Compiling #{path}"
8
+ `protoc --proto_path=#{src_directory} --ruby_out=lib/connect_proto/build #{path}`
9
+ puts ' - done' if $?.exitstatus.zero?
10
+ end
11
+
12
+ namespace :build do
13
+ task :default do
14
+ Dir.glob("#{src_directory}/**/*.proto").each do |protobuf|
15
+ compile(src_directory, protobuf)
16
+ end
17
+ end
18
+
19
+ desc 'Watch protobuf src directory and compile after any changes'
20
+ task :watch do
21
+ require 'listen'
22
+ listener = Listen.to(src_directory, only: /.proto$/, relative: true) do |modified, added, removed|
23
+ (modified + added).each do |path|
24
+ compile(src_directory, path)
25
+ end
26
+ removed.each do |path|
27
+ puts "Deleting #{path}"
28
+ File.delete(path) if File.exist?(path)
29
+ end
30
+ end
31
+ listener.start
32
+ puts "Watching #{src_directory}/**/*.proto"
33
+ sleep
34
+ end
35
+ end
36
+
37
+ desc 'Compile all protobufs'
38
+ task build: 'build:default'
39
+ end
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "primary_connect_proto"
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
  s.authors = ["Primary.Health"]
10
10
  s.email = ["sam@primary.health"]
11
11
 
@@ -5,47 +5,49 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/protobuf/timestamp_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "primary.connect.Meta" do
9
- optional :event_type, :enum, 1, "primary.connect.Meta.EventType"
10
- optional :event_date_and_time, :message, 2, "google.protobuf.Timestamp"
11
- optional :test, :bool, 3
12
- optional :source, :message, 4, "primary.connect.Meta.Source"
13
- repeated :destinations, :message, 5, "primary.connect.Meta.Destination"
14
- optional :message, :message, 6, "primary.connect.Meta.Message"
15
- optional :transmission, :message, 7, "primary.connect.Meta.Transmission"
16
- optional :facility_code, :string, 8
17
- end
18
- add_message "primary.connect.Meta.Source" do
19
- optional :id, :string, 1
20
- optional :name, :string, 2
21
- end
22
- add_message "primary.connect.Meta.Message" do
23
- optional :id, :string, 1
24
- optional :order_id, :string, 2
25
- end
26
- add_message "primary.connect.Meta.Transmission" do
27
- optional :id, :string, 1
28
- end
29
- add_message "primary.connect.Meta.Destination" do
30
- optional :id, :string, 1
31
- optional :name, :string, 2
32
- end
33
- add_enum "primary.connect.Meta.EventType" do
34
- value :EVENT_TYPE_NEW, 0
35
- value :EVENT_TYPE_NEW_UNSOLICITED, 1
36
- value :EVENT_TYPE_UPDATE, 2
37
- value :EVENT_TYPE_CANCEL, 3
38
- value :EVENT_TYPE_QUERY, 4
8
+ add_file("meta.proto", :syntax => :proto3) do
9
+ add_message "primary.connect.Meta" do
10
+ optional :event_type, :enum, 1, "primary.connect.Meta.EventType"
11
+ optional :event_date_and_time, :message, 2, "google.protobuf.Timestamp"
12
+ optional :test, :bool, 3
13
+ optional :source, :message, 4, "primary.connect.Meta.Source"
14
+ repeated :destinations, :message, 5, "primary.connect.Meta.Destination"
15
+ optional :message, :message, 6, "primary.connect.Meta.Message"
16
+ optional :transmission, :message, 7, "primary.connect.Meta.Transmission"
17
+ optional :facility_code, :string, 8
18
+ end
19
+ add_message "primary.connect.Meta.Source" do
20
+ optional :id, :string, 1
21
+ optional :name, :string, 2
22
+ end
23
+ add_message "primary.connect.Meta.Message" do
24
+ optional :id, :string, 1
25
+ optional :order_id, :string, 2
26
+ end
27
+ add_message "primary.connect.Meta.Transmission" do
28
+ optional :id, :string, 1
29
+ end
30
+ add_message "primary.connect.Meta.Destination" do
31
+ optional :id, :string, 1
32
+ optional :name, :string, 2
33
+ end
34
+ add_enum "primary.connect.Meta.EventType" do
35
+ value :EVENT_TYPE_NEW, 0
36
+ value :EVENT_TYPE_NEW_UNSOLICITED, 1
37
+ value :EVENT_TYPE_UPDATE, 2
38
+ value :EVENT_TYPE_CANCEL, 3
39
+ value :EVENT_TYPE_QUERY, 4
40
+ end
39
41
  end
40
42
  end
41
43
 
42
44
  module Primary
43
45
  module Connect
44
- Meta = Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta").msgclass
45
- Meta::Source = Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.Source").msgclass
46
- Meta::Message = Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.Message").msgclass
47
- Meta::Transmission = Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.Transmission").msgclass
48
- Meta::Destination = Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.Destination").msgclass
49
- Meta::EventType = Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.EventType").enummodule
46
+ Meta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta").msgclass
47
+ Meta::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.Source").msgclass
48
+ Meta::Message = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.Message").msgclass
49
+ Meta::Transmission = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.Transmission").msgclass
50
+ Meta::Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.Destination").msgclass
51
+ Meta::EventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("primary.connect.Meta.EventType").enummodule
50
52
  end
51
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primary_connect_proto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Primary.Health
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-22 00:00:00.000000000 Z
11
+ date: 2021-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -82,6 +82,7 @@ files:
82
82
  - Gemfile
83
83
  - Gemfile.lock
84
84
  - README.md
85
+ - Rakefile
85
86
  - connect_proto.gemspec
86
87
  - lib/connect_proto/build/address_pb.rb
87
88
  - lib/connect_proto/build/coded_value_pb.rb
@@ -432,40 +433,6 @@ files:
432
433
  - vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/spec_helper.rb
433
434
  - vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/traverse_balanced_spec.rb
434
435
  - vendor/bundle/ruby/2.6.0/gems/diff-lcs-1.4.4/spec/traverse_sequences_spec.rb
435
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/defs.c
436
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/encode_decode.c
437
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/extconf.rb
438
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/map.c
439
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/message.c
440
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/protobuf.c
441
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/protobuf.h
442
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/repeated_field.c
443
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/storage.c
444
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/upb.c
445
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/upb.h
446
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/ext/google/protobuf_c/wrap_memcpy.c
447
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.3/protobuf_c.bundle
448
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.4/protobuf_c.bundle
449
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.5/protobuf_c.bundle
450
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.6/protobuf_c.bundle
451
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/2.7/protobuf_c.bundle
452
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf.rb
453
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/any_pb.rb
454
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/api_pb.rb
455
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/duration_pb.rb
456
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/empty_pb.rb
457
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/field_mask_pb.rb
458
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/message_exts.rb
459
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/repeated_field.rb
460
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/source_context_pb.rb
461
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/struct_pb.rb
462
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/timestamp_pb.rb
463
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/type_pb.rb
464
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/well_known_types.rb
465
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/lib/google/protobuf/wrappers_pb.rb
466
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/basic.rb
467
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/generated_code_test.rb
468
- - vendor/bundle/ruby/2.6.0/gems/google-protobuf-4.0.0.rc.2-universal-darwin/tests/stress.rb
469
436
  - vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/LICENSE.txt
470
437
  - vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/.sitearchdir.-.jaro_winkler.time
471
438
  - vendor/bundle/ruby/2.6.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile
@@ -1840,7 +1807,6 @@ files:
1840
1807
  - vendor/bundle/ruby/2.6.0/specifications/byebug-11.1.3.gemspec
1841
1808
  - vendor/bundle/ruby/2.6.0/specifications/coderay-1.1.3.gemspec
1842
1809
  - vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.4.4.gemspec
1843
- - vendor/bundle/ruby/2.6.0/specifications/google-protobuf-4.0.0.rc.2-universal-darwin.gemspec
1844
1810
  - vendor/bundle/ruby/2.6.0/specifications/jaro_winkler-1.5.4.gemspec
1845
1811
  - vendor/bundle/ruby/2.6.0/specifications/method_source-1.0.0.gemspec
1846
1812
  - vendor/bundle/ruby/2.6.0/specifications/parallel-1.21.0.gemspec