medcon 1.0.1 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adf382ab9ce3ca81babab0c6407dec9e5cb23805f50555fdb9c320356e116a7d
4
- data.tar.gz: 4bfadfc2b02e41a7181e78dbaeef7bbe716b3b4ccdf6c3d69388fa5587b2c14b
3
+ metadata.gz: e7a6d9d3c90c84df8669193bc9046b5a890362b2eb5aa73b7e8db7a6d97f80aa
4
+ data.tar.gz: 9e11a2cb607c1e7d5b789330485c84831c30f40f7d17c7c035544263546c13aa
5
5
  SHA512:
6
- metadata.gz: 3283bbf2673f5d81464b0ef913194da2b74ba6a8972f28b3e51efab693d84ab42887586c7dc7f87480bfa25224d98f9ea1102ff265ef5c063d0c5e6f2984fd37
7
- data.tar.gz: ad06235a3af3709d281fe5c9589698cd2e4c67c3c3780a45c03790fdefb898666a897023306d04509e4bdc658b15db4526e17a57773832ed232134bf1897e502
6
+ metadata.gz: da9d6a08d5280fca929cff049c0f7bbeff5e2ff0eb988f36e9a4a226e634e9148c2b0f6e5e9ca3fab3f2a498c0f321ae3ac56f9dd009a3868b1a29315e7ccd96
7
+ data.tar.gz: 43e56554a8990a55424bbf0ce53849528da8a9541ef5ed15d203473943f7d04fbd2cf769ff51acc02df1b8bf1f1dd8b7c1e5db93c17f4e2c148ff3cda4a5a58b
data/gen_proto.sh CHANGED
@@ -1,9 +1,23 @@
1
1
  #!/bin/sh
2
2
 
3
- find ../schemas -type f -name '*.proto' -exec basename {} \; | xargs protoc --ruby_out=./lib/medcon -I ../schemas
3
+ set -eu
4
4
 
5
- if [ `uname` = 'Darwin' ]; then
6
- sed -i '' -E "s/^require '([a-zA-Z_]+)'/require_relative '\1'/" ./lib/medcon/*_pb.rb
5
+ PROTOC_BIN="${PROTOC_BIN:-protoc}"
6
+ PROTOC_ROOT="$(dirname "$(dirname "$(command -v "$PROTOC_BIN")")")"
7
+ PROTOC_INCLUDE="${PROTOC_INCLUDE:-${PROTOC_ROOT}/include}"
8
+
9
+ find ../schemas -type f -name '*.proto' -exec basename {} \; |
10
+ xargs "$PROTOC_BIN" \
11
+ --ruby_out=./lib/medcon \
12
+ --proto_path=../schemas \
13
+ --proto_path="$PROTOC_INCLUDE"
14
+
15
+ if [ "$(uname)" = "Darwin" ]; then
16
+ sed -i '' -E \
17
+ "s/^require '([a-zA-Z_]+)'/require_relative '\1'/" \
18
+ ./lib/medcon/*_pb.rb
7
19
  else
8
- sed -i -E "s/^require '([a-zA-Z_]+)'/require_relative '\1'/" ./lib/medcon/*_pb.rb
9
- fi
20
+ sed -i -E \
21
+ "s/^require '([a-zA-Z_]+)'/require_relative '\1'/" \
22
+ ./lib/medcon/*_pb.rb
23
+ fi
@@ -1,18 +1,14 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: ConditionGroup.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("ConditionGroup.proto", :syntax => :proto3) do
8
- add_message "medcon.ConditionGroup" do
9
- optional :id, :string, 1
10
- optional :label, :string, 2
11
- optional :parent_id, :string, 3
12
- repeated :condition_ids, :string, 4
13
- end
14
- end
15
- end
7
+
8
+ descriptor_data = "\n\x14\x43onditionGroup.proto\x12\x06medcon\"U\n\x0e\x43onditionGroup\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\tparent_id\x18\x03 \x01(\t\x12\x15\n\rcondition_ids\x18\x04 \x03(\tB\x13\n\x0f\x63om.syadem.sadvP\x01\x62\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
16
12
 
17
13
  module Medcon
18
14
  ConditionGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("medcon.ConditionGroup").msgclass
@@ -1,18 +1,14 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: ConditionType.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("ConditionType.proto", :syntax => :proto3) do
8
- add_enum "medcon.ConditionType" do
9
- value :BOOLEAN, 0
10
- value :DATE, 1
11
- value :FLOAT, 2
12
- value :INTEGER, 3
13
- end
14
- end
15
- end
7
+
8
+ descriptor_data = "\n\x13\x43onditionType.proto\x12\x06medcon*>\n\rConditionType\x12\x0b\n\x07\x42OOLEAN\x10\x00\x12\x08\n\x04\x44\x41TE\x10\x01\x12\t\n\x05\x46LOAT\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x42\x13\n\x0f\x63om.syadem.sadvP\x01\x62\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
16
12
 
17
13
  module Medcon
18
14
  ConditionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("medcon.ConditionType").enummodule
@@ -1,27 +1,16 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: Condition.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
7
  require_relative 'ConditionType_pb'
7
- require 'google/protobuf/wrappers_pb'
8
8
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("Condition.proto", :syntax => :proto3) do
11
- add_message "medcon.Code" do
12
- optional :nomenclature, :string, 1
13
- optional :code, :string, 2
14
- end
15
- add_message "medcon.Condition" do
16
- optional :id, :int32, 1
17
- optional :label, :string, 2
18
- optional :description, :string, 3
19
- optional :type, :enum, 4, "medcon.ConditionType"
20
- repeated :tags, :string, 5
21
- repeated :codes, :message, 6, "medcon.Code"
22
- end
23
- end
24
- end
9
+
10
+ descriptor_data = "\n\x0f\x43ondition.proto\x12\x06medcon\x1a\x13\x43onditionType.proto\"*\n\x04\x43ode\x12\x14\n\x0cnomenclature\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\"\x8b\x01\n\tCondition\x12\n\n\x02id\x18\x01 \x01(\x05\x12\r\n\x05label\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12#\n\x04type\x18\x04 \x01(\x0e\x32\x15.medcon.ConditionType\x12\x0c\n\x04tags\x18\x05 \x03(\t\x12\x1b\n\x05\x63odes\x18\x06 \x03(\x0b\x32\x0c.medcon.CodeB\x13\n\x0f\x63om.syadem.sadvP\x01\x62\x06proto3"
11
+
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
25
14
 
26
15
  module Medcon
27
16
  Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("medcon.Code").msgclass
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: VaccinationProfileDatabase.proto
3
4
 
@@ -7,16 +8,11 @@ require 'google/protobuf/timestamp_pb'
7
8
  require_relative 'Version_pb'
8
9
  require_relative 'Condition_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("VaccinationProfileDatabase.proto", :syntax => :proto3) do
12
- add_message "medcon.VaccinationProfileDatabase" do
13
- optional :version, :message, 1, "medcon.Version"
14
- optional :generated_at, :message, 2, "google.protobuf.Timestamp"
15
- optional :locale, :string, 3
16
- repeated :conditions, :message, 4, "medcon.Condition"
17
- end
18
- end
19
- end
11
+
12
+ descriptor_data = "\n VaccinationProfileDatabase.proto\x12\x06medcon\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\rVersion.proto\x1a\x0f\x43ondition.proto\"\xa7\x01\n\x1aVaccinationProfileDatabase\x12 \n\x07version\x18\x01 \x01(\x0b\x32\x0f.medcon.Version\x12\x30\n\x0cgenerated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06locale\x18\x03 \x01(\t\x12%\n\nconditions\x18\x04 \x03(\x0b\x32\x11.medcon.ConditionB\x13\n\x0f\x63om.syadem.sadvP\x01\x62\x06proto3"
13
+
14
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
15
+ pool.add_serialized_file(descriptor_data)
20
16
 
21
17
  module Medcon
22
18
  VaccinationProfileDatabase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("medcon.VaccinationProfileDatabase").msgclass
@@ -1,17 +1,14 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: Version.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("Version.proto", :syntax => :proto3) do
8
- add_message "medcon.Version" do
9
- optional :major, :uint32, 1
10
- optional :minor, :uint32, 2
11
- optional :patch, :uint32, 3
12
- end
13
- end
14
- end
7
+
8
+ descriptor_data = "\n\rVersion.proto\x12\x06medcon\"6\n\x07Version\x12\r\n\x05major\x18\x01 \x01(\r\x12\r\n\x05minor\x18\x02 \x01(\r\x12\r\n\x05patch\x18\x03 \x01(\rB\x13\n\x0f\x63om.syadem.sadvP\x01\x62\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
15
12
 
16
13
  module Medcon
17
14
  Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("medcon.Version").msgclass
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Medcon
4
- VERSION = "1.0.1"
4
+ VERSION = "1.1.0"
5
5
  end
data/medcon.gemspec CHANGED
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.add_dependency 'google-protobuf', '~> 3.25', '>= 3.25.3'
32
+ spec.add_dependency 'google-protobuf', '>= 4.35.1', '< 5'
33
33
  spec.add_dependency 'ostruct'
34
34
  end
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: medcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syadem
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-06-01 00:00:00.000000000 Z
11
+ date: 2026-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '3.25'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 3.25.3
19
+ version: 4.35.1
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '3.25'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
- version: 3.25.3
29
+ version: 4.35.1
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ostruct
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.5.3
89
+ rubygems_version: 3.5.22
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Medical Conditions for SADV