vaccination-characteristics 1.4.1 → 1.4.2

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: 55f63e02b39129bad9777a26cdc563495d5cb2ed24529c9294403d7ebec0cc1f
4
- data.tar.gz: d17f871af79a8fdf6c0efcdc30e738e6e9c9264b200dfe266430416505b0916d
3
+ metadata.gz: 2de8d7c92a565d6e60cedf3087cb403947dd705dc09528f0ddd857aa3c8919d2
4
+ data.tar.gz: cd8c673cddb887e6e741e8ee8da3fbfc4aa1f981539bd563efe35048a49733db
5
5
  SHA512:
6
- metadata.gz: b9d5dd2e8c3c8d722f49f11ca53e68659e4afc8228a1d7dcb25b431b34556ca11623e6ff1f121fd07f9b53b8885a1e2f5e16eb6f19a95f685a589c67ddf51567
7
- data.tar.gz: 75d9d79b73bd31083d04e9078b73d8aa9788695286435baeaf6877145020e92baddbe7d8d726580a92a30d1cb82f55fb2315ac8fa2659d8a8b711ed5cc6aed60
6
+ metadata.gz: '04090dd0bb92db360eff30b448837da07672b435b53b5deb6c2a18457a1fd1bf31c8801e44f7f440189dee67f76e59d5c67b4df4971ebf25137dcd865723b8ec'
7
+ data.tar.gz: bf45d057d6d7f32626710e977d39721dffd060b231268d2044df67578ef6ad5f389f62f9ad90da11de208b7399e6968a789e19562f6a470dd31d8775ce68fd39
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VaccinationCharacteristics
4
- VERSION = "1.4.1"
4
+ VERSION = "1.4.2"
5
5
  end
@@ -47,14 +47,9 @@ module VaccinationCharacteristics
47
47
  end
48
48
 
49
49
  def fetch_latest_version_hash(cdn_uri: DEFAULT_CDN_URI, http: nil, proxy_addr: nil, proxy_port: nil)
50
- passed_http = !http.nil?
51
- http = init_http(cdn_uri, proxy_addr:, proxy_port:) if http.nil?
52
- response = http.get("/versions/latest.json")
53
- hash = JSON.parse(response.body)["hash"]
50
+ return init_http(cdn_uri, proxy_addr:, proxy_port:) { |h| fetch_latest_version_hash(http: h) } if http.nil?
54
51
 
55
- http.finish unless passed_http
56
-
57
- hash
52
+ JSON.parse(http.get("/versions/latest.json").body)["hash"]
58
53
  end
59
54
 
60
55
  def watch_latest_version(cdn_uri: DEFAULT_CDN_URI, polling_interval: 60, on_update:, on_error: nil, proxy_addr: nil, proxy_port: nil)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vaccination-characteristics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syadem
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-05 00:00:00.000000000 Z
11
+ date: 2026-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf