vaccination-characteristics 1.4.0 → 1.4.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55f63e02b39129bad9777a26cdc563495d5cb2ed24529c9294403d7ebec0cc1f
|
|
4
|
+
data.tar.gz: d17f871af79a8fdf6c0efcdc30e738e6e9c9264b200dfe266430416505b0916d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9d5dd2e8c3c8d722f49f11ca53e68659e4afc8228a1d7dcb25b431b34556ca11623e6ff1f121fd07f9b53b8885a1e2f5e16eb6f19a95f685a589c67ddf51567
|
|
7
|
+
data.tar.gz: 75d9d79b73bd31083d04e9078b73d8aa9788695286435baeaf6877145020e92baddbe7d8d726580a92a30d1cb82f55fb2315ac8fa2659d8a8b711ed5cc6aed60
|
data/Changelog.md
CHANGED
|
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
-
- Add the
|
|
12
|
+
- Add the boolean `Condition#deprecated` field, defaulting to `false` for older dumps. Deprecated conditions remain accessible through the repository.
|
|
13
13
|
|
|
14
14
|
- Add `proxy_addr` and `proxy_port` options to `Database.load`, `Database.fetch_latest_version_hash`, and `Database.watch_latest_version` for CDN requests. Both default to `nil`, so no proxy is used unless explicitly configured.
|
|
15
15
|
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
require 'google/protobuf'
|
|
5
5
|
|
|
6
6
|
require_relative 'ConditionType_pb'
|
|
7
|
-
|
|
8
|
-
descriptor_data = "\n\x0FCondition.proto\x12\evaccination_characteristics\x1A\x13ConditionType.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\">\n\x04Code\x12\"\n\fnomenclature\x18\x01 \x01(\tR\fnomenclature\x12\x12\n\x04code\x18\x02 \x01(\tR\x04code\"\xA1\x02\n\tCondition\x12\x0E\n\x02id\x18\x01 \x01(\x05R\x02id\x12\x14\n\x05label\x18\x02 \x01(\tR\x05label\x12 \n\vdescription\x18\x03 \x01(\tR\vdescription\x12>\n\x04type\x18\x04 \x01(\x0E2*.vaccination_characteristics.ConditionTypeR\x04type\x12\x12\n\x04tags\x18\x05 \x03(\tR\x04tags\x127\n\x05codes\x18\x06 \x03(\v2!.vaccination_characteristics.CodeR\x05codes\x12?\n\rdeprecated_on\x18\a \x01(\v2\x1A.google.protobuf.TimestampR\fdeprecatedOnB\x13\n\x0Fcom.syadem.sadvP\x01b\x06proto3"
|
|
7
|
+
descriptor_data = "\n\x0FCondition.proto\x12\evaccination_characteristics\x1A\x13ConditionType.proto\">\n\x04Code\x12\"\n\fnomenclature\x18\x01 \x01(\tR\fnomenclature\x12\x12\n\x04code\x18\x02 \x01(\tR\x04code\"\x80\x02\n\tCondition\x12\x0E\n\x02id\x18\x01 \x01(\x05R\x02id\x12\x14\n\x05label\x18\x02 \x01(\tR\x05label\x12 \n\vdescription\x18\x03 \x01(\tR\vdescription\x12>\n\x04type\x18\x04 \x01(\x0E2*.vaccination_characteristics.ConditionTypeR\x04type\x12\x12\n\x04tags\x18\x05 \x03(\tR\x04tags\x127\n\x05codes\x18\x06 \x03(\v2!.vaccination_characteristics.CodeR\x05codes\x12\x1E\n\ndeprecated\x18\a \x01(\bR\ndeprecatedB\x13\n\x0Fcom.syadem.sadvP\x01b\x06proto3"
|
|
9
8
|
|
|
10
9
|
::Google::Protobuf::DescriptorPool.generated_pool.add_serialized_file(descriptor_data)
|
|
11
10
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative "vaccination_characteristics/version"
|
|
4
4
|
require_relative "vaccination_characteristics/VaccinationCharacteristicsDatabase_pb"
|
|
5
|
-
require_relative "vaccination_characteristics/condition"
|
|
6
5
|
require_relative "vaccination_characteristics/repository"
|
|
7
6
|
require_relative "vaccination_characteristics/version_watcher"
|
|
8
7
|
require "net/http"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vaccination-characteristics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Syadem
|
|
@@ -57,7 +57,6 @@ files:
|
|
|
57
57
|
- lib/vaccination_characteristics/Condition_pb.rb
|
|
58
58
|
- lib/vaccination_characteristics/VaccinationCharacteristicsDatabase_pb.rb
|
|
59
59
|
- lib/vaccination_characteristics/Version_pb.rb
|
|
60
|
-
- lib/vaccination_characteristics/condition.rb
|
|
61
60
|
- lib/vaccination_characteristics/repositories/condition_repository.rb
|
|
62
61
|
- lib/vaccination_characteristics/repository.rb
|
|
63
62
|
- lib/vaccination_characteristics/version.rb
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "Condition_pb"
|
|
4
|
-
require "date"
|
|
5
|
-
|
|
6
|
-
module VaccinationCharacteristics
|
|
7
|
-
class Condition
|
|
8
|
-
def deprecated_on
|
|
9
|
-
timestamp = self["deprecated_on"]
|
|
10
|
-
Time.at(timestamp.seconds, timestamp.nanos, :nanosecond).utc.to_date if timestamp
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def deprecated_on=(value)
|
|
14
|
-
if value.nil?
|
|
15
|
-
clear_deprecated_on
|
|
16
|
-
else
|
|
17
|
-
self["deprecated_on"] =
|
|
18
|
-
if value.is_a?(Date)
|
|
19
|
-
Google::Protobuf::Timestamp.new(seconds: Time.utc(value.year, value.month, value.day).to_i)
|
|
20
|
-
else
|
|
21
|
-
value
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|