relaton-ogc 1.14.0 → 1.14.1

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: 309af45acff90032b9a05048e197301f6d2caa4bd176c94ed91068d1e870dcd4
4
- data.tar.gz: 07d05839f3ef750ceac00beaf8c99f26719d347ae601ce1139d236fd4fbe3d0c
3
+ metadata.gz: ba3481b2cd4c2edba451a0b126d48305d7b86864f8a373976767b4fed48532e9
4
+ data.tar.gz: 9f574bfe182a4886cbb063dd2e8bb700777641ffeb3fe3368419bd5073b48b02
5
5
  SHA512:
6
- metadata.gz: ae4bbd527d5cb636dbbeabfafa727d0b259a648ccb72618f08171890b40f017f14b6abf849d393c8018cddf3d196d90487d411c390863e9b9939a468ab810e0b
7
- data.tar.gz: b15e7e4777d18ec5def73d1e56a0c844df1273e08146e738481882c8cd39dec8415b2f12195c295f18e17da8cae6c3271d38b7910f045f54b66edb37105bf7a6
6
+ metadata.gz: 143a7bc6a666ee1e1ec0b4f573aa67a94ba095b4d3adda52f35921a891ed06dea3e2c7cf8ce934101493890ab2de92ae1e5fd4138fd73b6989685b7ad84cbb5d
7
+ data.tar.gz: cf59738eb30e67134f2c60e704f95bb6bb9cf8958f49494e8cbb0ae0fa54602c8b09a575aa49e619d01b707608100ab71f848bcd1aceb318019c960be0002ca2
@@ -31,7 +31,9 @@ module RelatonOgc
31
31
  end
32
32
  @array = case resp.status
33
33
  when 200
34
- bib = OgcBibliographicItem.from_hash YAML.safe_load(resp.body)
34
+ hash = YAML.safe_load(resp.body)
35
+ hash["fetched"] = Date.today.to_s
36
+ bib = OgcBibliographicItem.from_hash hash
35
37
  [Hit.new(bib, self)]
36
38
  else []
37
39
  end
@@ -68,11 +68,11 @@ module RelatonOgc
68
68
  # @param missed_years [Array<Strig>]
69
69
  def fetch_ref_err(code, year, missed_years)
70
70
  id = year ? "#{code} year #{year}" : code
71
- warn "[relaton-ogc] WARNING: no match found online for #{id}. "\
72
- "The code must be exactly like it is on the standards website."
71
+ warn "[relaton-ogc] WARNING: no match found online for #{id}. " \
72
+ "The code must be exactly like it is on the standards website."
73
73
  unless missed_years.empty?
74
- warn "[relaton-ogc] (There was no match for #{year}, though there were matches "\
75
- "found for #{missed_years.join(', ')}.)"
74
+ warn "[relaton-ogc] (There was no match for #{year}, though there " \
75
+ "were matches found for #{missed_years.join(', ')}.)"
76
76
  end
77
77
  nil
78
78
  end
@@ -37,7 +37,6 @@ module RelatonOgc
37
37
  def parse_page(hit) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
38
38
  type = fetch_type(hit["type"])
39
39
  OgcBibliographicItem.new(
40
- fetched: Date.today.to_s,
41
40
  type: "standard",
42
41
  title: fetch_title(hit["title"]),
43
42
  docid: fetch_docid(hit["identifier"]),
@@ -1,3 +1,3 @@
1
1
  module RelatonOgc
2
- VERSION = "1.14.0".freeze
2
+ VERSION = "1.14.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2022-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml