relaton-iho 1.10.1 → 1.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ea6c15d31c615a8985e5f9064f32fd4d2f7b9886c25399a5dec75bee35a1f66
4
- data.tar.gz: a33dd3bbbd39be87ed6f1b777d0b90748c2669b501a9244a8bb693b8e3571534
3
+ metadata.gz: c6742a04d9ea26eeb5ddd62a8638b3499c53e6c1fb964a530b68164ab6dff7e7
4
+ data.tar.gz: 2abe40941288d1938338a3932175f9359b154a463d524e7d12468fc7e8efb2c9
5
5
  SHA512:
6
- metadata.gz: 8bf832b84ae7f9d99ea9ef919521aaffb8d4249763404ba50cc7189fd908ebec88a2b87f5c41ba51bfc97a0f5d0304f576e7b780cd6a8f5588ae67b6a1407436
7
- data.tar.gz: 7682af14fd63d99b8aee6253c1322dc34db545a139c9bb3231b5170f68f8cce8234bd74384b1173d335c8c0e7cc1a617891e36db0e136d110fa3c14fbeca1bc7
6
+ metadata.gz: 250909f714d766be875f9023f46c9130e721f68cf0ce07299df388db2507712a0a690f8288d2124876e59da7e1cd1808b419a2a2249fc5771764473c32756434
7
+ data.tar.gz: 59408870c87f0001b9f3e8b877c064eb6237f260202b947cdcbcfe8ac50d82af8e55b3dac68183ae1769cf96373b98866f566235307e8ccc6a4c3ae9ba885331
@@ -15,10 +15,10 @@ module RelatonIho
15
15
  resp = Net::HTTP.get_response uri
16
16
  return unless resp.code == "200"
17
17
 
18
- yaml = if RUBY_VERSION.match?(/^2\.5/)
19
- YAML.safe_load(resp.body, [Date])
20
- else
18
+ yaml = if Gem::Version.new(Psych::VERSION) >= Gem::Version.new("3.1.0.pre1")
21
19
  YAML.safe_load(resp.body, permitted_classes: [Date])
20
+ else
21
+ YAML.safe_load(resp.body, [Date])
22
22
  end
23
23
  hash = HashConverter.hash_to_bib yaml
24
24
  item = IhoBibliographicItem.new(**hash)
@@ -1,3 +1,3 @@
1
1
  module RelatonIho
2
- VERSION = "1.10.1".freeze
2
+ VERSION = "1.10.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-08 00:00:00.000000000 Z
11
+ date: 2022-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug