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: 788c73cc5684ec0d62dbec53486d52626a829f2404055323e5a4d08c3ef4624f
4
- data.tar.gz: 75d78b6b140a4c36bf5c6e82a685004e8c81f4114b005e3399719d829cdd6f4c
3
+ metadata.gz: 77219c35be2f1451bd17ca3364270343bf888067de19a5d2293f82e9ae1721b4
4
+ data.tar.gz: 58b72e60aba221f8f17e91d37386036374a436ae52c2e94841c0456bf450c154
5
5
  SHA512:
6
- metadata.gz: 7588d0611b7b55dd10f4d971ccd52e10461a4a26f5e260205f67fd23545eaf0c425cd76e967ed545cf5f56d8c97bc932968355623ff659fd0c55baae4921f171
7
- data.tar.gz: da32a7ef467b2799cb9ed6e49ee3618e6f90634e9d46890001abca16dd1816967a7ec93c0c7e5babc03fc75f3ce68c82582b64645f9b0dd94aa7a776fa498ae6
6
+ metadata.gz: a797ec42d1d50ad751774187a8018cd5e900669e91811485aa0a954aa913cc450535420216b3c41123922c36cd6fdad3928b9efd641625ef431e50ee24b9a463
7
+ data.tar.gz: 2fb66baacfb77d4d67920c3b0ec83e5d81d05ca1642b00d37918fc0738ef812f3299196bbda72fa49405b3ccaa4046df5fcb2ad5a366c3cd14e198155d9b4822
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VaccinationCharacteristics
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.1"
5
5
  end
@@ -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
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.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syadem