vaccination-characteristics 1.2.0 → 1.2.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: 77219c35be2f1451bd17ca3364270343bf888067de19a5d2293f82e9ae1721b4
|
|
4
|
+
data.tar.gz: 58b72e60aba221f8f17e91d37386036374a436ae52c2e94841c0456bf450c154
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a797ec42d1d50ad751774187a8018cd5e900669e91811485aa0a954aa913cc450535420216b3c41123922c36cd6fdad3928b9efd641625ef431e50ee24b9a463
|
|
7
|
+
data.tar.gz: 2fb66baacfb77d4d67920c3b0ec83e5d81d05ca1642b00d37918fc0738ef812f3299196bbda72fa49405b3ccaa4046df5fcb2ad5a366c3cd14e198155d9b4822
|
|
@@ -7,6 +7,7 @@ module VaccinationCharacteristics
|
|
|
7
7
|
def initialize(fetch_latest_version_hash:, polling_interval:, on_update:, on_error: nil)
|
|
8
8
|
raise ArgumentError, "polling_interval must be positive" unless polling_interval.positive?
|
|
9
9
|
raise ArgumentError, "on_update must respond to #call" unless on_update.respond_to?(:call)
|
|
10
|
+
raise ArgumentError, "on_error must respond to #call" unless on_error.nil? || on_error.respond_to?(:call)
|
|
10
11
|
|
|
11
12
|
@fetch_latest_version_hash = fetch_latest_version_hash
|
|
12
13
|
@polling_interval = polling_interval
|